From eb8f5d8d81770bc38ca2160a4b324a89547cebc3 Mon Sep 17 00:00:00 2001 From: Kim Lai Date: Tue, 23 Oct 2018 22:31:31 +0800 Subject: [PATCH 1/3] Fix yellow warning about requiresMainQueueSetup on iOS - fix the yellow warning on ios simulator Module Smartconfig requires main queue setup since it overrides `init` but doesn't implement `requiresMainQueueSetup`. In a future release React Native will default to initializing all native modules on a background thread unless explicitly opted-out of. --- ios/RCTSmartconfig/Smartconfig.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ios/RCTSmartconfig/Smartconfig.m b/ios/RCTSmartconfig/Smartconfig.m index a6f05a1..4270042 100644 --- a/ios/RCTSmartconfig/Smartconfig.m +++ b/ios/RCTSmartconfig/Smartconfig.m @@ -62,6 +62,12 @@ - (instancetype)init } return self; } + ++ (BOOL)requiresMainQueueSetup +{ + return YES; +} + RCT_EXPORT_METHOD(stop) { [self cancel]; } From 6ee9946b08dd93772b615faa9d6ed7d871ca8383 Mon Sep 17 00:00:00 2001 From: Kim Lai Date: Wed, 24 Oct 2018 19:20:24 +0800 Subject: [PATCH 2/3] bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 457d20e..d7bce21 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-smartconfig", - "version": "0.2.2", + "version": "1.2", "description": "react-native ESP8266 smartconfig module", "nativePackage": true, "scripts": { From 48c4ed44cc827ca7588dbabb21561f5ada88f74e Mon Sep 17 00:00:00 2001 From: Kim Lai Date: Wed, 24 Oct 2018 21:31:01 +0800 Subject: [PATCH 3/3] follow npm semver rules --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d7bce21..4d3c41b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-smartconfig", - "version": "1.2", + "version": "1.0.2", "description": "react-native ESP8266 smartconfig module", "nativePackage": true, "scripts": {