@@ -24,20 +24,25 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
24
24
//--------------------------------------
25
25
26
26
func application( application: UIApplication , didFinishLaunchingWithOptions launchOptions: [ NSObject : AnyObject ] ? ) -> Bool {
27
- // Enable storing and querying data from Local Datastore.
28
- // Remove this line if you don't want to use Local Datastore features or want to use cachePolicy.
29
- Parse . enableLocalDatastore ( )
30
-
31
27
// ****************************************************************************
32
- // Uncomment and fill in with your Parse credentials:
33
- // Parse.setApplicationId("your_application_id", clientKey: "your_client_key")
34
- //
35
- // If you are using Facebook, uncomment and add your FacebookAppID to your bundle's plist as
36
- // described here: https://developers.facebook.com/docs/getting-started/facebook-sdk-for-ios/
37
- // Uncomment the line inside ParseStartProject-Bridging-Header and the following line here:
38
- // PFFacebookUtils.initializeFacebook()
28
+ // Initialize Parse SDK
39
29
// ****************************************************************************
40
30
31
+ let configuration = ParseClientConfiguration {
32
+ // Add your Parse applicationId:
33
+ $0. applicationId = " your_application_id "
34
+ // Uncomment and add your clientKey (it's not required if you are using Parse Server):
35
+ $0. clientKey = " your_client_key "
36
+
37
+ // Uncomment the following line and change to your Parse Server address;
38
+ $0. server = " https://YOUR_PARSE_SERVER/parse "
39
+
40
+ // Enable storing and querying data from Local Datastore.
41
+ // Remove this line if you don't want to use Local Datastore features or want to use cachePolicy.
42
+ $0. localDatastoreEnabled = true
43
+ }
44
+ Parse . initializeWithConfiguration ( configuration)
45
+
41
46
PFUser . enableAutomaticUser ( )
42
47
43
48
let defaultACL = PFACL ( )
0 commit comments