File tree 4 files changed +6
-9
lines changed
4 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,8 @@ + (instancetype)sharedParseReachability {
99
99
static PFReachability *reachability;
100
100
static dispatch_once_t onceToken;
101
101
dispatch_once (&onceToken, ^{
102
- reachability = [[self alloc ] initWithURL: [Parse _currentManager ].serverURL];
102
+ NSURL *url = [NSURL URLWithString: [Parse _currentManager ].configuration.server];
103
+ reachability = [[self alloc ] initWithURL: url];
103
104
});
104
105
return reachability;
105
106
}
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ PFKeyValueCacheProvider,
34
34
PFInstallationIdentifierStoreProvider>
35
35
36
36
@property (nonatomic , copy , readonly ) ParseClientConfiguration *configuration;
37
- @property (nonatomic , strong , readonly ) NSURL *serverURL;
38
37
39
38
@property (nonatomic , strong , readonly ) PFCoreManager *coreManager;
40
39
@@ -59,11 +58,10 @@ PFInstallationIdentifierStoreProvider>
59
58
Initializes an instance of ParseManager class.
60
59
61
60
@param configuration Configuration of parse app.
62
- @param url Parse API Server URL.
63
61
64
62
@return `ParseManager` instance.
65
63
*/
66
- - (instancetype )initWithConfiguration : (ParseClientConfiguration *)configuration serverURL : ( NSURL *) url NS_DESIGNATED_INITIALIZER;
64
+ - (instancetype )initWithConfiguration : (ParseClientConfiguration *)configuration NS_DESIGNATED_INITIALIZER;
67
65
68
66
/* *
69
67
Begins all necessary operations for this manager to become active.
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ @implementation ParseManager
86
86
#pragma mark - Init
87
87
// /--------------------------------------
88
88
89
- - (instancetype )initWithConfiguration : (ParseClientConfiguration *)configuration serverURL : ( NSURL *) url {
89
+ - (instancetype )initWithConfiguration : (ParseClientConfiguration *)configuration {
90
90
self = [super init ];
91
91
if (!self) return nil ;
92
92
@@ -105,7 +105,6 @@ - (instancetype)initWithConfiguration:(ParseClientConfiguration *)configuration
105
105
_preloadQueue = dispatch_queue_create (" com.parse.preload" , DISPATCH_QUEUE_SERIAL);
106
106
107
107
_configuration = [configuration copy ];
108
- _serverURL = url;
109
108
110
109
return self;
111
110
}
@@ -313,7 +312,7 @@ - (PFInstallationIdentifierStore *)installationIdentifierStore {
313
312
retryAttempts: self .configuration.networkRetryAttempts
314
313
applicationId: self .configuration.applicationId
315
314
clientKey: self .configuration.clientKey
316
- serverURL: self .serverURL ];
315
+ serverURL: [ NSURL URLWithString: self .configuration.server] ];
317
316
}
318
317
runner = _commandRunner;
319
318
});
Original file line number Diff line number Diff line change @@ -75,8 +75,7 @@ + (void)initializeWithConfiguration:(ParseClientConfiguration *)configuration {
75
75
configuration.containingApplicationBundleIdentifier != nil ,
76
76
@" 'containingApplicationBundleIdentifier' must be non-nil in extension environment" );
77
77
78
- ParseManager *manager = [[ParseManager alloc ] initWithConfiguration: configuration
79
- serverURL: [NSURL URLWithString: configuration.server]];
78
+ ParseManager *manager = [[ParseManager alloc ] initWithConfiguration: configuration];
80
79
[manager startManaging ];
81
80
82
81
currentParseManager_ = manager;
You can’t perform that action at this time.
0 commit comments