Skip to content

Commit

Permalink
Update README requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
3lvis committed May 6, 2016
1 parent 41f0cab commit 3c413ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
4 changes: 2 additions & 2 deletions Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -37,6 +37,6 @@ SPEC CHECKSUMS:
NSEntityDescription-SYNCPrimaryKey: 9a2b2f7b838913eb445f20cc2f2edca7281fcfa5
NSManagedObject-HYPPropertyMapper: dbcaa74a43b522d45dacf1ad1c56b41ef008a0c0
NSString-HYPNetworking: 24c3828eebde8a37cc16101a475934a56ac820c0
Sync: 5966d388646baa52715b1942fab81aee61eeb22c
Sync: a2d3c0654338e345ff951d170f58622cb2dcfdd3

COCOAPODS: 0.39.0
11 changes: 0 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 3c413ae

Please sign in to comment.