diff --git a/Podfile.lock b/Podfile.lock index b47edf50..fdf2ad7a 100644 --- a/Podfile.lock +++ b/Podfile.lock @@ -1,17 +1,11 @@ PODS: - DATASource (6.0.1) - DATAStack (6.0.1) - - DateParser (0.1.1) - JSON (5.0.0) - - NSEntityDescription-SYNCPrimaryKey (1.2.8): - - NSString-HYPNetworking (~> 1.0.6) - - NSManagedObject-HYPPropertyMapper (4.1.3): - - DateParser (~> 0.1.1) - - NSEntityDescription-SYNCPrimaryKey (~> 1.2.8) - - NSString-HYPNetworking (1.0.6) - - Sync (2.1.6): + - NSManagedObject-HYPPropertyMapper (4.1.4) + - Sync (2.2.0): - DATAStack (~> 6.0.1) - - NSManagedObject-HYPPropertyMapper (~> 4.1.3) + - NSManagedObject-HYPPropertyMapper (~> 4.1.4) DEPENDENCIES: - DATASource (~> 6) @@ -25,12 +19,9 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: DATASource: 4038d08f9d7d4fcad81c153f9612ff7eb1789b17 DATAStack: 4138a30db76d535d04f9130847ac59748c6c16aa - DateParser: 17a256f651c5dd754b83aca6ef5827d796a5f292 JSON: 93622160a062588b4cd3497b77ccd777f1fd0587 - NSEntityDescription-SYNCPrimaryKey: 6e0ca0958f7e05a15e2ed9317e5afeb75af6c782 - NSManagedObject-HYPPropertyMapper: b054e2b9c8be5bb24a7f6f1729395cdb5903171c - NSString-HYPNetworking: 97eb879c5c43663dde06f89e01e8e1551a3f5bb7 - Sync: b0753a37123b743d39cf3939e0b6336b8725793f + NSManagedObject-HYPPropertyMapper: 0502d7a0dcb8c0c8112757b80e6318a1baf9c486 + Sync: 3be1ae6ae93685770d56b437a224e859989a14d6 PODFILE CHECKSUM: 2f66666173c7e212ebe798fd96713dc28117babd diff --git a/Source/Sync/NSArray+Sync.swift b/Source/Sync/NSArray+Sync.swift index 2e07b86f..60bb9cae 100644 --- a/Source/Sync/NSArray+Sync.swift +++ b/Source/Sync/NSArray+Sync.swift @@ -25,9 +25,8 @@ public extension NSArray { guard let filteredArray = (objectChanges as NSArray).filtered(using: predicate) as? [NSManagedObject] else { fatalError("Couldn't cast filteredArray as [NSManagedObject]: \(objectChanges), predicate: \(predicate)") } for filteredObject in filteredArray { - if let change = filteredObject.hyp_dictionary(using: .array) as? [String : Any] { - filteredChanges.append(change) - } + let change = filteredObject.hyp_dictionary(using: .array) + filteredChanges.append(change) } } } diff --git a/Source/Sync/NSManagedObject+Sync.swift b/Source/Sync/NSManagedObject+Sync.swift index 4d6f2c57..e36c7ecd 100644 --- a/Source/Sync/NSManagedObject+Sync.swift +++ b/Source/Sync/NSManagedObject+Sync.swift @@ -1,7 +1,6 @@ import CoreData -import NSEntityDescription_SYNCPrimaryKey import DATAStack -import NSString_HYPNetworking +import NSManagedObject_HYPPropertyMapper public extension NSManagedObject { /** diff --git a/Source/Sync/NSManagedObjectContext+Sync.swift b/Source/Sync/NSManagedObjectContext+Sync.swift index 87cb4939..825de29a 100644 --- a/Source/Sync/NSManagedObjectContext+Sync.swift +++ b/Source/Sync/NSManagedObjectContext+Sync.swift @@ -1,6 +1,4 @@ import CoreData -import NSEntityDescription_SYNCPrimaryKey -import NSString_HYPNetworking public extension NSManagedObjectContext { /** diff --git a/Source/Sync/Sync.swift b/Source/Sync/Sync.swift index e63dd0a9..71c1af4a 100644 --- a/Source/Sync/Sync.swift +++ b/Source/Sync/Sync.swift @@ -1,5 +1,4 @@ import CoreData -import NSEntityDescription_SYNCPrimaryKey import NSManagedObject_HYPPropertyMapper import DATAStack diff --git a/Sync.podspec b/Sync.podspec index d00787dc..10e28cd1 100755 --- a/Sync.podspec +++ b/Sync.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "Sync" -s.version = "2.1.6" +s.version = "2.2.0" s.summary = "Modern Swift JSON synchronization to Core Data" s.description = <<-DESC **Sync** eases your everyday job of parsing a `JSON` response and getting it into Core Data. It uses a convention-over-configuration paradigm to facilitate your workflow. @@ -29,5 +29,5 @@ s.source_files = 'Source/**/*' s.frameworks = 'Foundation', 'CoreData' s.dependency 'DATAStack', '~> 6.0.1' -s.dependency 'NSManagedObject-HYPPropertyMapper', '~> 4.1.3' +s.dependency 'NSManagedObject-HYPPropertyMapper', '~> 4.1.4' end