From 751bf02836f6af652cbd2d9f5a499444a5964a00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Djalma=20Ara=C3=BAjo?= Date: Mon, 9 Oct 2017 11:37:43 +0100 Subject: [PATCH] Added requiresMainQueueSetup to prevent warning and future side-effects (#1035) --- ios/CodePush/CodePush.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ios/CodePush/CodePush.m b/ios/CodePush/CodePush.m index e1ab134f..c6075ddb 100644 --- a/ios/CodePush/CodePush.m +++ b/ios/CodePush/CodePush.m @@ -302,6 +302,11 @@ static NSString *bundleResourceSubdirectory = nil; }; }; ++ (BOOL)requiresMainQueueSetup +{ + return YES; +} + - (void)dealloc { // Ensure the global resume handler is cleared, so that @@ -627,7 +632,7 @@ RCT_EXPORT_METHOD(downloadUpdate:(NSDictionary*)updatePackage _didUpdateProgress = NO; self.paused = NO; } - + NSString * publicKey = [[CodePushConfig current] publicKey]; [CodePushPackage