-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Accept changes made by same device when fetching records * Fix for NSSecureUnarchiveFromDataTransformer * Bump version to 1.3.2
- Loading branch information
Showing
12 changed files
with
186 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...reDataExample/SyncKitCoreDataExampleTests/Transformable/QSTestEntity3+CoreDataClass.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// | ||
// QSTestEntity3+CoreDataClass.swift | ||
// SyncKitCoreDataExampleTests | ||
// | ||
// Created by Manuel on 24/06/2022. | ||
// Copyright © 2022 Manuel Entrena. All rights reserved. | ||
// | ||
// | ||
|
||
import Foundation | ||
import CoreData | ||
import SyncKit | ||
|
||
@objc(QSTestEntity3) | ||
public class QSTestEntity3: NSManagedObject, PrimaryKey { | ||
public static func primaryKey() -> String { | ||
return "identifier" | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...aExample/SyncKitCoreDataExampleTests/Transformable/QSTestEntity3+CoreDataProperties.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// QSTestEntity3+CoreDataProperties.swift | ||
// SyncKitCoreDataExampleTests | ||
// | ||
// Created by Manuel on 24/06/2022. | ||
// Copyright © 2022 Manuel Entrena. All rights reserved. | ||
// | ||
// | ||
|
||
import Foundation | ||
import CoreData | ||
|
||
|
||
extension QSTestEntity3 { | ||
|
||
@nonobjc public class func fetchRequest() -> NSFetchRequest<QSTestEntity3> { | ||
return NSFetchRequest<QSTestEntity3>(entityName: "QSTestEntity3") | ||
} | ||
|
||
@NSManaged public var identifier: String? | ||
@NSManaged public var names: NSArray? | ||
|
||
} |
15 changes: 10 additions & 5 deletions
15
...mable/QSTransformableTestModel.xcdatamodeld/QSTransformableTestModel.xcdatamodel/contents
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="14490.98" systemVersion="18G87" minimumToolsVersion="Automatic" sourceLanguage="Swift" userDefinedModelVersionIdentifier=""> | ||
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="20086" systemVersion="21D62" minimumToolsVersion="Automatic" sourceLanguage="Swift" userDefinedModelVersionIdentifier=""> | ||
<entity name="QSTestEntity" representedClassName=".QSTestEntity" syncable="YES" codeGenerationType="class"> | ||
<attribute name="identifier" optional="YES" attributeType="String" syncable="YES"/> | ||
<attribute name="names" optional="YES" attributeType="Transformable" valueTransformerName="QSNamesTransformer" customClassName=".NSArray" syncable="YES"/> | ||
<attribute name="identifier" optional="YES" attributeType="String"/> | ||
<attribute name="names" optional="YES" attributeType="Transformable" valueTransformerName="QSNamesTransformer" customClassName=".NSArray"/> | ||
</entity> | ||
<entity name="QSTestEntity2" representedClassName="QSTestEntity2" syncable="YES" codeGenerationType="class"> | ||
<attribute name="identifier" optional="YES" attributeType="String" syncable="YES"/> | ||
<attribute name="names" optional="YES" attributeType="Transformable" customClassName="NSArray" syncable="YES"/> | ||
<attribute name="identifier" optional="YES" attributeType="String"/> | ||
<attribute name="names" optional="YES" attributeType="Transformable" customClassName="NSArray"/> | ||
</entity> | ||
<entity name="QSTestEntity3" representedClassName="QSTestEntity3" syncable="YES" codeGenerationType="class"> | ||
<attribute name="identifier" optional="YES" attributeType="String"/> | ||
<attribute name="names" optional="YES" attributeType="Transformable" valueTransformerName="QSSecureNamesTransformer" customClassName=".NSArray"/> | ||
</entity> | ||
<elements> | ||
<element name="QSTestEntity" positionX="-54" positionY="9" width="128" height="75"/> | ||
<element name="QSTestEntity2" positionX="-54" positionY="27" width="128" height="75"/> | ||
<element name="QSTestEntity3" positionX="-54" positionY="45" width="128" height="59"/> | ||
</elements> | ||
</model> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters