@@ -50,8 +50,8 @@ @implementation PFURLSessionCommandRunner
5050
5151- (instancetype )initWithDataSource : (id <PFInstallationIdentifierStoreProvider>)dataSource
5252 applicationId : (NSString *)applicationId
53- clientKey : (NSString *)clientKey
54- serverURL : (nonnull NSURL *)serverURL {
53+ clientKey : (nullable NSString *)clientKey
54+ serverURL : (NSURL *)serverURL {
5555 return [self initWithDataSource: dataSource
5656 retryAttempts: PFCommandRunningDefaultMaxAttemptsCount
5757 applicationId: applicationId
@@ -62,10 +62,9 @@ - (instancetype)initWithDataSource:(id<PFInstallationIdentifierStoreProvider>)da
6262- (instancetype )initWithDataSource : (id <PFInstallationIdentifierStoreProvider>)dataSource
6363 retryAttempts : (NSUInteger )retryAttempts
6464 applicationId : (NSString *)applicationId
65- clientKey : (NSString *)clientKey
65+ clientKey : (nullable NSString *)clientKey
6666 serverURL : (NSURL *)serverURL {
67- NSURLSessionConfiguration *configuration = [[self class ] _urlSessionConfigurationForApplicationId: applicationId
68- clientKey: clientKey];
67+ NSURLSessionConfiguration *configuration = [[self class ] _urlSessionConfigurationForApplicationId: applicationId clientKey: clientKey];
6968
7069 PFURLSession *session = [PFURLSession sessionWithConfiguration: configuration delegate: self ];
7170 PFCommandURLRequestConstructor *constructor = [PFCommandURLRequestConstructor constructorWithDataSource: dataSource serverURL: serverURL];
@@ -102,15 +101,15 @@ - (instancetype)initWithDataSource:(id<PFInstallationIdentifierStoreProvider>)da
102101
103102+ (instancetype )commandRunnerWithDataSource : (id <PFInstallationIdentifierStoreProvider>)dataSource
104103 applicationId : (NSString *)applicationId
105- clientKey : (NSString *)clientKey
104+ clientKey : (nullable NSString *)clientKey
106105 serverURL : (nonnull NSURL *)serverURL {
107106 return [[self alloc ] initWithDataSource: dataSource applicationId: applicationId clientKey: clientKey serverURL: serverURL];
108107}
109108
110109+ (instancetype )commandRunnerWithDataSource : (id <PFInstallationIdentifierStoreProvider>)dataSource
111110 retryAttempts : (NSUInteger )retryAttempts
112111 applicationId : (NSString *)applicationId
113- clientKey : (NSString *)clientKey
112+ clientKey : (nullable NSString *)clientKey
114113 serverURL : (nonnull NSURL *)serverURL {
115114 return [[self alloc ] initWithDataSource: dataSource
116115 retryAttempts: retryAttempts
@@ -255,7 +254,7 @@ - (BFTask *)_performCommandRunningBlock:(nonnull id (^)())block
255254// /--------------------------------------
256255
257256+ (NSURLSessionConfiguration *)_urlSessionConfigurationForApplicationId : (NSString *)applicationId
258- clientKey : (NSString *)clientKey {
257+ clientKey : (nullable NSString *)clientKey {
259258 NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration defaultSessionConfiguration ];
260259
261260 // No cookies, they are bad for you.
0 commit comments