@@ -47,7 +47,7 @@ public class PCKUtility {
47
47
public class func setupServer( fileName: String = " ParseCareKit " ,
48
48
authentication: ( ( URLAuthenticationChallenge ,
49
49
( URLSession . AuthChallengeDisposition ,
50
- URLCredential ? ) -> Void ) -> Void ) ? = nil ) {
50
+ URLCredential ? ) -> Void ) -> Void ) ? = nil ) throws {
51
51
var plistConfiguration : [ String : AnyObject ]
52
52
var clientKey : String ?
53
53
var liveQueryURL : URL ?
@@ -81,15 +81,15 @@ public class PCKUtility {
81
81
deleteKeychainIfNeeded = deleteKeychain
82
82
}
83
83
84
- ParseSwift . initialize ( applicationId: appID,
85
- clientKey: clientKey,
86
- serverURL: serverURL,
87
- liveQueryServerURL: liveQueryURL,
88
- requiringCustomObjectIds: true ,
89
- usingTransactions: useTransactions,
90
- usingPostForQuery: true ,
91
- deletingKeychainIfNeeded: deleteKeychainIfNeeded,
92
- authentication: authentication)
84
+ try ParseSwift . initialize ( applicationId: appID,
85
+ clientKey: clientKey,
86
+ serverURL: serverURL,
87
+ liveQueryServerURL: liveQueryURL,
88
+ requiringCustomObjectIds: true ,
89
+ usingTransactions: useTransactions,
90
+ usingPostForQuery: true ,
91
+ deletingKeychainIfNeeded: deleteKeychainIfNeeded,
92
+ authentication: authentication)
93
93
}
94
94
95
95
/**
0 commit comments