File tree Expand file tree Collapse file tree 2 files changed +0
-15
lines changed
FirebaseRemoteConfig/Sources Expand file tree Collapse file tree 2 files changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -56,9 +56,6 @@ typedef void (^RCNConfigFetcherTestBlock)(RCNConfigFetcherCompletion completion)
5656// / Add the ability to update NSURLSession's timeout after a session has already been created.
5757- (void )recreateNetworkSession ;
5858
59- // / Sets the test block to mock the fetch response instead of performing the fetch task from server.
60- + (void )setGlobalTestBlock : (RCNConfigFetcherTestBlock)block ;
61-
6259NS_ASSUME_NONNULL_END
6360
6461@end
Original file line number Diff line number Diff line change 6767// Deprecated error code previously from FirebaseCore
6868static const NSInteger FIRErrorCodeConfigFailed = -114 ;
6969
70- static RCNConfigFetcherTestBlock gGlobalTestBlock ;
71-
7270#pragma mark - RCNConfig
7371
7472@implementation RCNConfigFetch {
@@ -516,23 +514,13 @@ - (void)fetchWithUserProperties:(NSDictionary *)userProperties
516514 return ;
517515 }
518516
519- if (gGlobalTestBlock ) {
520- gGlobalTestBlock (fetcherCompletion);
521- return ;
522- }
523517 FIRLogDebug (kFIRLoggerRemoteConfig , @" I-RCN000061" , @" Making remote config fetch." );
524518
525519 NSURLSessionDataTask *dataTask = [self URLSessionDataTaskWithContent: compressedContent
526520 completionHandler: fetcherCompletion];
527521 [dataTask resume ];
528522}
529523
530- + (void )setGlobalTestBlock : (RCNConfigFetcherTestBlock)block {
531- FIRLogDebug (kFIRLoggerRemoteConfig , @" I-RCN000027" ,
532- @" Set global test block for NSSessionFetcher, it will not fetch from server." );
533- gGlobalTestBlock = [block copy ];
534- }
535-
536524- (NSString *)constructServerURL {
537525 NSString *serverURLStr = [[NSString alloc ] initWithString: kServerURLDomain ];
538526 serverURLStr = [serverURLStr stringByAppendingString: kServerURLVersion ];
You can’t perform that action at this time.
0 commit comments