[ios] Explicitly set requiresMainQueueSetup to prevent warnings on app start

This commit is contained in:
Chris Bianca 2017-10-12 09:18:01 +01:00
parent f348ba8a8c
commit 114e3b2b5b
8 changed files with 38 additions and 0 deletions

View File

@ -111,5 +111,9 @@ RCT_EXPORT_METHOD(deleteApp:
return constants;
}
+ (BOOL)requiresMainQueueSetup
{
return YES;
}
@end

View File

@ -215,6 +215,11 @@ RCT_EXPORT_METHOD(clearInterstitial:
}
}
+ (BOOL)requiresMainQueueSetup
{
return YES;
}
@end
#else

View File

@ -1166,6 +1166,11 @@ RCT_EXPORT_METHOD(fetchProvidersForEmail:
return @[AUTH_CHANGED_EVENT, AUTH_ID_TOKEN_CHANGED_EVENT, PHONE_AUTH_STATE_CHANGED_EVENT];
}
+ (BOOL)requiresMainQueueSetup
{
return YES;
}
@end
#else

View File

@ -396,6 +396,11 @@ RCT_EXPORT_METHOD(off:(NSString *) key
return @[DATABASE_SYNC_EVENT, DATABASE_TRANSACTION_EVENT];
}
+ (BOOL)requiresMainQueueSetup
{
return YES;
}
@end
#else

View File

@ -276,6 +276,11 @@ RCT_EXPORT_METHOD(documentUpdate:(NSString *) appName
return @[FIRESTORE_COLLECTION_SYNC_EVENT, FIRESTORE_DOCUMENT_SYNC_EVENT];
}
+ (BOOL)requiresMainQueueSetup
{
return YES;
}
@end
#else

View File

@ -448,6 +448,11 @@ RCT_EXPORT_METHOD(finishNotificationResponse: (NSString *)completionHandlerId) {
return @[MESSAGING_TOKEN_REFRESHED, MESSAGING_NOTIFICATION_RECEIVED];
}
+ (BOOL)requiresMainQueueSetup
{
return YES;
}
@end
#else

View File

@ -45,6 +45,11 @@ RCT_EXPORT_METHOD(incrementCounter:
[[self getOrCreateTrace:identifier] incrementCounterNamed:event];
}
+ (BOOL)requiresMainQueueSetup
{
return YES;
}
@end
#else

View File

@ -476,6 +476,10 @@ RCT_EXPORT_METHOD(putFile:(NSString *) appName
}
}
+ (BOOL)requiresMainQueueSetup
{
return YES;
}
@end