diff --git a/Podfile.lock b/Podfile.lock index 461b6918..7464843e 100644 --- a/Podfile.lock +++ b/Podfile.lock @@ -11,7 +11,7 @@ PODS: - NSManagedObject-HYPPropertyMapper (3.6.0): - NSString-HYPNetworking (~> 0.4.0) - NSString-HYPNetworking (0.4.0) - - Sync (1.6.5): + - Sync (1.6.6): - DATAFilter (~> 0.9.1) - DATAStack (~> 5.0.0) - NSDictionary-ANDYSafeValue (~> 0.3.1) @@ -37,6 +37,6 @@ SPEC CHECKSUMS: NSEntityDescription-SYNCPrimaryKey: 9a2b2f7b838913eb445f20cc2f2edca7281fcfa5 NSManagedObject-HYPPropertyMapper: dbcaa74a43b522d45dacf1ad1c56b41ef008a0c0 NSString-HYPNetworking: 24c3828eebde8a37cc16101a475934a56ac820c0 - Sync: 5966d388646baa52715b1942fab81aee61eeb22c + Sync: a2d3c0654338e345ff951d170f58622cb2dcfdd3 COCOAPODS: 0.39.0 diff --git a/README.md b/README.md index 3c44dc36..4684cfc0 100755 --- a/README.md +++ b/README.md @@ -213,17 +213,6 @@ Replace your Core Data stack with an instance of [DATAStack](https://github.com/ self.dataStack = DATAStack(modelName: "Demo") ``` -Then add this to your App Delegate so everything gets persisted when you quit the app. -```swift -func applicationDidEnterBackground(application: UIApplication) { - self.dataStack.persistWithCompletion(nil) -} - -func applicationWillTerminate(application: UIApplication) { - self.dataStack.persistWithCompletion(nil) -} -``` - ### Primary key Sync requires your entities to have a primary key, this is important for diffing, otherwise Sync doesn’t know how to differentiate between entries.