@@ -199,7 +199,9 @@ - (void)fetchConfigWithExpirationDuration:(NSTimeInterval)expirationDuration
199199#pragma mark - Fetch helpers
200200
201201- (void )realtimeFetchConfigWithNoExpirationDuration : (NSInteger )fetchAttemptNumber
202- completionHandler : (RCNConfigFetchCompletion)completionHandler {
202+ completionHandler : (void (^)(FIRRemoteConfigFetchStatus status,
203+ FIRRemoteConfigUpdate *update,
204+ NSError *error))completionHandler {
203205 // Note: We expect the googleAppID to always be available.
204206 BOOL hasDeviceContextChanged = [Device remoteConfigHasDeviceContextChanged: _settings.deviceContext
205207 projectIdentifier: _options.googleAppID];
@@ -246,7 +248,9 @@ - (NSString *)FIRAppNameFromFullyQualifiedNamespace {
246248// / requests to work.(b/14751422).
247249- (void )refreshInstallationsTokenWithFetchHeader : (NSString *)fetchTypeHeader
248250 completionHandler : (FIRRemoteConfigFetchCompletion)completionHandler
249- updateCompletionHandler : (RCNConfigFetchCompletion)updateCompletionHandler {
251+ updateCompletionHandler : (void (^)(FIRRemoteConfigFetchStatus status,
252+ FIRRemoteConfigUpdate *update,
253+ NSError *error))updateCompletionHandler {
250254 FIRInstallations *installations = [FIRInstallations
251255 installationsWithApp: [FIRApp appNamed: [self FIRAppNameFromFullyQualifiedNamespace ]]];
252256 if (!installations || !_options.GCMSenderID ) {
@@ -344,7 +348,9 @@ - (void)refreshInstallationsTokenWithFetchHeader:(NSString *)fetchTypeHeader
344348
345349- (void )doFetchCall : (NSString *)fetchTypeHeader
346350 completionHandler : (FIRRemoteConfigFetchCompletion)completionHandler
347- updateCompletionHandler : (RCNConfigFetchCompletion)updateCompletionHandler {
351+ updateCompletionHandler : (void (^)(FIRRemoteConfigFetchStatus status,
352+ FIRRemoteConfigUpdate *update,
353+ NSError *error))updateCompletionHandler {
348354 [self getAnalyticsUserPropertiesWithCompletionHandler: ^(NSDictionary *userProperties) {
349355 dispatch_async (self->_lockQueue , ^{
350356 [self fetchWithUserProperties: userProperties
@@ -380,7 +386,9 @@ - (void)reportCompletionWithStatus:(FIRRemoteConfigFetchStatus)status
380386 withUpdate : (FIRRemoteConfigUpdate *)update
381387 withError : (NSError *)error
382388 completionHandler : (FIRRemoteConfigFetchCompletion)completionHandler
383- updateCompletionHandler : (RCNConfigFetchCompletion)updateCompletionHandler {
389+ updateCompletionHandler : (void (^)(FIRRemoteConfigFetchStatus status,
390+ FIRRemoteConfigUpdate *update,
391+ NSError *error))updateCompletionHandler {
384392 if (completionHandler) {
385393 dispatch_async (dispatch_get_main_queue (), ^{
386394 completionHandler (status, error);
@@ -397,7 +405,9 @@ - (void)reportCompletionWithStatus:(FIRRemoteConfigFetchStatus)status
397405- (void )fetchWithUserProperties : (NSDictionary *)userProperties
398406 fetchTypeHeader : (NSString *)fetchTypeHeader
399407 completionHandler : (FIRRemoteConfigFetchCompletion)completionHandler
400- updateCompletionHandler : (RCNConfigFetchCompletion)updateCompletionHandler {
408+ updateCompletionHandler : (void (^)(FIRRemoteConfigFetchStatus status,
409+ FIRRemoteConfigUpdate *update,
410+ NSError *error))updateCompletionHandler {
401411 FIRLogDebug (kFIRLoggerRemoteConfig , @" I-RCN000061" , @" Fetch with user properties initiated." );
402412
403413 NSString *postRequestString = [_settings nextRequestWithUserProperties: userProperties];
0 commit comments