@@ -198,76 +198,76 @@ - (void)dealloc
198198
199199#pragma mark RemoteConfig
200200
201- RCT_EXPORT_METHOD (setDefaultRemoteConfig:(NSDictionary *)props
202- callback:(RCTResponseSenderBlock) callback)
203- {
204- if (!self.remoteConfigInstance ) {
205- // Create remote Config instance
206- self.remoteConfigInstance = [FIRRemoteConfig remoteConfig ];
207- }
201+ // RCT_EXPORT_METHOD(setDefaultRemoteConfig:(NSDictionary *)props
202+ // callback:(RCTResponseSenderBlock) callback)
203+ // {
204+ // if (!self.remoteConfigInstance) {
205+ // // Create remote Config instance
206+ // self.remoteConfigInstance = [FIRRemoteConfig remoteConfig];
207+ // }
208208
209- [self .remoteConfigInstance setDefaults: props];
210- callback (@[[NSNull null ], props]);
211- }
209+ // [self.remoteConfigInstance setDefaults:props];
210+ // callback(@[[NSNull null], props]);
211+ // }
212212
213- RCT_EXPORT_METHOD (setDev:(RCTResponseSenderBlock) callback)
214- {
215- FIRRemoteConfigSettings *remoteConfigSettings = [[FIRRemoteConfigSettings alloc ] initWithDeveloperModeEnabled: YES ];
216- self.remoteConfigInstance .configSettings = remoteConfigSettings;
217- callback (@[[NSNull null ], @" ok" ]);
218- }
213+ // RCT_EXPORT_METHOD(setDev:(RCTResponseSenderBlock) callback)
214+ // {
215+ // FIRRemoteConfigSettings *remoteConfigSettings = [[FIRRemoteConfigSettings alloc] initWithDeveloperModeEnabled:YES];
216+ // self.remoteConfigInstance.configSettings = remoteConfigSettings;
217+ // callback(@[[NSNull null], @"ok"]);
218+ // }
219219
220- RCT_EXPORT_METHOD (configValueForKey:(NSString *)name
221- callback:(RCTResponseSenderBlock) callback)
222- {
223- if (!self.remoteConfigInstance ) {
224- NSDictionary *err = @{
225- @" error" : @" No configuration instance" ,
226- @" msg" : @" No configuration instance set. Please call setDefaultRemoteConfig before using this feature"
227- };
228- callback (@[err]);
229- }
220+ // RCT_EXPORT_METHOD(configValueForKey:(NSString *)name
221+ // callback:(RCTResponseSenderBlock) callback)
222+ // {
223+ // if (!self.remoteConfigInstance) {
224+ // NSDictionary *err = @{
225+ // @"error": @"No configuration instance",
226+ // @"msg": @"No configuration instance set. Please call setDefaultRemoteConfig before using this feature"
227+ // };
228+ // callback(@[err]);
229+ // }
230230
231231
232- FIRRemoteConfigValue *value = [self .remoteConfigInstance configValueForKey: name];
233- NSString *valueStr = value.stringValue ;
232+ // FIRRemoteConfigValue *value = [self.remoteConfigInstance configValueForKey:name];
233+ // NSString *valueStr = value.stringValue;
234234
235- if (valueStr == nil ) {
236- valueStr = @" " ;
237- }
238- callback (@[[NSNull null ], valueStr]);
239- }
235+ // if (valueStr == nil) {
236+ // valueStr = @"";
237+ // }
238+ // callback(@[[NSNull null], valueStr]);
239+ // }
240240
241- RCT_EXPORT_METHOD (fetchWithExpiration:(NSNumber *)expirationSeconds
242- callback:(RCTResponseSenderBlock) callback)
243- {
244- if (!self.remoteConfigInstance ) {
245- NSDictionary *err = @{
246- @" error" : @" No configuration instance" ,
247- @" msg" : @" No configuration instance set. Please call setDefaultRemoteConfig before using this feature"
248- };
249- callback (@[err]);
250- }
241+ // RCT_EXPORT_METHOD(fetchWithExpiration:(NSNumber*)expirationSeconds
242+ // callback:(RCTResponseSenderBlock) callback)
243+ // {
244+ // if (!self.remoteConfigInstance) {
245+ // NSDictionary *err = @{
246+ // @"error": @"No configuration instance",
247+ // @"msg": @"No configuration instance set. Please call setDefaultRemoteConfig before using this feature"
248+ // };
249+ // callback(@[err]);
250+ // }
251251
252- NSTimeInterval expirationDuration = [expirationSeconds doubleValue ];
252+ // NSTimeInterval expirationDuration = [expirationSeconds doubleValue];
253253
254- [self .remoteConfigInstance fetchWithExpirationDuration: expirationDuration completionHandler: ^(FIRRemoteConfigFetchStatus status, NSError *error) {
255- if (status == FIRRemoteConfigFetchStatusSuccess) {
256- NSLog (@" Config fetched!" );
257- [self .remoteConfigInstance activateFetched ];
258- callback (@[[NSNull null ], @(YES )]);
259- } else {
260- NSLog (@" Error %@ " , error.localizedDescription );
254+ // [self.remoteConfigInstance fetchWithExpirationDuration:expirationDuration completionHandler:^(FIRRemoteConfigFetchStatus status, NSError *error) {
255+ // if (status == FIRRemoteConfigFetchStatusSuccess) {
256+ // NSLog(@"Config fetched!");
257+ // [self.remoteConfigInstance activateFetched];
258+ // callback(@[[NSNull null], @(YES)]);
259+ // } else {
260+ // NSLog(@"Error %@", error.localizedDescription);
261261
262- NSDictionary *err = @{
263- @" error" : @" No configuration instance" ,
264- @" msg" : [error localizedDescription ]
265- };
262+ // NSDictionary *err = @{
263+ // @"error": @"No configuration instance",
264+ // @"msg": [error localizedDescription]
265+ // };
266266
267- callback (@[err]);
268- }
269- }];
270- }
267+ // callback(@[err]);
268+ // }
269+ // }];
270+ // }
271271
272272#pragma mark Database
273273
0 commit comments