├── .gitignore ├── LICENSE ├── README.md ├── android ├── build.gradle └── src │ └── main │ ├── AndroidManifest.xml │ └── java │ └── com │ └── tadasr │ └── IOTWifi │ ├── IOTWifiModule.java │ └── IOTWifiPackage.java ├── example ├── .babelrc ├── .buckconfig ├── .flowconfig ├── .gitattributes ├── .watchmanconfig ├── App.js ├── android │ ├── app │ │ ├── BUCK │ │ ├── build.gradle │ │ ├── proguard-rules.pro │ │ └── src │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── java │ │ │ └── com │ │ │ │ └── example │ │ │ │ ├── MainActivity.java │ │ │ │ └── MainApplication.java │ │ │ └── res │ │ │ ├── mipmap-hdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ └── values │ │ │ ├── strings.xml │ │ │ └── styles.xml │ ├── build.gradle │ ├── gradle.properties │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ ├── gradlew │ ├── gradlew.bat │ ├── keystores │ │ ├── BUCK │ │ └── debug.keystore.properties │ └── settings.gradle ├── app.json ├── index.js ├── ios │ ├── example-tvOS │ │ └── Info.plist │ ├── example-tvOSTests │ │ └── Info.plist │ ├── example.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── example-tvOS.xcscheme │ │ │ └── example.xcscheme │ ├── example │ │ ├── AppDelegate.h │ │ ├── AppDelegate.m │ │ ├── Base.lproj │ │ │ └── LaunchScreen.xib │ │ ├── Images.xcassets │ │ │ ├── AppIcon.appiconset │ │ │ │ ├── Contents.json │ │ │ │ ├── ios-marketing-1024x1024.png │ │ │ │ ├── ipad-20x20.png │ │ │ │ ├── ipad-20x20@2x.png │ │ │ │ ├── ipad-29x29.png │ │ │ │ ├── ipad-29x29@2x.png │ │ │ │ ├── ipad-40x40.png │ │ │ │ ├── ipad-40x40@2x.png │ │ │ │ ├── ipad-76x76.png │ │ │ │ ├── ipad-76x76@2x.png │ │ │ │ ├── ipad-83.5x83.5@2x.png │ │ │ │ ├── iphone-20x20@2x.png │ │ │ │ ├── iphone-20x20@3x.png │ │ │ │ ├── iphone-29x29@2x.png │ │ │ │ ├── iphone-29x29@3x.png │ │ │ │ ├── iphone-40x40@2x.png │ │ │ │ ├── iphone-40x40@3x.png │ │ │ │ ├── iphone-60x60@2x.png │ │ │ │ └── iphone-60x60@3x.png │ │ │ └── Contents.json │ │ ├── Info.plist │ │ ├── example.entitlements │ │ └── main.m │ └── exampleTests │ │ ├── Info.plist │ │ └── exampleTests.m ├── package.json └── yarn.lock ├── index.d.ts ├── index.js ├── ios ├── IOTWifi.h ├── IOTWifi.m └── IOTWifi.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ └── contents.xcworkspacedata └── package.json /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | .DS_Store 3 | */build/* 4 | *.pbxuser 5 | !default.pbxuser 6 | *.mode1v3 7 | !default.mode1v3 8 | *.mode2v3 9 | !default.mode2v3 10 | *.perspectivev3 11 | !default.perspectivev3 12 | xcuserdata 13 | profile 14 | *.moved-aside 15 | DerivedData 16 | .idea/ 17 | *.hmap 18 | xcuserdata/* 19 | xcuserdata 20 | 21 | *.xccheckout 22 | *.moved-aside 23 | DerivedData 24 | *.hmap 25 | *.ipa 26 | *.xcuserstate 27 | project.xcworkspace 28 | 29 | # Android/IntelliJ 30 | # 31 | build/ 32 | .idea 33 | .gradle 34 | local.properties 35 | *.iml 36 | 37 | # node.js 38 | # 39 | node_modules/ 40 | */npm-debug.log 41 | */yarn-error.log 42 | 43 | # BUCK 44 | buck-out/ 45 | \.buckd/ 46 | *.keystore 47 | 48 | # fastlane 49 | # 50 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 51 | # screenshots whenever they are needed. 52 | # For more information about the recommended setup visit: 53 | # https://docs.fastlane.tools/best-practices/source-control/ 54 | 55 | */fastlane/report.xml 56 | */fastlane/Preview.html 57 | */fastlane/screenshots 58 | 59 | # Bundle artifact 60 | *.jsbundle 61 | index.android.bundle 62 | 63 | *.project 64 | 65 | *.settings/ 66 | 67 | example/android/app/bin/ 68 | 69 | android/bin/ 70 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Nectar Sun 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # react-native-iot-wifi 2 | Wifi configuration. 3 | This library was written to config iot devices. With iOS 11 Apple introduced NEHotspotConfiguration class for wifi configuration. Library supports same functionality on ios and android. 4 | 5 | ## 1.0.0 6 | * Optional Force binding to a Wifi on both iOS and Android platforms 7 | * Android: Better error handling 8 | * Android: Detection for a system added config which cant be reused, removed or updated 9 | * Android: Reliable polling for requested network connection for callbacks 10 | * It does do a lot of other cleanup and re-use of code 11 | 12 | ## 0.4.5 13 | Android: 14 | * Makes the connect call asynchronous on Android 15 | * Fails for Android Q as the API is deprecated 16 | 17 | iOS: 18 | * Fixes APIs on Simulator as it was behind a compile time macro 19 | * Exposed and returns defaults for Simulator targets 20 | 21 | ## 0.3.0 22 | * `connectSecure()` now works 23 | * `getSSID()` should work on android 24 | 25 | ## iOS 26 | > Important 27 | > IOTWifi uses NEHotspotConfigurationManager. To use the NEHotspotConfigurationManager class, you must enable the Hotspot Configuration capability in [Xcode](http://help.apple.com/xcode/mac/current/#/dev88ff319e7). 28 | 29 | 1. Drang an drop `IOTWifi.xcodeproj` to your workspace 30 | 2. [Link target](https://help.apple.com/xcode/mac/current/#/dev51a648b07) to `libIOTWifi.a` library 31 | 3. [Link target](https://help.apple.com/xcode/mac/current/#/dev51a648b07) to `NetworkExtension.framework` framework 32 | 4. [Enable](http://help.apple.com/xcode/mac/current/#/dev88ff319e7) `Hotspot Configuration` 33 | 5. For iOS 12 [Enable](http://help.apple.com/xcode/mac/current/#/dev88ff319e7) `Access WiFi Information` 34 | 35 | ## android 36 | 37 | ## Usage 38 | 39 | ```javascript 40 | import Wifi from "react-native-iot-wifi"; 41 | 42 | Wifi.isApiAvailable((available) => { 43 | console.log(available ? 'available' : 'failed'); 44 | }); 45 | 46 | Wifi.getSSID((SSID) => { 47 | console.log(SSID); 48 | }); 49 | 50 | Wifi.connect("wifi-name", (error) => { 51 | console.log(error ? 'error: ' + error : 'connected to wifi-name'); 52 | }); 53 | 54 | Wifi.removeSSID("wifi-name", (error)=>{ 55 | console.log(error ? 'error: ' + error : 'removed wifi-name'); 56 | }); 57 | ``` 58 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.library' 2 | 3 | android { 4 | compileSdkVersion 26 5 | buildToolsVersion '28.0.3' 6 | 7 | defaultConfig { 8 | minSdkVersion 21 9 | targetSdkVersion 26 10 | versionCode 1 11 | versionName "1.0" 12 | ndk { 13 | abiFilters "armeabi-v7a", "x86" 14 | } 15 | } 16 | lintOptions { 17 | warning 'InvalidPackage' 18 | } 19 | } 20 | 21 | dependencies { 22 | implementation 'com.facebook.react:react-native:0.20.1+' 23 | } 24 | -------------------------------------------------------------------------------- /android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/src/main/java/com/tadasr/IOTWifi/IOTWifiModule.java: -------------------------------------------------------------------------------- 1 | package com.tadasr.IOTWifi; 2 | 3 | import com.facebook.react.bridge.*; 4 | 5 | import android.net.ConnectivityManager; 6 | import android.net.Network; 7 | import android.net.NetworkCapabilities; 8 | import android.net.NetworkInfo; 9 | import android.net.NetworkRequest; 10 | import android.net.wifi.WifiInfo; 11 | import android.net.wifi.WifiManager; 12 | import android.net.wifi.WifiConfiguration; 13 | import android.content.Context; 14 | import android.os.Build; 15 | import android.util.Log; 16 | 17 | import java.util.List; 18 | 19 | 20 | class FailureCodes { 21 | static int SYSTEM_ADDED_CONFIG_EXISTS = 1; 22 | static int FAILED_TO_CONNECT = 2; 23 | static int FAILED_TO_ADD_CONFIG = 3; 24 | static int FAILED_TO_BIND_CONFIG = 4; 25 | } 26 | 27 | public class IOTWifiModule extends ReactContextBaseJavaModule { 28 | private WifiManager wifiManager; 29 | private ConnectivityManager connectivityManager; 30 | private ReactApplicationContext context; 31 | 32 | public IOTWifiModule(ReactApplicationContext reactContext) { 33 | super(reactContext); 34 | wifiManager = (WifiManager) getReactApplicationContext().getApplicationContext() 35 | .getSystemService(Context.WIFI_SERVICE); 36 | connectivityManager = (ConnectivityManager) getReactApplicationContext().getApplicationContext() 37 | .getSystemService(Context.CONNECTIVITY_SERVICE); 38 | context = getReactApplicationContext(); 39 | } 40 | 41 | private String errorFromCode(int errorCode) { 42 | return "ErrorCode: " + errorCode; 43 | } 44 | 45 | @Override 46 | public String getName() { 47 | return "IOTWifi"; 48 | } 49 | 50 | @ReactMethod 51 | public void isApiAvailable(final Callback callback) { 52 | callback.invoke(true); 53 | } 54 | 55 | @ReactMethod 56 | public void connect(String ssid, Boolean bindNetwork, Callback callback) { 57 | connectSecure(ssid, "", false, bindNetwork, callback); 58 | } 59 | 60 | @ReactMethod 61 | public void connectSecure(final String ssid, final String passphrase, final Boolean isWEP, 62 | final Boolean bindNetwork, final Callback callback) { 63 | new Thread(new Runnable() { 64 | public void run() { 65 | connectToWifi(ssid, passphrase, isWEP, bindNetwork, callback); 66 | } 67 | }).start(); 68 | } 69 | 70 | private void connectToWifi(String ssid, String passphrase, Boolean isWEP, Boolean bindNetwork, Callback callback) { 71 | if (Build.VERSION.SDK_INT > 28) { 72 | callback.invoke("Not supported on Android Q"); 73 | return; 74 | } 75 | if (!removeSSID(ssid)) { 76 | callback.invoke(errorFromCode(FailureCodes.SYSTEM_ADDED_CONFIG_EXISTS)); 77 | return; 78 | } 79 | 80 | WifiConfiguration configuration = createWifiConfiguration(ssid, passphrase, isWEP); 81 | int networkId = wifiManager.addNetwork(configuration); 82 | 83 | if (networkId != -1) { 84 | // Enable it so that android can connect 85 | wifiManager.disconnect(); 86 | boolean success = wifiManager.enableNetwork(networkId, true); 87 | if (!success) { 88 | callback.invoke(errorFromCode(FailureCodes.FAILED_TO_ADD_CONFIG)); 89 | return; 90 | } 91 | success = wifiManager.reconnect(); 92 | if (!success) { 93 | callback.invoke(errorFromCode(FailureCodes.FAILED_TO_CONNECT)); 94 | return; 95 | } 96 | boolean connected = pollForValidSSSID(10, ssid); 97 | if (!connected) { 98 | callback.invoke(errorFromCode(FailureCodes.FAILED_TO_CONNECT)); 99 | return; 100 | } 101 | if (!bindNetwork) { 102 | callback.invoke(); 103 | return; 104 | } 105 | try { 106 | bindToNetwork(ssid, callback); 107 | } catch (Exception e) { 108 | Log.d("IoTWifi", "Failed to bind to Wifi: " + ssid); 109 | callback.invoke(); 110 | } 111 | } else { 112 | callback.invoke(errorFromCode(FailureCodes.FAILED_TO_ADD_CONFIG)); 113 | } 114 | } 115 | 116 | private WifiConfiguration createWifiConfiguration(String ssid, String passphrase, Boolean isWEP) { 117 | WifiConfiguration configuration = new WifiConfiguration(); 118 | configuration.SSID = String.format("\"%s\"", ssid); 119 | 120 | if (passphrase.equals("")) { 121 | configuration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); 122 | } else if (isWEP) { 123 | configuration.wepKeys[0] = "\"" + passphrase + "\""; 124 | configuration.wepTxKeyIndex = 0; 125 | configuration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); 126 | configuration.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.WEP40); 127 | } else { // WPA/WPA2 128 | configuration.preSharedKey = "\"" + passphrase + "\""; 129 | } 130 | 131 | if (!wifiManager.isWifiEnabled()) { 132 | wifiManager.setWifiEnabled(true); 133 | } 134 | return configuration; 135 | } 136 | 137 | private boolean pollForValidSSSID(int maxSeconds, String expectedSSID) { 138 | try { 139 | for (int i = 0; i < maxSeconds; i++) { 140 | String ssid = this.getWifiSSID(); 141 | if (ssid != null && ssid.equalsIgnoreCase(expectedSSID)) { 142 | return true; 143 | } 144 | Thread.sleep(1000); 145 | } 146 | } catch (InterruptedException e) { 147 | return false; 148 | } 149 | return false; 150 | } 151 | 152 | private void bindToNetwork(final String ssid, final Callback callback) { 153 | NetworkRequest.Builder builder = new NetworkRequest.Builder(); 154 | builder.addTransportType(NetworkCapabilities.TRANSPORT_WIFI); 155 | connectivityManager.requestNetwork(builder.build(), new ConnectivityManager.NetworkCallback() { 156 | 157 | private boolean bound = false; 158 | 159 | @Override 160 | public void onAvailable(Network network) { 161 | String offeredSSID = getWifiSSID(); 162 | 163 | if (!bound && offeredSSID.equals(ssid)) { 164 | try { 165 | bindProcessToNetwork(network); 166 | bound = true; 167 | callback.invoke(); 168 | return; 169 | } catch (Exception e) { 170 | e.printStackTrace(); 171 | } 172 | } 173 | callback.invoke(errorFromCode(FailureCodes.FAILED_TO_BIND_CONFIG)); 174 | } 175 | 176 | @Override 177 | public void onLost(Network network) { 178 | if (bound) { 179 | bindProcessToNetwork(null); 180 | connectivityManager.unregisterNetworkCallback(this); 181 | } 182 | } 183 | }); 184 | } 185 | 186 | private void bindProcessToNetwork(final Network network) { 187 | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { 188 | connectivityManager.bindProcessToNetwork(network); 189 | } else { 190 | ConnectivityManager.setProcessDefaultNetwork(network); 191 | } 192 | } 193 | 194 | @ReactMethod 195 | public void removeSSID(String ssid, Boolean unbind, Callback callback) { 196 | if (!removeSSID(ssid)) { 197 | callback.invoke(errorFromCode(FailureCodes.SYSTEM_ADDED_CONFIG_EXISTS)); 198 | return; 199 | } 200 | if (unbind) { 201 | bindProcessToNetwork(null); 202 | } 203 | 204 | callback.invoke(); 205 | } 206 | 207 | 208 | private boolean removeSSID(String ssid) { 209 | boolean success = true; 210 | // Remove the existing configuration for this network 211 | WifiConfiguration existingNetworkConfigForSSID = getExistingNetworkConfig(ssid); 212 | 213 | //No Config found 214 | if (existingNetworkConfigForSSID == null) { 215 | return success; 216 | } 217 | int existingNetworkId = existingNetworkConfigForSSID.networkId; 218 | if (existingNetworkId == -1) { 219 | return success; 220 | } 221 | success = wifiManager.removeNetwork(existingNetworkId) && wifiManager.saveConfiguration(); 222 | //If not our config then success would be false 223 | return success; 224 | } 225 | 226 | @ReactMethod 227 | public void getSSID(Callback callback) { 228 | String ssid = this.getWifiSSID(); 229 | callback.invoke(ssid); 230 | } 231 | 232 | private String getWifiSSID() { 233 | WifiInfo info = wifiManager.getConnectionInfo(); 234 | String ssid = info.getSSID(); 235 | 236 | if (ssid == null || ssid.equalsIgnoreCase("")) { 237 | NetworkInfo nInfo = connectivityManager.getActiveNetworkInfo(); 238 | if (nInfo != null && nInfo.isConnected()) { 239 | ssid = nInfo.getExtraInfo(); 240 | } 241 | } 242 | 243 | if (ssid != null && ssid.startsWith("\"") && ssid.endsWith("\"")) { 244 | ssid = ssid.substring(1, ssid.length() - 1); 245 | } 246 | 247 | return ssid; 248 | } 249 | 250 | private WifiConfiguration getExistingNetworkConfig(String ssid) { 251 | WifiConfiguration existingNetworkConfigForSSID = null; 252 | List configList = wifiManager.getConfiguredNetworks(); 253 | String comparableSSID = ('"' + ssid + '"'); // Add quotes because wifiConfig.SSID has them 254 | if (configList != null) { 255 | for (WifiConfiguration wifiConfig : configList) { 256 | if (wifiConfig.SSID.equals(comparableSSID)) { 257 | Log.d("IoTWifi", "Found Matching Wifi: "+ wifiConfig.toString()); 258 | existingNetworkConfigForSSID = wifiConfig; 259 | break; 260 | 261 | } 262 | } 263 | } 264 | return existingNetworkConfigForSSID; 265 | } 266 | } 267 | -------------------------------------------------------------------------------- /android/src/main/java/com/tadasr/IOTWifi/IOTWifiPackage.java: -------------------------------------------------------------------------------- 1 | package com.tadasr.IOTWifi; 2 | 3 | import java.util.Arrays; 4 | import java.util.Collections; 5 | import java.util.List; 6 | import java.util.ArrayList; 7 | import com.facebook.react.ReactPackage; 8 | import com.facebook.react.bridge.JavaScriptModule; 9 | import com.facebook.react.bridge.NativeModule; 10 | import com.facebook.react.bridge.ReactApplicationContext; 11 | import com.facebook.react.uimanager.ViewManager; 12 | import android.app.Activity; 13 | 14 | public class IOTWifiPackage implements ReactPackage { 15 | 16 | @Override 17 | public List createNativeModules(ReactApplicationContext reactContext) { 18 | List modules = new ArrayList<>(); 19 | modules.add(new IOTWifiModule(reactContext)); 20 | return modules; 21 | } 22 | @Override 23 | public List> createJSModules() { 24 | return Collections.emptyList(); 25 | } 26 | 27 | @Override 28 | public List createViewManagers(ReactApplicationContext reactContext) { 29 | return Arrays.asList(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /example/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["module:metro-react-native-babel-preset"] 3 | } 4 | -------------------------------------------------------------------------------- /example/.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /example/.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | ; We fork some components by platform 3 | .*/*[.]android.js 4 | 5 | ; Ignore "BUCK" generated dirs 6 | /\.buckd/ 7 | 8 | ; Ignore unexpected extra "@providesModule" 9 | .*/node_modules/.*/node_modules/fbjs/.* 10 | 11 | ; Ignore duplicate module providers 12 | ; For RN Apps installed via npm, "Libraries" folder is inside 13 | ; "node_modules/react-native" but in the source repo it is in the root 14 | .*/Libraries/react-native/React.js 15 | 16 | ; Ignore polyfills 17 | .*/Libraries/polyfills/.* 18 | 19 | ; Ignore metro 20 | .*/node_modules/metro/.* 21 | 22 | [include] 23 | 24 | [libs] 25 | node_modules/react-native/Libraries/react-native/react-native-interface.js 26 | node_modules/react-native/flow/ 27 | node_modules/react-native/flow-github/ 28 | 29 | [options] 30 | emoji=true 31 | 32 | esproposal.optional_chaining=enable 33 | esproposal.nullish_coalescing=enable 34 | 35 | module.system=haste 36 | module.system.haste.use_name_reducers=true 37 | # get basename 38 | module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1' 39 | # strip .js or .js.flow suffix 40 | module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1' 41 | # strip .ios suffix 42 | module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1' 43 | module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1' 44 | module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1' 45 | module.system.haste.paths.blacklist=.*/__tests__/.* 46 | module.system.haste.paths.blacklist=.*/__mocks__/.* 47 | module.system.haste.paths.blacklist=/node_modules/react-native/Libraries/Animated/src/polyfills/.* 48 | module.system.haste.paths.whitelist=/node_modules/react-native/Libraries/.* 49 | 50 | munge_underscores=true 51 | 52 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub' 53 | 54 | module.file_ext=.js 55 | module.file_ext=.jsx 56 | module.file_ext=.json 57 | module.file_ext=.native.js 58 | 59 | suppress_type=$FlowIssue 60 | suppress_type=$FlowFixMe 61 | suppress_type=$FlowFixMeProps 62 | suppress_type=$FlowFixMeState 63 | 64 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) 65 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ 66 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy 67 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError 68 | 69 | [version] 70 | ^0.78.0 71 | -------------------------------------------------------------------------------- /example/.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /example/.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /example/App.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Sample React Native App 3 | * https://github.com/facebook/react-native 4 | * 5 | * @format 6 | * @flow 7 | */ 8 | 9 | import React, {Component} from 'react'; 10 | import {StyleSheet, Text, View} from 'react-native'; 11 | import Wifi from "react-native-iot-wifi"; 12 | 13 | const ssid = 'your wifi ssid'; 14 | const passphase = 'your password'; 15 | 16 | export default class App extends Component { 17 | constructor(props) { 18 | super(props); 19 | this.state = { 20 | isApiAvaliable: false, 21 | ssid: '', 22 | connected: false, 23 | error: null 24 | }; 25 | 26 | this.testWifi(); 27 | } 28 | 29 | render() { 30 | return ( 31 | 32 | {"\n"} 33 | API available: {this.state.isApiAvaliable ? "yes" : "no"} {"\n"} 34 | ~{"\n"} 35 | SSID: {this.state.ssid} {"\n"} 36 | ~{"\n"} 37 | Connected to {ssid}: {this.state.connected ? "yes" : "no"} {"\n"} 38 | Error: {this.state.error}{"\n"} 39 | 40 | 41 | ); 42 | } 43 | 44 | testWifi(){ 45 | Wifi.isApiAvailable((available) => { 46 | 47 | this.setState({isApiAvaliable: available}); 48 | 49 | if (!available) { 50 | return; 51 | } 52 | 53 | 54 | Wifi.getSSID((SSID) => { 55 | this.setState({ssid: SSID}); 56 | }); 57 | 58 | Wifi.connectSecure(ssid, passphase, false, (error) => { 59 | this.setState({error: error}); 60 | this.setState({connected: error == null}); 61 | 62 | Wifi.getSSID((SSID) => { 63 | this.setState({ssid: SSID}); 64 | }); 65 | }); 66 | 67 | // Wifi.connect(ssid, (error) => { 68 | // this.setState({error: error}); 69 | // this.setState({connected: error == null}); 70 | 71 | // Wifi.getSSID((SSID) => { 72 | // this.setState({ssid: SSID}); 73 | // }); 74 | 75 | // Wifi.removeSSID(ssid, (error)=>{ 76 | // this.setState({error: error}); 77 | // }); 78 | // }); 79 | }); 80 | } 81 | } 82 | 83 | const styles = StyleSheet.create({ 84 | container: { 85 | flex: 1, 86 | justifyContent: 'center', 87 | backgroundColor: '#54998E', 88 | }, 89 | instructions: { 90 | textAlign: 'center', 91 | color: '#333333', 92 | marginBottom: 5, 93 | }, 94 | }); 95 | -------------------------------------------------------------------------------- /example/android/app/BUCK: -------------------------------------------------------------------------------- 1 | # To learn about Buck see [Docs](https://buckbuild.com/). 2 | # To run your application with Buck: 3 | # - install Buck 4 | # - `npm start` - to start the packager 5 | # - `cd android` 6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 8 | # - `buck install -r android/app` - compile, install and run application 9 | # 10 | 11 | lib_deps = [] 12 | 13 | for jarfile in glob(['libs/*.jar']): 14 | name = 'jars__' + jarfile[jarfile.rindex('/') + 1: jarfile.rindex('.jar')] 15 | lib_deps.append(':' + name) 16 | prebuilt_jar( 17 | name = name, 18 | binary_jar = jarfile, 19 | ) 20 | 21 | for aarfile in glob(['libs/*.aar']): 22 | name = 'aars__' + aarfile[aarfile.rindex('/') + 1: aarfile.rindex('.aar')] 23 | lib_deps.append(':' + name) 24 | android_prebuilt_aar( 25 | name = name, 26 | aar = aarfile, 27 | ) 28 | 29 | android_library( 30 | name = "all-libs", 31 | exported_deps = lib_deps, 32 | ) 33 | 34 | android_library( 35 | name = "app-code", 36 | srcs = glob([ 37 | "src/main/java/**/*.java", 38 | ]), 39 | deps = [ 40 | ":all-libs", 41 | ":build_config", 42 | ":res", 43 | ], 44 | ) 45 | 46 | android_build_config( 47 | name = "build_config", 48 | package = "com.example", 49 | ) 50 | 51 | android_resource( 52 | name = "res", 53 | package = "com.example", 54 | res = "src/main/res", 55 | ) 56 | 57 | android_binary( 58 | name = "app", 59 | keystore = "//android/keystores:debug", 60 | manifest = "src/main/AndroidManifest.xml", 61 | package_type = "debug", 62 | deps = [ 63 | ":app-code", 64 | ], 65 | ) 66 | -------------------------------------------------------------------------------- /example/android/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | 3 | import com.android.build.OutputFile 4 | 5 | /** 6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets 7 | * and bundleReleaseJsAndAssets). 8 | * These basically call `react-native bundle` with the correct arguments during the Android build 9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the 10 | * bundle directly from the development server. Below you can see all the possible configurations 11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the 12 | * `apply from: "../../node_modules/react-native/react.gradle"` line. 13 | * 14 | * project.ext.react = [ 15 | * // the name of the generated asset file containing your JS bundle 16 | * bundleAssetName: "index.android.bundle", 17 | * 18 | * // the entry file for bundle generation 19 | * entryFile: "index.android.js", 20 | * 21 | * // whether to bundle JS and assets in debug mode 22 | * bundleInDebug: false, 23 | * 24 | * // whether to bundle JS and assets in release mode 25 | * bundleInRelease: true, 26 | * 27 | * // whether to bundle JS and assets in another build variant (if configured). 28 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 29 | * // The configuration property can be in the following formats 30 | * // 'bundleIn${productFlavor}${buildType}' 31 | * // 'bundleIn${buildType}' 32 | * // bundleInFreeDebug: true, 33 | * // bundleInPaidRelease: true, 34 | * // bundleInBeta: true, 35 | * 36 | * // whether to disable dev mode in custom build variants (by default only disabled in release) 37 | * // for example: to disable dev mode in the staging build type (if configured) 38 | * devDisabledInStaging: true, 39 | * // The configuration property can be in the following formats 40 | * // 'devDisabledIn${productFlavor}${buildType}' 41 | * // 'devDisabledIn${buildType}' 42 | * 43 | * // the root of your project, i.e. where "package.json" lives 44 | * root: "../../", 45 | * 46 | * // where to put the JS bundle asset in debug mode 47 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 48 | * 49 | * // where to put the JS bundle asset in release mode 50 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 51 | * 52 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 53 | * // require('./image.png')), in debug mode 54 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 55 | * 56 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 57 | * // require('./image.png')), in release mode 58 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 59 | * 60 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 61 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 62 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 63 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 64 | * // for example, you might want to remove it from here. 65 | * inputExcludes: ["android/**", "ios/**"], 66 | * 67 | * // override which node gets called and with what additional arguments 68 | * nodeExecutableAndArgs: ["node"], 69 | * 70 | * // supply additional arguments to the packager 71 | * extraPackagerArgs: [] 72 | * ] 73 | */ 74 | 75 | project.ext.react = [ 76 | // bundleAssetName: "index.android.bundle", 77 | // entryFile: "index.js", 78 | // bundleInDebug: true 79 | entryFile: "index.js" 80 | ] 81 | 82 | apply from: "../../node_modules/react-native/react.gradle" 83 | 84 | /** 85 | * Set this to true to create two separate APKs instead of one: 86 | * - An APK that only works on ARM devices 87 | * - An APK that only works on x86 devices 88 | * The advantage is the size of the APK is reduced by about 4MB. 89 | * Upload all the APKs to the Play Store and people will download 90 | * the correct one based on the CPU architecture of their device. 91 | */ 92 | def enableSeparateBuildPerCPUArchitecture = false 93 | 94 | /** 95 | * Run Proguard to shrink the Java bytecode in release builds. 96 | */ 97 | def enableProguardInReleaseBuilds = false 98 | 99 | android { 100 | compileSdkVersion rootProject.ext.compileSdkVersion 101 | buildToolsVersion rootProject.ext.buildToolsVersion 102 | 103 | defaultConfig { 104 | applicationId "com.example" 105 | minSdkVersion rootProject.ext.minSdkVersion 106 | targetSdkVersion rootProject.ext.targetSdkVersion 107 | versionCode 1 108 | versionName "1.0" 109 | ndk { 110 | abiFilters "armeabi-v7a", "x86" 111 | } 112 | } 113 | splits { 114 | abi { 115 | reset() 116 | enable enableSeparateBuildPerCPUArchitecture 117 | universalApk false // If true, also generate a universal APK 118 | include "armeabi-v7a", "x86" 119 | } 120 | } 121 | buildTypes { 122 | release { 123 | minifyEnabled enableProguardInReleaseBuilds 124 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 125 | } 126 | } 127 | // applicationVariants are e.g. debug, release 128 | applicationVariants.all { variant -> 129 | variant.outputs.each { output -> 130 | // For each separate APK per architecture, set a unique version code as described here: 131 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits 132 | def versionCodes = ["armeabi-v7a":1, "x86":2] 133 | def abi = output.getFilter(OutputFile.ABI) 134 | if (abi != null) { // null for the universal-debug, universal-release variants 135 | output.versionCodeOverride = 136 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 137 | } 138 | } 139 | } 140 | } 141 | 142 | dependencies { 143 | implementation fileTree(dir: "libs", include: ["*.jar"]) 144 | implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}" 145 | implementation "com.facebook.react:react-native:+" // From node_modules 146 | implementation project(':react-native-iot-wifi') 147 | } 148 | 149 | // Run this once to be able to run the application with BUCK 150 | // puts all compile dependencies into folder libs for BUCK to use 151 | task copyDownloadableDepsToLibs(type: Copy) { 152 | from configurations.compile 153 | into 'libs' 154 | } 155 | -------------------------------------------------------------------------------- /example/android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /example/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 13 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /example/android/app/src/main/java/com/example/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import com.facebook.react.ReactActivity; 4 | 5 | public class MainActivity extends ReactActivity { 6 | 7 | /** 8 | * Returns the name of the main component registered from JavaScript. 9 | * This is used to schedule rendering of the component. 10 | */ 11 | @Override 12 | protected String getMainComponentName() { 13 | return "example"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /example/android/app/src/main/java/com/example/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import android.app.Application; 4 | 5 | import com.facebook.react.ReactApplication; 6 | import com.facebook.react.ReactNativeHost; 7 | import com.facebook.react.ReactPackage; 8 | import com.facebook.react.shell.MainReactPackage; 9 | import com.facebook.soloader.SoLoader; 10 | import com.tadasr.IOTWifi.IOTWifiPackage; 11 | 12 | import java.util.Arrays; 13 | import java.util.List; 14 | 15 | public class MainApplication extends Application implements ReactApplication { 16 | 17 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { 18 | @Override 19 | public boolean getUseDeveloperSupport() { 20 | return BuildConfig.DEBUG; 21 | } 22 | 23 | @Override 24 | protected List getPackages() { 25 | return Arrays.asList( 26 | new MainReactPackage(), 27 | new IOTWifiPackage() 28 | ); 29 | } 30 | 31 | @Override 32 | protected String getJSMainModuleName() { 33 | return "index"; 34 | } 35 | }; 36 | 37 | @Override 38 | public ReactNativeHost getReactNativeHost() { 39 | return mReactNativeHost; 40 | } 41 | 42 | @Override 43 | public void onCreate() { 44 | super.onCreate(); 45 | SoLoader.init(this, /* native exopackage */ false); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tadasr/react-native-iot-wifi/5bf6a469b1c938045167d609bab7b0e46fac6293/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tadasr/react-native-iot-wifi/5bf6a469b1c938045167d609bab7b0e46fac6293/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tadasr/react-native-iot-wifi/5bf6a469b1c938045167d609bab7b0e46fac6293/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tadasr/react-native-iot-wifi/5bf6a469b1c938045167d609bab7b0e46fac6293/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tadasr/react-native-iot-wifi/5bf6a469b1c938045167d609bab7b0e46fac6293/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tadasr/react-native-iot-wifi/5bf6a469b1c938045167d609bab7b0e46fac6293/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tadasr/react-native-iot-wifi/5bf6a469b1c938045167d609bab7b0e46fac6293/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tadasr/react-native-iot-wifi/5bf6a469b1c938045167d609bab7b0e46fac6293/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tadasr/react-native-iot-wifi/5bf6a469b1c938045167d609bab7b0e46fac6293/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tadasr/react-native-iot-wifi/5bf6a469b1c938045167d609bab7b0e46fac6293/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | example 3 | 4 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | ext { 5 | buildToolsVersion = "28.0.3" 6 | minSdkVersion = 21 7 | compileSdkVersion = 27 8 | targetSdkVersion = 26 9 | supportLibVersion = "27.1.1" 10 | } 11 | repositories { 12 | google() 13 | jcenter() 14 | } 15 | dependencies { 16 | classpath 'com.android.tools.build:gradle:3.3.0' 17 | 18 | // NOTE: Do not place your application dependencies here; they belong 19 | // in the individual module build.gradle files 20 | } 21 | } 22 | 23 | allprojects { 24 | repositories { 25 | mavenLocal() 26 | google() 27 | jcenter() 28 | maven { 29 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 30 | url "$rootDir/../node_modules/react-native/android" 31 | } 32 | } 33 | } 34 | 35 | 36 | task wrapper(type: Wrapper) { 37 | gradleVersion = '4.4' 38 | distributionUrl = distributionUrl.replace("bin", "all") 39 | } 40 | -------------------------------------------------------------------------------- /example/android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | -------------------------------------------------------------------------------- /example/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tadasr/react-native-iot-wifi/5bf6a469b1c938045167d609bab7b0e46fac6293/example/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /example/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Jan 16 07:42:43 EET 2019 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip 7 | -------------------------------------------------------------------------------- /example/android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Attempt to set APP_HOME 10 | # Resolve links: $0 may be a link 11 | PRG="$0" 12 | # Need this for relative symlinks. 13 | while [ -h "$PRG" ] ; do 14 | ls=`ls -ld "$PRG"` 15 | link=`expr "$ls" : '.*-> \(.*\)$'` 16 | if expr "$link" : '/.*' > /dev/null; then 17 | PRG="$link" 18 | else 19 | PRG=`dirname "$PRG"`"/$link" 20 | fi 21 | done 22 | SAVED="`pwd`" 23 | cd "`dirname \"$PRG\"`/" >/dev/null 24 | APP_HOME="`pwd -P`" 25 | cd "$SAVED" >/dev/null 26 | 27 | APP_NAME="Gradle" 28 | APP_BASE_NAME=`basename "$0"` 29 | 30 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 31 | DEFAULT_JVM_OPTS="" 32 | 33 | # Use the maximum available, or set MAX_FD != -1 to use that value. 34 | MAX_FD="maximum" 35 | 36 | warn () { 37 | echo "$*" 38 | } 39 | 40 | die () { 41 | echo 42 | echo "$*" 43 | echo 44 | exit 1 45 | } 46 | 47 | # OS specific support (must be 'true' or 'false'). 48 | cygwin=false 49 | msys=false 50 | darwin=false 51 | nonstop=false 52 | case "`uname`" in 53 | CYGWIN* ) 54 | cygwin=true 55 | ;; 56 | Darwin* ) 57 | darwin=true 58 | ;; 59 | MINGW* ) 60 | msys=true 61 | ;; 62 | NONSTOP* ) 63 | nonstop=true 64 | ;; 65 | esac 66 | 67 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 68 | 69 | # Determine the Java command to use to start the JVM. 70 | if [ -n "$JAVA_HOME" ] ; then 71 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 72 | # IBM's JDK on AIX uses strange locations for the executables 73 | JAVACMD="$JAVA_HOME/jre/sh/java" 74 | else 75 | JAVACMD="$JAVA_HOME/bin/java" 76 | fi 77 | if [ ! -x "$JAVACMD" ] ; then 78 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 79 | 80 | Please set the JAVA_HOME variable in your environment to match the 81 | location of your Java installation." 82 | fi 83 | else 84 | JAVACMD="java" 85 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 86 | 87 | Please set the JAVA_HOME variable in your environment to match the 88 | location of your Java installation." 89 | fi 90 | 91 | # Increase the maximum file descriptors if we can. 92 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then 93 | MAX_FD_LIMIT=`ulimit -H -n` 94 | if [ $? -eq 0 ] ; then 95 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 96 | MAX_FD="$MAX_FD_LIMIT" 97 | fi 98 | ulimit -n $MAX_FD 99 | if [ $? -ne 0 ] ; then 100 | warn "Could not set maximum file descriptor limit: $MAX_FD" 101 | fi 102 | else 103 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 104 | fi 105 | fi 106 | 107 | # For Darwin, add options to specify how the application appears in the dock 108 | if $darwin; then 109 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 110 | fi 111 | 112 | # For Cygwin, switch paths to Windows format before running java 113 | if $cygwin ; then 114 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 115 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 116 | JAVACMD=`cygpath --unix "$JAVACMD"` 117 | 118 | # We build the pattern for arguments to be converted via cygpath 119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 120 | SEP="" 121 | for dir in $ROOTDIRSRAW ; do 122 | ROOTDIRS="$ROOTDIRS$SEP$dir" 123 | SEP="|" 124 | done 125 | OURCYGPATTERN="(^($ROOTDIRS))" 126 | # Add a user-defined pattern to the cygpath arguments 127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 129 | fi 130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 131 | i=0 132 | for arg in "$@" ; do 133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 135 | 136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 138 | else 139 | eval `echo args$i`="\"$arg\"" 140 | fi 141 | i=$((i+1)) 142 | done 143 | case $i in 144 | (0) set -- ;; 145 | (1) set -- "$args0" ;; 146 | (2) set -- "$args0" "$args1" ;; 147 | (3) set -- "$args0" "$args1" "$args2" ;; 148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 154 | esac 155 | fi 156 | 157 | # Escape application args 158 | save () { 159 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done 160 | echo " " 161 | } 162 | APP_ARGS=$(save "$@") 163 | 164 | # Collect all arguments for the java command, following the shell quoting and substitution rules 165 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" 166 | 167 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong 168 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then 169 | cd "$(dirname "$0")" 170 | fi 171 | 172 | exec "$JAVACMD" "$@" 173 | -------------------------------------------------------------------------------- /example/android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | set DIRNAME=%~dp0 12 | if "%DIRNAME%" == "" set DIRNAME=. 13 | set APP_BASE_NAME=%~n0 14 | set APP_HOME=%DIRNAME% 15 | 16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 17 | set DEFAULT_JVM_OPTS= 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windows variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | 53 | :win9xME_args 54 | @rem Slurp the command line arguments. 55 | set CMD_LINE_ARGS= 56 | set _SKIP=2 57 | 58 | :win9xME_args_slurp 59 | if "x%~1" == "x" goto execute 60 | 61 | set CMD_LINE_ARGS=%* 62 | 63 | :execute 64 | @rem Setup the command line 65 | 66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 67 | 68 | @rem Execute Gradle 69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 70 | 71 | :end 72 | @rem End local scope for the variables with windows NT shell 73 | if "%ERRORLEVEL%"=="0" goto mainEnd 74 | 75 | :fail 76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 77 | rem the _cmd.exe /c_ return code! 78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 79 | exit /b 1 80 | 81 | :mainEnd 82 | if "%OS%"=="Windows_NT" endlocal 83 | 84 | :omega 85 | -------------------------------------------------------------------------------- /example/android/keystores/BUCK: -------------------------------------------------------------------------------- 1 | keystore( 2 | name = "debug", 3 | properties = "debug.keystore.properties", 4 | store = "debug.keystore", 5 | visibility = [ 6 | "PUBLIC", 7 | ], 8 | ) 9 | -------------------------------------------------------------------------------- /example/android/keystores/debug.keystore.properties: -------------------------------------------------------------------------------- 1 | key.store=debug.keystore 2 | key.alias=androiddebugkey 3 | key.store.password=android 4 | key.alias.password=android 5 | -------------------------------------------------------------------------------- /example/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'example' 2 | 3 | include ':app' 4 | 5 | include ':react-native-iot-wifi' 6 | project(':react-native-iot-wifi').projectDir = new File(rootProject.projectDir, '../../react-native-iot-wifi/android') -------------------------------------------------------------------------------- /example/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "example", 3 | "displayName": "example" 4 | } -------------------------------------------------------------------------------- /example/index.js: -------------------------------------------------------------------------------- 1 | /** @format */ 2 | 3 | import {AppRegistry} from 'react-native'; 4 | import App from './App'; 5 | import {name as appName} from './app.json'; 6 | 7 | AppRegistry.registerComponent(appName, () => App); 8 | -------------------------------------------------------------------------------- /example/ios/example-tvOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UIViewControllerBasedStatusBarAppearance 38 | 39 | NSLocationWhenInUseUsageDescription 40 | 41 | NSAppTransportSecurity 42 | 43 | 44 | NSExceptionDomains 45 | 46 | localhost 47 | 48 | NSExceptionAllowsInsecureHTTPLoads 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /example/ios/example-tvOSTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /example/ios/example.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; }; 11 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; }; 12 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; }; 13 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; }; 14 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; }; 15 | 11D1A2F320CAFA9E000508D9 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 16 | 1233BCE62267493E00165555 /* libIOTWifi.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1233BCE52267493300165555 /* libIOTWifi.a */; }; 17 | 128DDBF722674639008BF5C0 /* JavaScriptCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 128DDBD022674639008BF5C0 /* JavaScriptCore.framework */; }; 18 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; }; 19 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; }; 20 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; }; 21 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 22 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 23 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 24 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 25 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 26 | 3E2D341C21EE0A0300B13717 /* NetworkExtension.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3E2D341B21EE0A0200B13717 /* NetworkExtension.framework */; }; 27 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 28 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */; }; 29 | /* End PBXBuildFile section */ 30 | 31 | /* Begin PBXContainerItemProxy section */ 32 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 33 | isa = PBXContainerItemProxy; 34 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 35 | proxyType = 2; 36 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 37 | remoteInfo = RCTActionSheet; 38 | }; 39 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 40 | isa = PBXContainerItemProxy; 41 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 42 | proxyType = 2; 43 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 44 | remoteInfo = RCTGeolocation; 45 | }; 46 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 47 | isa = PBXContainerItemProxy; 48 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 49 | proxyType = 2; 50 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 51 | remoteInfo = RCTImage; 52 | }; 53 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 54 | isa = PBXContainerItemProxy; 55 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 56 | proxyType = 2; 57 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 58 | remoteInfo = RCTNetwork; 59 | }; 60 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 61 | isa = PBXContainerItemProxy; 62 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 63 | proxyType = 2; 64 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 65 | remoteInfo = RCTVibration; 66 | }; 67 | 1233BCE42267493300165555 /* PBXContainerItemProxy */ = { 68 | isa = PBXContainerItemProxy; 69 | containerPortal = 1233BCE02267493300165555 /* IOTWifi.xcodeproj */; 70 | proxyType = 2; 71 | remoteGlobalIDString = 3EB7AB50200F0F1700E792FD; 72 | remoteInfo = IOTWifi; 73 | }; 74 | 129394152266EC0200C9AFCE /* PBXContainerItemProxy */ = { 75 | isa = PBXContainerItemProxy; 76 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 77 | proxyType = 2; 78 | remoteGlobalIDString = EDEBC6D6214B3E7000DD5AC8; 79 | remoteInfo = jsi; 80 | }; 81 | 129394172266EC0200C9AFCE /* PBXContainerItemProxy */ = { 82 | isa = PBXContainerItemProxy; 83 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 84 | proxyType = 2; 85 | remoteGlobalIDString = EDEBC73B214B45A300DD5AC8; 86 | remoteInfo = jsiexecutor; 87 | }; 88 | 129394192266EC0200C9AFCE /* PBXContainerItemProxy */ = { 89 | isa = PBXContainerItemProxy; 90 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 91 | proxyType = 2; 92 | remoteGlobalIDString = ED296FB6214C9A0900B7C4FE; 93 | remoteInfo = "jsi-tvOS"; 94 | }; 95 | 1293941B2266EC0200C9AFCE /* PBXContainerItemProxy */ = { 96 | isa = PBXContainerItemProxy; 97 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 98 | proxyType = 2; 99 | remoteGlobalIDString = ED296FEE214C9CF800B7C4FE; 100 | remoteInfo = "jsiexecutor-tvOS"; 101 | }; 102 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 103 | isa = PBXContainerItemProxy; 104 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 105 | proxyType = 2; 106 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 107 | remoteInfo = RCTSettings; 108 | }; 109 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 110 | isa = PBXContainerItemProxy; 111 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 112 | proxyType = 2; 113 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 114 | remoteInfo = RCTWebSocket; 115 | }; 116 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 117 | isa = PBXContainerItemProxy; 118 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 119 | proxyType = 2; 120 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 121 | remoteInfo = React; 122 | }; 123 | 2D16E6711FA4F8DC00B85C8A /* PBXContainerItemProxy */ = { 124 | isa = PBXContainerItemProxy; 125 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 126 | proxyType = 2; 127 | remoteGlobalIDString = ADD01A681E09402E00F6D226; 128 | remoteInfo = "RCTBlob-tvOS"; 129 | }; 130 | 2D16E6831FA4F8DC00B85C8A /* PBXContainerItemProxy */ = { 131 | isa = PBXContainerItemProxy; 132 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 133 | proxyType = 2; 134 | remoteGlobalIDString = 3DBE0D001F3B181A0099AA32; 135 | remoteInfo = fishhook; 136 | }; 137 | 2D16E6851FA4F8DC00B85C8A /* PBXContainerItemProxy */ = { 138 | isa = PBXContainerItemProxy; 139 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 140 | proxyType = 2; 141 | remoteGlobalIDString = 3DBE0D0D1F3B181C0099AA32; 142 | remoteInfo = "fishhook-tvOS"; 143 | }; 144 | 2DF0FFDE2056DD460020B375 /* PBXContainerItemProxy */ = { 145 | isa = PBXContainerItemProxy; 146 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 147 | proxyType = 2; 148 | remoteGlobalIDString = EBF21BDC1FC498900052F4D5; 149 | remoteInfo = jsinspector; 150 | }; 151 | 2DF0FFE02056DD460020B375 /* PBXContainerItemProxy */ = { 152 | isa = PBXContainerItemProxy; 153 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 154 | proxyType = 2; 155 | remoteGlobalIDString = EBF21BFA1FC4989A0052F4D5; 156 | remoteInfo = "jsinspector-tvOS"; 157 | }; 158 | 2DF0FFE22056DD460020B375 /* PBXContainerItemProxy */ = { 159 | isa = PBXContainerItemProxy; 160 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 161 | proxyType = 2; 162 | remoteGlobalIDString = 139D7ECE1E25DB7D00323FB7; 163 | remoteInfo = "third-party"; 164 | }; 165 | 2DF0FFE42056DD460020B375 /* PBXContainerItemProxy */ = { 166 | isa = PBXContainerItemProxy; 167 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 168 | proxyType = 2; 169 | remoteGlobalIDString = 3D383D3C1EBD27B6005632C8; 170 | remoteInfo = "third-party-tvOS"; 171 | }; 172 | 2DF0FFE62056DD460020B375 /* PBXContainerItemProxy */ = { 173 | isa = PBXContainerItemProxy; 174 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 175 | proxyType = 2; 176 | remoteGlobalIDString = 139D7E881E25C6D100323FB7; 177 | remoteInfo = "double-conversion"; 178 | }; 179 | 2DF0FFE82056DD460020B375 /* PBXContainerItemProxy */ = { 180 | isa = PBXContainerItemProxy; 181 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 182 | proxyType = 2; 183 | remoteGlobalIDString = 3D383D621EBD27B9005632C8; 184 | remoteInfo = "double-conversion-tvOS"; 185 | }; 186 | 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = { 187 | isa = PBXContainerItemProxy; 188 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 189 | proxyType = 2; 190 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D; 191 | remoteInfo = "RCTImage-tvOS"; 192 | }; 193 | 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = { 194 | isa = PBXContainerItemProxy; 195 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 196 | proxyType = 2; 197 | remoteGlobalIDString = 2D2A28471D9B043800D4039D; 198 | remoteInfo = "RCTLinking-tvOS"; 199 | }; 200 | 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 201 | isa = PBXContainerItemProxy; 202 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 203 | proxyType = 2; 204 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D; 205 | remoteInfo = "RCTNetwork-tvOS"; 206 | }; 207 | 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 208 | isa = PBXContainerItemProxy; 209 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 210 | proxyType = 2; 211 | remoteGlobalIDString = 2D2A28611D9B046600D4039D; 212 | remoteInfo = "RCTSettings-tvOS"; 213 | }; 214 | 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = { 215 | isa = PBXContainerItemProxy; 216 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 217 | proxyType = 2; 218 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D; 219 | remoteInfo = "RCTText-tvOS"; 220 | }; 221 | 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = { 222 | isa = PBXContainerItemProxy; 223 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 224 | proxyType = 2; 225 | remoteGlobalIDString = 2D2A28881D9B049200D4039D; 226 | remoteInfo = "RCTWebSocket-tvOS"; 227 | }; 228 | 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = { 229 | isa = PBXContainerItemProxy; 230 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 231 | proxyType = 2; 232 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D; 233 | remoteInfo = "React-tvOS"; 234 | }; 235 | 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = { 236 | isa = PBXContainerItemProxy; 237 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 238 | proxyType = 2; 239 | remoteGlobalIDString = 3D3C059A1DE3340900C268FA; 240 | remoteInfo = yoga; 241 | }; 242 | 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = { 243 | isa = PBXContainerItemProxy; 244 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 245 | proxyType = 2; 246 | remoteGlobalIDString = 3D3C06751DE3340C00C268FA; 247 | remoteInfo = "yoga-tvOS"; 248 | }; 249 | 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = { 250 | isa = PBXContainerItemProxy; 251 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 252 | proxyType = 2; 253 | remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4; 254 | remoteInfo = cxxreact; 255 | }; 256 | 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 257 | isa = PBXContainerItemProxy; 258 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 259 | proxyType = 2; 260 | remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4; 261 | remoteInfo = "cxxreact-tvOS"; 262 | }; 263 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 264 | isa = PBXContainerItemProxy; 265 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 266 | proxyType = 2; 267 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 268 | remoteInfo = RCTAnimation; 269 | }; 270 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 271 | isa = PBXContainerItemProxy; 272 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 273 | proxyType = 2; 274 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D; 275 | remoteInfo = "RCTAnimation-tvOS"; 276 | }; 277 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 278 | isa = PBXContainerItemProxy; 279 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 280 | proxyType = 2; 281 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 282 | remoteInfo = RCTLinking; 283 | }; 284 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 285 | isa = PBXContainerItemProxy; 286 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 287 | proxyType = 2; 288 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 289 | remoteInfo = RCTText; 290 | }; 291 | ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */ = { 292 | isa = PBXContainerItemProxy; 293 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 294 | proxyType = 2; 295 | remoteGlobalIDString = 358F4ED71D1E81A9004DF814; 296 | remoteInfo = RCTBlob; 297 | }; 298 | /* End PBXContainerItemProxy section */ 299 | 300 | /* Begin PBXFileReference section */ 301 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 302 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 303 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 304 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 305 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 306 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 307 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 308 | 00E356F21AD99517003FC87E /* exampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = exampleTests.m; sourceTree = ""; }; 309 | 1233BCE02267493300165555 /* IOTWifi.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = IOTWifi.xcodeproj; path = "../../react-native-iot-wifi/ios/IOTWifi.xcodeproj"; sourceTree = ""; }; 310 | 128DDBD022674639008BF5C0 /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; 311 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 312 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; 313 | 13B07F961A680F5B00A75B9A /* example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 314 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = example/AppDelegate.h; sourceTree = ""; }; 315 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = example/AppDelegate.m; sourceTree = ""; }; 316 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 317 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = example/Images.xcassets; sourceTree = ""; }; 318 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = example/Info.plist; sourceTree = ""; }; 319 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = example/main.m; sourceTree = ""; }; 320 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 321 | 2D16E6891FA4F8E400B85C8A /* libReact.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libReact.a; sourceTree = BUILT_PRODUCTS_DIR; }; 322 | 3E2D341B21EE0A0200B13717 /* NetworkExtension.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = NetworkExtension.framework; path = System/Library/Frameworks/NetworkExtension.framework; sourceTree = SDKROOT; }; 323 | 3E2D341D21EE0A6B00B13717 /* example.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; name = example.entitlements; path = example/example.entitlements; sourceTree = ""; }; 324 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; }; 325 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 326 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 327 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTBlob.xcodeproj; path = "../node_modules/react-native/Libraries/Blob/RCTBlob.xcodeproj"; sourceTree = ""; }; 328 | /* End PBXFileReference section */ 329 | 330 | /* Begin PBXFrameworksBuildPhase section */ 331 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 332 | isa = PBXFrameworksBuildPhase; 333 | buildActionMask = 2147483647; 334 | files = ( 335 | 1233BCE62267493E00165555 /* libIOTWifi.a in Frameworks */, 336 | 128DDBF722674639008BF5C0 /* JavaScriptCore.framework in Frameworks */, 337 | 3E2D341C21EE0A0300B13717 /* NetworkExtension.framework in Frameworks */, 338 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */, 339 | 11D1A2F320CAFA9E000508D9 /* libRCTAnimation.a in Frameworks */, 340 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 341 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 342 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 343 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 344 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 345 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 346 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 347 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 348 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 349 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 350 | ); 351 | runOnlyForDeploymentPostprocessing = 0; 352 | }; 353 | /* End PBXFrameworksBuildPhase section */ 354 | 355 | /* Begin PBXGroup section */ 356 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 357 | isa = PBXGroup; 358 | children = ( 359 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 360 | ); 361 | name = Products; 362 | sourceTree = ""; 363 | }; 364 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 365 | isa = PBXGroup; 366 | children = ( 367 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 368 | ); 369 | name = Products; 370 | sourceTree = ""; 371 | }; 372 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 373 | isa = PBXGroup; 374 | children = ( 375 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 376 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */, 377 | ); 378 | name = Products; 379 | sourceTree = ""; 380 | }; 381 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 382 | isa = PBXGroup; 383 | children = ( 384 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 385 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */, 386 | ); 387 | name = Products; 388 | sourceTree = ""; 389 | }; 390 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 391 | isa = PBXGroup; 392 | children = ( 393 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 394 | ); 395 | name = Products; 396 | sourceTree = ""; 397 | }; 398 | 00E356EF1AD99517003FC87E /* exampleTests */ = { 399 | isa = PBXGroup; 400 | children = ( 401 | 00E356F21AD99517003FC87E /* exampleTests.m */, 402 | 00E356F01AD99517003FC87E /* Supporting Files */, 403 | ); 404 | path = exampleTests; 405 | sourceTree = ""; 406 | }; 407 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 408 | isa = PBXGroup; 409 | children = ( 410 | 00E356F11AD99517003FC87E /* Info.plist */, 411 | ); 412 | name = "Supporting Files"; 413 | sourceTree = ""; 414 | }; 415 | 1233BCE12267493300165555 /* Products */ = { 416 | isa = PBXGroup; 417 | children = ( 418 | 1233BCE52267493300165555 /* libIOTWifi.a */, 419 | ); 420 | name = Products; 421 | sourceTree = ""; 422 | }; 423 | 139105B71AF99BAD00B5F7CC /* Products */ = { 424 | isa = PBXGroup; 425 | children = ( 426 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 427 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */, 428 | ); 429 | name = Products; 430 | sourceTree = ""; 431 | }; 432 | 139FDEE71B06529A00C62182 /* Products */ = { 433 | isa = PBXGroup; 434 | children = ( 435 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 436 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */, 437 | 2D16E6841FA4F8DC00B85C8A /* libfishhook.a */, 438 | 2D16E6861FA4F8DC00B85C8A /* libfishhook-tvOS.a */, 439 | ); 440 | name = Products; 441 | sourceTree = ""; 442 | }; 443 | 13B07FAE1A68108700A75B9A /* example */ = { 444 | isa = PBXGroup; 445 | children = ( 446 | 3E2D341D21EE0A6B00B13717 /* example.entitlements */, 447 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 448 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 449 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 450 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 451 | 13B07FB61A68108700A75B9A /* Info.plist */, 452 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 453 | 13B07FB71A68108700A75B9A /* main.m */, 454 | ); 455 | name = example; 456 | sourceTree = ""; 457 | }; 458 | 146834001AC3E56700842450 /* Products */ = { 459 | isa = PBXGroup; 460 | children = ( 461 | 146834041AC3E56700842450 /* libReact.a */, 462 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */, 463 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */, 464 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */, 465 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */, 466 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */, 467 | 2DF0FFDF2056DD460020B375 /* libjsinspector.a */, 468 | 2DF0FFE12056DD460020B375 /* libjsinspector-tvOS.a */, 469 | 2DF0FFE32056DD460020B375 /* libthird-party.a */, 470 | 2DF0FFE52056DD460020B375 /* libthird-party.a */, 471 | 2DF0FFE72056DD460020B375 /* libdouble-conversion.a */, 472 | 2DF0FFE92056DD460020B375 /* libdouble-conversion.a */, 473 | 129394162266EC0200C9AFCE /* libjsi.a */, 474 | 129394182266EC0200C9AFCE /* libjsiexecutor.a */, 475 | 1293941A2266EC0200C9AFCE /* libjsi-tvOS.a */, 476 | 1293941C2266EC0200C9AFCE /* libjsiexecutor-tvOS.a */, 477 | ); 478 | name = Products; 479 | sourceTree = ""; 480 | }; 481 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 482 | isa = PBXGroup; 483 | children = ( 484 | 128DDBD022674639008BF5C0 /* JavaScriptCore.framework */, 485 | 3E2D341B21EE0A0200B13717 /* NetworkExtension.framework */, 486 | 2D16E6891FA4F8E400B85C8A /* libReact.a */, 487 | ); 488 | name = Frameworks; 489 | sourceTree = ""; 490 | }; 491 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = { 492 | isa = PBXGroup; 493 | children = ( 494 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */, 495 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */, 496 | ); 497 | name = Products; 498 | sourceTree = ""; 499 | }; 500 | 78C398B11ACF4ADC00677621 /* Products */ = { 501 | isa = PBXGroup; 502 | children = ( 503 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 504 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */, 505 | ); 506 | name = Products; 507 | sourceTree = ""; 508 | }; 509 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 510 | isa = PBXGroup; 511 | children = ( 512 | 1233BCE02267493300165555 /* IOTWifi.xcodeproj */, 513 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */, 514 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 515 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 516 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */, 517 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 518 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 519 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 520 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 521 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 522 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 523 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 524 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 525 | ); 526 | name = Libraries; 527 | sourceTree = ""; 528 | }; 529 | 832341B11AAA6A8300B99B32 /* Products */ = { 530 | isa = PBXGroup; 531 | children = ( 532 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 533 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */, 534 | ); 535 | name = Products; 536 | sourceTree = ""; 537 | }; 538 | 83CBB9F61A601CBA00E9B192 = { 539 | isa = PBXGroup; 540 | children = ( 541 | 13B07FAE1A68108700A75B9A /* example */, 542 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 543 | 00E356EF1AD99517003FC87E /* exampleTests */, 544 | 83CBBA001A601CBA00E9B192 /* Products */, 545 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 546 | ); 547 | indentWidth = 2; 548 | sourceTree = ""; 549 | tabWidth = 2; 550 | usesTabs = 0; 551 | }; 552 | 83CBBA001A601CBA00E9B192 /* Products */ = { 553 | isa = PBXGroup; 554 | children = ( 555 | 13B07F961A680F5B00A75B9A /* example.app */, 556 | ); 557 | name = Products; 558 | sourceTree = ""; 559 | }; 560 | ADBDB9201DFEBF0600ED6528 /* Products */ = { 561 | isa = PBXGroup; 562 | children = ( 563 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */, 564 | 2D16E6721FA4F8DC00B85C8A /* libRCTBlob-tvOS.a */, 565 | ); 566 | name = Products; 567 | sourceTree = ""; 568 | }; 569 | /* End PBXGroup section */ 570 | 571 | /* Begin PBXNativeTarget section */ 572 | 13B07F861A680F5B00A75B9A /* example */ = { 573 | isa = PBXNativeTarget; 574 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "example" */; 575 | buildPhases = ( 576 | 13B07F871A680F5B00A75B9A /* Sources */, 577 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 578 | 13B07F8E1A680F5B00A75B9A /* Resources */, 579 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 580 | ); 581 | buildRules = ( 582 | ); 583 | dependencies = ( 584 | ); 585 | name = example; 586 | productName = "Hello World"; 587 | productReference = 13B07F961A680F5B00A75B9A /* example.app */; 588 | productType = "com.apple.product-type.application"; 589 | }; 590 | /* End PBXNativeTarget section */ 591 | 592 | /* Begin PBXProject section */ 593 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 594 | isa = PBXProject; 595 | attributes = { 596 | LastUpgradeCheck = 0940; 597 | ORGANIZATIONNAME = Facebook; 598 | TargetAttributes = { 599 | 13B07F861A680F5B00A75B9A = { 600 | DevelopmentTeam = Z32FEDWE26; 601 | SystemCapabilities = { 602 | com.apple.AccessWiFi = { 603 | enabled = 1; 604 | }; 605 | com.apple.HotspotConfiguration = { 606 | enabled = 1; 607 | }; 608 | }; 609 | }; 610 | }; 611 | }; 612 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "example" */; 613 | compatibilityVersion = "Xcode 3.2"; 614 | developmentRegion = English; 615 | hasScannedForEncodings = 0; 616 | knownRegions = ( 617 | English, 618 | en, 619 | Base, 620 | ); 621 | mainGroup = 83CBB9F61A601CBA00E9B192; 622 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 623 | projectDirPath = ""; 624 | projectReferences = ( 625 | { 626 | ProductGroup = 1233BCE12267493300165555 /* Products */; 627 | ProjectRef = 1233BCE02267493300165555 /* IOTWifi.xcodeproj */; 628 | }, 629 | { 630 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 631 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 632 | }, 633 | { 634 | ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */; 635 | ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 636 | }, 637 | { 638 | ProductGroup = ADBDB9201DFEBF0600ED6528 /* Products */; 639 | ProjectRef = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 640 | }, 641 | { 642 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 643 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 644 | }, 645 | { 646 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 647 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 648 | }, 649 | { 650 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 651 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 652 | }, 653 | { 654 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 655 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 656 | }, 657 | { 658 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 659 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 660 | }, 661 | { 662 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 663 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 664 | }, 665 | { 666 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 667 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 668 | }, 669 | { 670 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 671 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 672 | }, 673 | { 674 | ProductGroup = 146834001AC3E56700842450 /* Products */; 675 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 676 | }, 677 | ); 678 | projectRoot = ""; 679 | targets = ( 680 | 13B07F861A680F5B00A75B9A /* example */, 681 | ); 682 | }; 683 | /* End PBXProject section */ 684 | 685 | /* Begin PBXReferenceProxy section */ 686 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 687 | isa = PBXReferenceProxy; 688 | fileType = archive.ar; 689 | path = libRCTActionSheet.a; 690 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 691 | sourceTree = BUILT_PRODUCTS_DIR; 692 | }; 693 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 694 | isa = PBXReferenceProxy; 695 | fileType = archive.ar; 696 | path = libRCTGeolocation.a; 697 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 698 | sourceTree = BUILT_PRODUCTS_DIR; 699 | }; 700 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 701 | isa = PBXReferenceProxy; 702 | fileType = archive.ar; 703 | path = libRCTImage.a; 704 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 705 | sourceTree = BUILT_PRODUCTS_DIR; 706 | }; 707 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 708 | isa = PBXReferenceProxy; 709 | fileType = archive.ar; 710 | path = libRCTNetwork.a; 711 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 712 | sourceTree = BUILT_PRODUCTS_DIR; 713 | }; 714 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 715 | isa = PBXReferenceProxy; 716 | fileType = archive.ar; 717 | path = libRCTVibration.a; 718 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 719 | sourceTree = BUILT_PRODUCTS_DIR; 720 | }; 721 | 1233BCE52267493300165555 /* libIOTWifi.a */ = { 722 | isa = PBXReferenceProxy; 723 | fileType = archive.ar; 724 | path = libIOTWifi.a; 725 | remoteRef = 1233BCE42267493300165555 /* PBXContainerItemProxy */; 726 | sourceTree = BUILT_PRODUCTS_DIR; 727 | }; 728 | 129394162266EC0200C9AFCE /* libjsi.a */ = { 729 | isa = PBXReferenceProxy; 730 | fileType = archive.ar; 731 | path = libjsi.a; 732 | remoteRef = 129394152266EC0200C9AFCE /* PBXContainerItemProxy */; 733 | sourceTree = BUILT_PRODUCTS_DIR; 734 | }; 735 | 129394182266EC0200C9AFCE /* libjsiexecutor.a */ = { 736 | isa = PBXReferenceProxy; 737 | fileType = archive.ar; 738 | path = libjsiexecutor.a; 739 | remoteRef = 129394172266EC0200C9AFCE /* PBXContainerItemProxy */; 740 | sourceTree = BUILT_PRODUCTS_DIR; 741 | }; 742 | 1293941A2266EC0200C9AFCE /* libjsi-tvOS.a */ = { 743 | isa = PBXReferenceProxy; 744 | fileType = archive.ar; 745 | path = "libjsi-tvOS.a"; 746 | remoteRef = 129394192266EC0200C9AFCE /* PBXContainerItemProxy */; 747 | sourceTree = BUILT_PRODUCTS_DIR; 748 | }; 749 | 1293941C2266EC0200C9AFCE /* libjsiexecutor-tvOS.a */ = { 750 | isa = PBXReferenceProxy; 751 | fileType = archive.ar; 752 | path = "libjsiexecutor-tvOS.a"; 753 | remoteRef = 1293941B2266EC0200C9AFCE /* PBXContainerItemProxy */; 754 | sourceTree = BUILT_PRODUCTS_DIR; 755 | }; 756 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 757 | isa = PBXReferenceProxy; 758 | fileType = archive.ar; 759 | path = libRCTSettings.a; 760 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 761 | sourceTree = BUILT_PRODUCTS_DIR; 762 | }; 763 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 764 | isa = PBXReferenceProxy; 765 | fileType = archive.ar; 766 | path = libRCTWebSocket.a; 767 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 768 | sourceTree = BUILT_PRODUCTS_DIR; 769 | }; 770 | 146834041AC3E56700842450 /* libReact.a */ = { 771 | isa = PBXReferenceProxy; 772 | fileType = archive.ar; 773 | path = libReact.a; 774 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 775 | sourceTree = BUILT_PRODUCTS_DIR; 776 | }; 777 | 2D16E6721FA4F8DC00B85C8A /* libRCTBlob-tvOS.a */ = { 778 | isa = PBXReferenceProxy; 779 | fileType = archive.ar; 780 | path = "libRCTBlob-tvOS.a"; 781 | remoteRef = 2D16E6711FA4F8DC00B85C8A /* PBXContainerItemProxy */; 782 | sourceTree = BUILT_PRODUCTS_DIR; 783 | }; 784 | 2D16E6841FA4F8DC00B85C8A /* libfishhook.a */ = { 785 | isa = PBXReferenceProxy; 786 | fileType = archive.ar; 787 | path = libfishhook.a; 788 | remoteRef = 2D16E6831FA4F8DC00B85C8A /* PBXContainerItemProxy */; 789 | sourceTree = BUILT_PRODUCTS_DIR; 790 | }; 791 | 2D16E6861FA4F8DC00B85C8A /* libfishhook-tvOS.a */ = { 792 | isa = PBXReferenceProxy; 793 | fileType = archive.ar; 794 | path = "libfishhook-tvOS.a"; 795 | remoteRef = 2D16E6851FA4F8DC00B85C8A /* PBXContainerItemProxy */; 796 | sourceTree = BUILT_PRODUCTS_DIR; 797 | }; 798 | 2DF0FFDF2056DD460020B375 /* libjsinspector.a */ = { 799 | isa = PBXReferenceProxy; 800 | fileType = archive.ar; 801 | path = libjsinspector.a; 802 | remoteRef = 2DF0FFDE2056DD460020B375 /* PBXContainerItemProxy */; 803 | sourceTree = BUILT_PRODUCTS_DIR; 804 | }; 805 | 2DF0FFE12056DD460020B375 /* libjsinspector-tvOS.a */ = { 806 | isa = PBXReferenceProxy; 807 | fileType = archive.ar; 808 | path = "libjsinspector-tvOS.a"; 809 | remoteRef = 2DF0FFE02056DD460020B375 /* PBXContainerItemProxy */; 810 | sourceTree = BUILT_PRODUCTS_DIR; 811 | }; 812 | 2DF0FFE32056DD460020B375 /* libthird-party.a */ = { 813 | isa = PBXReferenceProxy; 814 | fileType = archive.ar; 815 | path = "libthird-party.a"; 816 | remoteRef = 2DF0FFE22056DD460020B375 /* PBXContainerItemProxy */; 817 | sourceTree = BUILT_PRODUCTS_DIR; 818 | }; 819 | 2DF0FFE52056DD460020B375 /* libthird-party.a */ = { 820 | isa = PBXReferenceProxy; 821 | fileType = archive.ar; 822 | path = "libthird-party.a"; 823 | remoteRef = 2DF0FFE42056DD460020B375 /* PBXContainerItemProxy */; 824 | sourceTree = BUILT_PRODUCTS_DIR; 825 | }; 826 | 2DF0FFE72056DD460020B375 /* libdouble-conversion.a */ = { 827 | isa = PBXReferenceProxy; 828 | fileType = archive.ar; 829 | path = "libdouble-conversion.a"; 830 | remoteRef = 2DF0FFE62056DD460020B375 /* PBXContainerItemProxy */; 831 | sourceTree = BUILT_PRODUCTS_DIR; 832 | }; 833 | 2DF0FFE92056DD460020B375 /* libdouble-conversion.a */ = { 834 | isa = PBXReferenceProxy; 835 | fileType = archive.ar; 836 | path = "libdouble-conversion.a"; 837 | remoteRef = 2DF0FFE82056DD460020B375 /* PBXContainerItemProxy */; 838 | sourceTree = BUILT_PRODUCTS_DIR; 839 | }; 840 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = { 841 | isa = PBXReferenceProxy; 842 | fileType = archive.ar; 843 | path = "libRCTImage-tvOS.a"; 844 | remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */; 845 | sourceTree = BUILT_PRODUCTS_DIR; 846 | }; 847 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = { 848 | isa = PBXReferenceProxy; 849 | fileType = archive.ar; 850 | path = "libRCTLinking-tvOS.a"; 851 | remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */; 852 | sourceTree = BUILT_PRODUCTS_DIR; 853 | }; 854 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = { 855 | isa = PBXReferenceProxy; 856 | fileType = archive.ar; 857 | path = "libRCTNetwork-tvOS.a"; 858 | remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */; 859 | sourceTree = BUILT_PRODUCTS_DIR; 860 | }; 861 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = { 862 | isa = PBXReferenceProxy; 863 | fileType = archive.ar; 864 | path = "libRCTSettings-tvOS.a"; 865 | remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */; 866 | sourceTree = BUILT_PRODUCTS_DIR; 867 | }; 868 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = { 869 | isa = PBXReferenceProxy; 870 | fileType = archive.ar; 871 | path = "libRCTText-tvOS.a"; 872 | remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */; 873 | sourceTree = BUILT_PRODUCTS_DIR; 874 | }; 875 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = { 876 | isa = PBXReferenceProxy; 877 | fileType = archive.ar; 878 | path = "libRCTWebSocket-tvOS.a"; 879 | remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */; 880 | sourceTree = BUILT_PRODUCTS_DIR; 881 | }; 882 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */ = { 883 | isa = PBXReferenceProxy; 884 | fileType = archive.ar; 885 | path = libReact.a; 886 | remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */; 887 | sourceTree = BUILT_PRODUCTS_DIR; 888 | }; 889 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = { 890 | isa = PBXReferenceProxy; 891 | fileType = archive.ar; 892 | path = libyoga.a; 893 | remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */; 894 | sourceTree = BUILT_PRODUCTS_DIR; 895 | }; 896 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = { 897 | isa = PBXReferenceProxy; 898 | fileType = archive.ar; 899 | path = libyoga.a; 900 | remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */; 901 | sourceTree = BUILT_PRODUCTS_DIR; 902 | }; 903 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = { 904 | isa = PBXReferenceProxy; 905 | fileType = archive.ar; 906 | path = libcxxreact.a; 907 | remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */; 908 | sourceTree = BUILT_PRODUCTS_DIR; 909 | }; 910 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = { 911 | isa = PBXReferenceProxy; 912 | fileType = archive.ar; 913 | path = libcxxreact.a; 914 | remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */; 915 | sourceTree = BUILT_PRODUCTS_DIR; 916 | }; 917 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 918 | isa = PBXReferenceProxy; 919 | fileType = archive.ar; 920 | path = libRCTAnimation.a; 921 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 922 | sourceTree = BUILT_PRODUCTS_DIR; 923 | }; 924 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 925 | isa = PBXReferenceProxy; 926 | fileType = archive.ar; 927 | path = libRCTAnimation.a; 928 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 929 | sourceTree = BUILT_PRODUCTS_DIR; 930 | }; 931 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 932 | isa = PBXReferenceProxy; 933 | fileType = archive.ar; 934 | path = libRCTLinking.a; 935 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 936 | sourceTree = BUILT_PRODUCTS_DIR; 937 | }; 938 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 939 | isa = PBXReferenceProxy; 940 | fileType = archive.ar; 941 | path = libRCTText.a; 942 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 943 | sourceTree = BUILT_PRODUCTS_DIR; 944 | }; 945 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */ = { 946 | isa = PBXReferenceProxy; 947 | fileType = archive.ar; 948 | path = libRCTBlob.a; 949 | remoteRef = ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */; 950 | sourceTree = BUILT_PRODUCTS_DIR; 951 | }; 952 | /* End PBXReferenceProxy section */ 953 | 954 | /* Begin PBXResourcesBuildPhase section */ 955 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 956 | isa = PBXResourcesBuildPhase; 957 | buildActionMask = 2147483647; 958 | files = ( 959 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 960 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 961 | ); 962 | runOnlyForDeploymentPostprocessing = 0; 963 | }; 964 | /* End PBXResourcesBuildPhase section */ 965 | 966 | /* Begin PBXShellScriptBuildPhase section */ 967 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 968 | isa = PBXShellScriptBuildPhase; 969 | buildActionMask = 2147483647; 970 | files = ( 971 | ); 972 | inputPaths = ( 973 | ); 974 | name = "Bundle React Native code and images"; 975 | outputPaths = ( 976 | ); 977 | runOnlyForDeploymentPostprocessing = 0; 978 | shellPath = /bin/sh; 979 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 980 | }; 981 | /* End PBXShellScriptBuildPhase section */ 982 | 983 | /* Begin PBXSourcesBuildPhase section */ 984 | 13B07F871A680F5B00A75B9A /* Sources */ = { 985 | isa = PBXSourcesBuildPhase; 986 | buildActionMask = 2147483647; 987 | files = ( 988 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 989 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 990 | ); 991 | runOnlyForDeploymentPostprocessing = 0; 992 | }; 993 | /* End PBXSourcesBuildPhase section */ 994 | 995 | /* Begin PBXVariantGroup section */ 996 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 997 | isa = PBXVariantGroup; 998 | children = ( 999 | 13B07FB21A68108700A75B9A /* Base */, 1000 | ); 1001 | name = LaunchScreen.xib; 1002 | path = example; 1003 | sourceTree = ""; 1004 | }; 1005 | /* End PBXVariantGroup section */ 1006 | 1007 | /* Begin XCBuildConfiguration section */ 1008 | 13B07F941A680F5B00A75B9A /* Debug */ = { 1009 | isa = XCBuildConfiguration; 1010 | buildSettings = { 1011 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1012 | CODE_SIGN_ENTITLEMENTS = example/example.entitlements; 1013 | CURRENT_PROJECT_VERSION = 1; 1014 | DEAD_CODE_STRIPPING = NO; 1015 | DEVELOPMENT_TEAM = Z32FEDWE26; 1016 | INFOPLIST_FILE = example/Info.plist; 1017 | IPHONEOS_DEPLOYMENT_TARGET = 11.4; 1018 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1019 | OTHER_LDFLAGS = ( 1020 | "$(inherited)", 1021 | "-ObjC", 1022 | "-lc++", 1023 | ); 1024 | PRODUCT_BUNDLE_IDENTIFIER = "org.react-native-iot-wifi.example"; 1025 | PRODUCT_NAME = example; 1026 | VERSIONING_SYSTEM = "apple-generic"; 1027 | }; 1028 | name = Debug; 1029 | }; 1030 | 13B07F951A680F5B00A75B9A /* Release */ = { 1031 | isa = XCBuildConfiguration; 1032 | buildSettings = { 1033 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1034 | CODE_SIGN_ENTITLEMENTS = example/example.entitlements; 1035 | CURRENT_PROJECT_VERSION = 1; 1036 | DEVELOPMENT_TEAM = Z32FEDWE26; 1037 | INFOPLIST_FILE = example/Info.plist; 1038 | IPHONEOS_DEPLOYMENT_TARGET = 11.4; 1039 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1040 | OTHER_LDFLAGS = ( 1041 | "$(inherited)", 1042 | "-ObjC", 1043 | "-lc++", 1044 | ); 1045 | PRODUCT_BUNDLE_IDENTIFIER = "org.react-native-iot-wifi.example"; 1046 | PRODUCT_NAME = example; 1047 | VERSIONING_SYSTEM = "apple-generic"; 1048 | }; 1049 | name = Release; 1050 | }; 1051 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 1052 | isa = XCBuildConfiguration; 1053 | buildSettings = { 1054 | ALWAYS_SEARCH_USER_PATHS = NO; 1055 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1056 | CLANG_CXX_LIBRARY = "libc++"; 1057 | CLANG_ENABLE_MODULES = YES; 1058 | CLANG_ENABLE_OBJC_ARC = YES; 1059 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 1060 | CLANG_WARN_BOOL_CONVERSION = YES; 1061 | CLANG_WARN_COMMA = YES; 1062 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1063 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 1064 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1065 | CLANG_WARN_EMPTY_BODY = YES; 1066 | CLANG_WARN_ENUM_CONVERSION = YES; 1067 | CLANG_WARN_INFINITE_RECURSION = YES; 1068 | CLANG_WARN_INT_CONVERSION = YES; 1069 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 1070 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 1071 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 1072 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1073 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 1074 | CLANG_WARN_STRICT_PROTOTYPES = YES; 1075 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1076 | CLANG_WARN_UNREACHABLE_CODE = YES; 1077 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1078 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1079 | COPY_PHASE_STRIP = NO; 1080 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1081 | ENABLE_TESTABILITY = YES; 1082 | GCC_C_LANGUAGE_STANDARD = gnu99; 1083 | GCC_DYNAMIC_NO_PIC = NO; 1084 | GCC_NO_COMMON_BLOCKS = YES; 1085 | GCC_OPTIMIZATION_LEVEL = 0; 1086 | GCC_PREPROCESSOR_DEFINITIONS = ( 1087 | "DEBUG=1", 1088 | "$(inherited)", 1089 | ); 1090 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 1091 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1092 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1093 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1094 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1095 | GCC_WARN_UNUSED_FUNCTION = YES; 1096 | GCC_WARN_UNUSED_VARIABLE = YES; 1097 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 1098 | MTL_ENABLE_DEBUG_INFO = YES; 1099 | ONLY_ACTIVE_ARCH = YES; 1100 | SDKROOT = iphoneos; 1101 | }; 1102 | name = Debug; 1103 | }; 1104 | 83CBBA211A601CBA00E9B192 /* Release */ = { 1105 | isa = XCBuildConfiguration; 1106 | buildSettings = { 1107 | ALWAYS_SEARCH_USER_PATHS = NO; 1108 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1109 | CLANG_CXX_LIBRARY = "libc++"; 1110 | CLANG_ENABLE_MODULES = YES; 1111 | CLANG_ENABLE_OBJC_ARC = YES; 1112 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 1113 | CLANG_WARN_BOOL_CONVERSION = YES; 1114 | CLANG_WARN_COMMA = YES; 1115 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1116 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 1117 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1118 | CLANG_WARN_EMPTY_BODY = YES; 1119 | CLANG_WARN_ENUM_CONVERSION = YES; 1120 | CLANG_WARN_INFINITE_RECURSION = YES; 1121 | CLANG_WARN_INT_CONVERSION = YES; 1122 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 1123 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 1124 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 1125 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1126 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 1127 | CLANG_WARN_STRICT_PROTOTYPES = YES; 1128 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1129 | CLANG_WARN_UNREACHABLE_CODE = YES; 1130 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1131 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1132 | COPY_PHASE_STRIP = YES; 1133 | ENABLE_NS_ASSERTIONS = NO; 1134 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1135 | GCC_C_LANGUAGE_STANDARD = gnu99; 1136 | GCC_NO_COMMON_BLOCKS = YES; 1137 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1138 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1139 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1140 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1141 | GCC_WARN_UNUSED_FUNCTION = YES; 1142 | GCC_WARN_UNUSED_VARIABLE = YES; 1143 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 1144 | MTL_ENABLE_DEBUG_INFO = NO; 1145 | ONLY_ACTIVE_ARCH = YES; 1146 | SDKROOT = iphoneos; 1147 | VALIDATE_PRODUCT = YES; 1148 | }; 1149 | name = Release; 1150 | }; 1151 | /* End XCBuildConfiguration section */ 1152 | 1153 | /* Begin XCConfigurationList section */ 1154 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "example" */ = { 1155 | isa = XCConfigurationList; 1156 | buildConfigurations = ( 1157 | 13B07F941A680F5B00A75B9A /* Debug */, 1158 | 13B07F951A680F5B00A75B9A /* Release */, 1159 | ); 1160 | defaultConfigurationIsVisible = 0; 1161 | defaultConfigurationName = Release; 1162 | }; 1163 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "example" */ = { 1164 | isa = XCConfigurationList; 1165 | buildConfigurations = ( 1166 | 83CBBA201A601CBA00E9B192 /* Debug */, 1167 | 83CBBA211A601CBA00E9B192 /* Release */, 1168 | ); 1169 | defaultConfigurationIsVisible = 0; 1170 | defaultConfigurationName = Release; 1171 | }; 1172 | /* End XCConfigurationList section */ 1173 | }; 1174 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 1175 | } 1176 | -------------------------------------------------------------------------------- /example/ios/example.xcodeproj/xcshareddata/xcschemes/example-tvOS.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 43 | 49 | 50 | 51 | 52 | 53 | 58 | 59 | 61 | 67 | 68 | 69 | 70 | 71 | 77 | 78 | 79 | 80 | 81 | 82 | 92 | 94 | 100 | 101 | 102 | 103 | 104 | 105 | 111 | 113 | 119 | 120 | 121 | 122 | 124 | 125 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /example/ios/example.xcodeproj/xcshareddata/xcschemes/example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 43 | 49 | 50 | 51 | 52 | 53 | 58 | 59 | 61 | 67 | 68 | 69 | 70 | 71 | 77 | 78 | 79 | 80 | 81 | 82 | 92 | 94 | 100 | 101 | 102 | 103 | 104 | 105 | 111 | 113 | 119 | 120 | 121 | 122 | 124 | 125 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /example/ios/example/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | @interface AppDelegate : UIResponder 11 | 12 | @property (nonatomic, strong) UIWindow *window; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /example/ios/example/AppDelegate.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import "AppDelegate.h" 9 | 10 | #import 11 | #import 12 | 13 | @implementation AppDelegate 14 | 15 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 16 | { 17 | NSURL *jsCodeLocation; 18 | 19 | #ifdef DEBUG 20 | jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; 21 | #else 22 | jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 23 | #endif 24 | 25 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation 26 | moduleName:@"example" 27 | initialProperties:nil 28 | launchOptions:launchOptions]; 29 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 30 | 31 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 32 | UIViewController *rootViewController = [UIViewController new]; 33 | rootViewController.view = rootView; 34 | self.window.rootViewController = rootViewController; 35 | [self.window makeKeyAndVisible]; 36 | return YES; 37 | } 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /example/ios/example/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /example/ios/example/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "iphone-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "iphone-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "iphone-29x29@2x.png", 19 | "scale" : "2x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "iphone-29x29@3x.png", 25 | "scale" : "3x" 26 | }, 27 | { 28 | "size" : "40x40", 29 | "idiom" : "iphone", 30 | "filename" : "iphone-40x40@2x.png", 31 | "scale" : "2x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "iphone-40x40@3x.png", 37 | "scale" : "3x" 38 | }, 39 | { 40 | "size" : "60x60", 41 | "idiom" : "iphone", 42 | "filename" : "iphone-60x60@2x.png", 43 | "scale" : "2x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "iphone-60x60@3x.png", 49 | "scale" : "3x" 50 | }, 51 | { 52 | "size" : "20x20", 53 | "idiom" : "ipad", 54 | "filename" : "ipad-20x20.png", 55 | "scale" : "1x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "ipad-20x20@2x.png", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "size" : "29x29", 65 | "idiom" : "ipad", 66 | "filename" : "ipad-29x29.png", 67 | "scale" : "1x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "ipad-29x29@2x.png", 73 | "scale" : "2x" 74 | }, 75 | { 76 | "size" : "40x40", 77 | "idiom" : "ipad", 78 | "filename" : "ipad-40x40.png", 79 | "scale" : "1x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "ipad-40x40@2x.png", 85 | "scale" : "2x" 86 | }, 87 | { 88 | "size" : "76x76", 89 | "idiom" : "ipad", 90 | "filename" : "ipad-76x76.png", 91 | "scale" : "1x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "ipad-76x76@2x.png", 97 | "scale" : "2x" 98 | }, 99 | { 100 | "size" : "83.5x83.5", 101 | "idiom" : "ipad", 102 | "filename" : "ipad-83.5x83.5@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "1024x1024", 107 | "idiom" : "ios-marketing", 108 | "filename" : "ios-marketing-1024x1024.png", 109 | "scale" : "1x" 110 | } 111 | ], 112 | "info" : { 113 | "version" : 1, 114 | "author" : "xcode" 115 | } 116 | } -------------------------------------------------------------------------------- /example/ios/example/Images.xcassets/AppIcon.appiconset/ios-marketing-1024x1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tadasr/react-native-iot-wifi/5bf6a469b1c938045167d609bab7b0e46fac6293/example/ios/example/Images.xcassets/AppIcon.appiconset/ios-marketing-1024x1024.png -------------------------------------------------------------------------------- /example/ios/example/Images.xcassets/AppIcon.appiconset/ipad-20x20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tadasr/react-native-iot-wifi/5bf6a469b1c938045167d609bab7b0e46fac6293/example/ios/example/Images.xcassets/AppIcon.appiconset/ipad-20x20.png -------------------------------------------------------------------------------- /example/ios/example/Images.xcassets/AppIcon.appiconset/ipad-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tadasr/react-native-iot-wifi/5bf6a469b1c938045167d609bab7b0e46fac6293/example/ios/example/Images.xcassets/AppIcon.appiconset/ipad-20x20@2x.png -------------------------------------------------------------------------------- /example/ios/example/Images.xcassets/AppIcon.appiconset/ipad-29x29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tadasr/react-native-iot-wifi/5bf6a469b1c938045167d609bab7b0e46fac6293/example/ios/example/Images.xcassets/AppIcon.appiconset/ipad-29x29.png -------------------------------------------------------------------------------- /example/ios/example/Images.xcassets/AppIcon.appiconset/ipad-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tadasr/react-native-iot-wifi/5bf6a469b1c938045167d609bab7b0e46fac6293/example/ios/example/Images.xcassets/AppIcon.appiconset/ipad-29x29@2x.png -------------------------------------------------------------------------------- /example/ios/example/Images.xcassets/AppIcon.appiconset/ipad-40x40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tadasr/react-native-iot-wifi/5bf6a469b1c938045167d609bab7b0e46fac6293/example/ios/example/Images.xcassets/AppIcon.appiconset/ipad-40x40.png -------------------------------------------------------------------------------- /example/ios/example/Images.xcassets/AppIcon.appiconset/ipad-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tadasr/react-native-iot-wifi/5bf6a469b1c938045167d609bab7b0e46fac6293/example/ios/example/Images.xcassets/AppIcon.appiconset/ipad-40x40@2x.png -------------------------------------------------------------------------------- /example/ios/example/Images.xcassets/AppIcon.appiconset/ipad-76x76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tadasr/react-native-iot-wifi/5bf6a469b1c938045167d609bab7b0e46fac6293/example/ios/example/Images.xcassets/AppIcon.appiconset/ipad-76x76.png -------------------------------------------------------------------------------- /example/ios/example/Images.xcassets/AppIcon.appiconset/ipad-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tadasr/react-native-iot-wifi/5bf6a469b1c938045167d609bab7b0e46fac6293/example/ios/example/Images.xcassets/AppIcon.appiconset/ipad-76x76@2x.png -------------------------------------------------------------------------------- /example/ios/example/Images.xcassets/AppIcon.appiconset/ipad-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tadasr/react-native-iot-wifi/5bf6a469b1c938045167d609bab7b0e46fac6293/example/ios/example/Images.xcassets/AppIcon.appiconset/ipad-83.5x83.5@2x.png -------------------------------------------------------------------------------- /example/ios/example/Images.xcassets/AppIcon.appiconset/iphone-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tadasr/react-native-iot-wifi/5bf6a469b1c938045167d609bab7b0e46fac6293/example/ios/example/Images.xcassets/AppIcon.appiconset/iphone-20x20@2x.png -------------------------------------------------------------------------------- /example/ios/example/Images.xcassets/AppIcon.appiconset/iphone-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tadasr/react-native-iot-wifi/5bf6a469b1c938045167d609bab7b0e46fac6293/example/ios/example/Images.xcassets/AppIcon.appiconset/iphone-20x20@3x.png -------------------------------------------------------------------------------- /example/ios/example/Images.xcassets/AppIcon.appiconset/iphone-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tadasr/react-native-iot-wifi/5bf6a469b1c938045167d609bab7b0e46fac6293/example/ios/example/Images.xcassets/AppIcon.appiconset/iphone-29x29@2x.png -------------------------------------------------------------------------------- /example/ios/example/Images.xcassets/AppIcon.appiconset/iphone-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tadasr/react-native-iot-wifi/5bf6a469b1c938045167d609bab7b0e46fac6293/example/ios/example/Images.xcassets/AppIcon.appiconset/iphone-29x29@3x.png -------------------------------------------------------------------------------- /example/ios/example/Images.xcassets/AppIcon.appiconset/iphone-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tadasr/react-native-iot-wifi/5bf6a469b1c938045167d609bab7b0e46fac6293/example/ios/example/Images.xcassets/AppIcon.appiconset/iphone-40x40@2x.png -------------------------------------------------------------------------------- /example/ios/example/Images.xcassets/AppIcon.appiconset/iphone-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tadasr/react-native-iot-wifi/5bf6a469b1c938045167d609bab7b0e46fac6293/example/ios/example/Images.xcassets/AppIcon.appiconset/iphone-40x40@3x.png -------------------------------------------------------------------------------- /example/ios/example/Images.xcassets/AppIcon.appiconset/iphone-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tadasr/react-native-iot-wifi/5bf6a469b1c938045167d609bab7b0e46fac6293/example/ios/example/Images.xcassets/AppIcon.appiconset/iphone-60x60@2x.png -------------------------------------------------------------------------------- /example/ios/example/Images.xcassets/AppIcon.appiconset/iphone-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tadasr/react-native-iot-wifi/5bf6a469b1c938045167d609bab7b0e46fac6293/example/ios/example/Images.xcassets/AppIcon.appiconset/iphone-60x60@3x.png -------------------------------------------------------------------------------- /example/ios/example/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /example/ios/example/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | example 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | NSAppTransportSecurity 28 | 29 | NSAllowsArbitraryLoads 30 | 31 | NSExceptionDomains 32 | 33 | localhost 34 | 35 | NSExceptionAllowsInsecureHTTPLoads 36 | 37 | 38 | 39 | 40 | NSLocationWhenInUseUsageDescription 41 | 42 | UILaunchStoryboardName 43 | LaunchScreen 44 | UIRequiredDeviceCapabilities 45 | 46 | armv7 47 | 48 | UISupportedInterfaceOrientations 49 | 50 | UIInterfaceOrientationPortrait 51 | UIInterfaceOrientationLandscapeLeft 52 | UIInterfaceOrientationLandscapeRight 53 | 54 | UIViewControllerBasedStatusBarAppearance 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /example/ios/example/example.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.developer.networking.wifi-info 6 | 7 | com.apple.developer.networking.HotspotConfiguration 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /example/ios/example/main.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /example/ios/exampleTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /example/ios/exampleTests/exampleTests.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | #import 10 | 11 | #import 12 | #import 13 | 14 | #define TIMEOUT_SECONDS 600 15 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!" 16 | 17 | @interface exampleTests : XCTestCase 18 | 19 | @end 20 | 21 | @implementation exampleTests 22 | 23 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 24 | { 25 | if (test(view)) { 26 | return YES; 27 | } 28 | for (UIView *subview in [view subviews]) { 29 | if ([self findSubviewInView:subview matching:test]) { 30 | return YES; 31 | } 32 | } 33 | return NO; 34 | } 35 | 36 | - (void)testRendersWelcomeScreen 37 | { 38 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController]; 39 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 40 | BOOL foundElement = NO; 41 | 42 | __block NSString *redboxError = nil; 43 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 44 | if (level >= RCTLogLevelError) { 45 | redboxError = message; 46 | } 47 | }); 48 | 49 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 50 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 51 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 52 | 53 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 54 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 55 | return YES; 56 | } 57 | return NO; 58 | }]; 59 | } 60 | 61 | RCTSetLogFunction(RCTDefaultLogFunction); 62 | 63 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 64 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 65 | } 66 | 67 | 68 | @end 69 | -------------------------------------------------------------------------------- /example/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "example", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "start": "node node_modules/react-native/local-cli/cli.js start", 7 | "test": "jest" 8 | }, 9 | "dependencies": { 10 | "react": "16.8.3", 11 | "react-native": "0.59.4", 12 | "react-native-iot-wifi": "file:../react-native-iot-wifi" 13 | }, 14 | "devDependencies": { 15 | "babel-jest": "23.6.0", 16 | "jest": "23.6.0", 17 | "metro-react-native-babel-preset": "0.51.1", 18 | "react-test-renderer": "16.6.3" 19 | }, 20 | "jest": { 21 | "preset": "react-native" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /index.d.ts: -------------------------------------------------------------------------------- 1 | declare module 'react-native-iot-wifi' { 2 | // tslint:disable:no-namespace 3 | type ConnectArgs = 4 | | [string, (error: string) => void] 5 | | [string, boolean, (error: string) => void]; 6 | 7 | type RemoveConnectArgs = 8 | | [string, (error: string) => void] 9 | | [string, boolean, (error: string) => void]; 10 | 11 | type ConnectSecureArgs = 12 | | [string, (error: string) => void] 13 | | [string, boolean, (error: string) => void]; 14 | 15 | export namespace RNWifi { 16 | function isApiAvailable(cb: (available: boolean) => void): void; 17 | function getSSID(cb: (ssid: string) => void): void; 18 | function connect(...args: ConnectArgs): void; 19 | function connectSecure(...args: ConnectSecureArgs): void; 20 | function removeSSID(...args: RemoveConnectArgs): void; 21 | } 22 | 23 | export default RNWifi; 24 | } 25 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | import { NativeModules } from 'react-native'; 4 | 5 | function connect(...args) { 6 | if (args.length < 2 || args.length > 3) { 7 | throw new TypeError('invalid arguments'); 8 | } else if (args.length === 2) { 9 | NativeModules.IOTWifi.connect(args[0], false, args[1]); 10 | } else { 11 | NativeModules.IOTWifi.connect(...args); 12 | } 13 | } 14 | 15 | function connectSecure(...args) { 16 | if (args.length < 4 || args.length > 5) { 17 | throw new TypeError('invalid arguments'); 18 | } else if (args.length === 4) { 19 | NativeModules.IOTWifi.connectSecure(args[0], args[1], args[2], false, args[3]); 20 | } else { 21 | NativeModules.IOTWifi.connectSecure(...args); 22 | } 23 | } 24 | 25 | function removeSSID(...args) { 26 | if (args.length < 2 || args.length > 3) { 27 | throw new TypeError('invalid arguments'); 28 | } else if (args.length === 2) { 29 | NativeModules.IOTWifi.removeSSID(args[0], false, args[1]); 30 | } else { 31 | NativeModules.IOTWifi.removeSSID(...args); 32 | } 33 | } 34 | 35 | function getSSID(...args) { 36 | NativeModules.IOTWifi.getSSID(...args); 37 | } 38 | 39 | function isApiAvailable(...args) { 40 | NativeModules.IOTWifi.isApiAvailable(...args); 41 | } 42 | 43 | module.exports = { 44 | connect: connect, 45 | connectSecure: connectSecure, 46 | getSSID: getSSID, 47 | isApiAvailable: isApiAvailable, 48 | removeSSID: removeSSID, 49 | }; 50 | 51 | /** 52 | * (un)bindNetwork only affects Android 53 | * isApiAvailable(Callback callback) 54 | * connect(String ssid, Boolean bindNetwork = false, Callback callback) 55 | * todo: connectSecure(String ssid, String passphrase, Boolean isWEP, Boolean bindNetwork = false, Callback callback) 56 | * removeSSID(String ssid, Boolean unbindNetwork = false, Callback callback) 57 | * getSSID(Callback callback) 58 | */ 59 | -------------------------------------------------------------------------------- /ios/IOTWifi.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface IOTWifi : NSObject 5 | 6 | @end 7 | 8 | -------------------------------------------------------------------------------- /ios/IOTWifi.m: -------------------------------------------------------------------------------- 1 | #import "IOTWifi.h" 2 | #import 3 | #import 4 | 5 | 6 | @implementation IOTWifi 7 | RCT_EXPORT_MODULE(); 8 | RCT_EXPORT_METHOD(isApiAvailable:(RCTResponseSenderBlock)callback) { 9 | NSNumber *available = @NO; 10 | if (@available(iOS 11.0, *)) { 11 | available = @YES; 12 | } 13 | callback(@[available]); 14 | } 15 | 16 | RCT_EXPORT_METHOD(connect:(NSString*)ssid 17 | bindNetwork:(BOOL)bindNetwork //Ignored 18 | callback:(RCTResponseSenderBlock)callback) { 19 | if (@available(iOS 11.0, *)) { 20 | NEHotspotConfiguration* configuration = [[NEHotspotConfiguration alloc] initWithSSID:ssid]; 21 | configuration.joinOnce = !bindNetwork; 22 | 23 | [[NEHotspotConfigurationManager sharedManager] applyConfiguration:configuration completionHandler:^(NSError * _Nullable error) { 24 | if (error != nil) { 25 | callback(@[@"Error while configuring WiFi"]); 26 | } else { 27 | callback(@[[NSNull null]]); 28 | } 29 | }]; 30 | 31 | } else { 32 | callback(@[@"Not supported in iOS<11.0"]); 33 | } 34 | } 35 | 36 | RCT_EXPORT_METHOD(connectSecure:(NSString*)ssid 37 | withPassphrase:(NSString*)passphrase 38 | isWEP:(BOOL)isWEP 39 | bindNetwork:(BOOL)bindNetwork 40 | callback:(RCTResponseSenderBlock)callback) { 41 | 42 | if (@available(iOS 11.0, *)) { 43 | NEHotspotConfiguration* configuration = [[NEHotspotConfiguration alloc] initWithSSID:ssid passphrase:passphrase isWEP:isWEP]; 44 | configuration.joinOnce = !bindNetwork; 45 | 46 | [[NEHotspotConfigurationManager sharedManager] applyConfiguration:configuration completionHandler:^(NSError * _Nullable error) { 47 | if (error != nil) { 48 | callback(@[[error localizedDescription]]); 49 | } else { 50 | callback(@[[NSNull null]]); 51 | } 52 | }]; 53 | 54 | } else { 55 | callback(@[@"Not supported in iOS<11.0"]); 56 | } 57 | } 58 | 59 | RCT_EXPORT_METHOD(removeSSID:(NSString*)ssid 60 | unbindNetwork:(BOOL)unbindNetwork //Ignored 61 | callback:(RCTResponseSenderBlock)callback) { 62 | 63 | if (@available(iOS 11.0, *)) { 64 | [[NEHotspotConfigurationManager sharedManager] getConfiguredSSIDsWithCompletionHandler:^(NSArray *ssids) { 65 | if (ssids != nil && [ssids indexOfObject:ssid] != NSNotFound) { 66 | [[NEHotspotConfigurationManager sharedManager] removeConfigurationForSSID:ssid]; 67 | } 68 | callback(@[[NSNull null]]); 69 | }]; 70 | } else { 71 | callback(@[@"Not supported in iOS<11.0"]); 72 | } 73 | 74 | } 75 | 76 | RCT_REMAP_METHOD(getSSID, 77 | callback:(RCTResponseSenderBlock)callback) { 78 | NSString *kSSID = (NSString*) kCNNetworkInfoKeySSID; 79 | 80 | NSArray *ifs = (__bridge_transfer id)CNCopySupportedInterfaces(); 81 | for (NSString *ifnam in ifs) { 82 | NSDictionary *info = (__bridge_transfer id)CNCopyCurrentNetworkInfo((__bridge CFStringRef)ifnam); 83 | NSString *ssid = info[kSSID]; 84 | if (ssid) { 85 | callback(@[ssid]); 86 | return; 87 | } 88 | } 89 | 90 | callback(@[@"Cannot detect SSID"]); 91 | } 92 | @end 93 | 94 | -------------------------------------------------------------------------------- /ios/IOTWifi.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 48; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 3EB7AB70200F537F00E792FD /* IOTWifi.m in Sources */ = {isa = PBXBuildFile; fileRef = 3EB7AB6E200F537F00E792FD /* IOTWifi.m */; }; 11 | /* End PBXBuildFile section */ 12 | 13 | /* Begin PBXCopyFilesBuildPhase section */ 14 | 3EB7AB4E200F0F1700E792FD /* CopyFiles */ = { 15 | isa = PBXCopyFilesBuildPhase; 16 | buildActionMask = 2147483647; 17 | dstPath = "include/$(PRODUCT_NAME)"; 18 | dstSubfolderSpec = 16; 19 | files = ( 20 | ); 21 | runOnlyForDeploymentPostprocessing = 0; 22 | }; 23 | /* End PBXCopyFilesBuildPhase section */ 24 | 25 | /* Begin PBXFileReference section */ 26 | 3EB7AB50200F0F1700E792FD /* libIOTWifi.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libIOTWifi.a; sourceTree = BUILT_PRODUCTS_DIR; }; 27 | 3EB7AB6E200F537F00E792FD /* IOTWifi.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = IOTWifi.m; sourceTree = ""; }; 28 | 3EB7AB6F200F537F00E792FD /* IOTWifi.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IOTWifi.h; sourceTree = ""; }; 29 | /* End PBXFileReference section */ 30 | 31 | /* Begin PBXFrameworksBuildPhase section */ 32 | 3EB7AB4D200F0F1700E792FD /* Frameworks */ = { 33 | isa = PBXFrameworksBuildPhase; 34 | buildActionMask = 2147483647; 35 | files = ( 36 | ); 37 | runOnlyForDeploymentPostprocessing = 0; 38 | }; 39 | /* End PBXFrameworksBuildPhase section */ 40 | 41 | /* Begin PBXGroup section */ 42 | 3EB7AB47200F0F1700E792FD = { 43 | isa = PBXGroup; 44 | children = ( 45 | 3EB7AB6F200F537F00E792FD /* IOTWifi.h */, 46 | 3EB7AB6E200F537F00E792FD /* IOTWifi.m */, 47 | 3EB7AB51200F0F1700E792FD /* Products */, 48 | ); 49 | sourceTree = ""; 50 | }; 51 | 3EB7AB51200F0F1700E792FD /* Products */ = { 52 | isa = PBXGroup; 53 | children = ( 54 | 3EB7AB50200F0F1700E792FD /* libIOTWifi.a */, 55 | ); 56 | name = Products; 57 | sourceTree = ""; 58 | }; 59 | /* End PBXGroup section */ 60 | 61 | /* Begin PBXNativeTarget section */ 62 | 3EB7AB4F200F0F1700E792FD /* IOTWifi */ = { 63 | isa = PBXNativeTarget; 64 | buildConfigurationList = 3EB7AB59200F0F1700E792FD /* Build configuration list for PBXNativeTarget "IOTWifi" */; 65 | buildPhases = ( 66 | 3EB7AB4C200F0F1700E792FD /* Sources */, 67 | 3EB7AB4D200F0F1700E792FD /* Frameworks */, 68 | 3EB7AB4E200F0F1700E792FD /* CopyFiles */, 69 | ); 70 | buildRules = ( 71 | ); 72 | dependencies = ( 73 | ); 74 | name = IOTWifi; 75 | productName = IOTWifi; 76 | productReference = 3EB7AB50200F0F1700E792FD /* libIOTWifi.a */; 77 | productType = "com.apple.product-type.library.static"; 78 | }; 79 | /* End PBXNativeTarget section */ 80 | 81 | /* Begin PBXProject section */ 82 | 3EB7AB48200F0F1700E792FD /* Project object */ = { 83 | isa = PBXProject; 84 | attributes = { 85 | LastUpgradeCheck = 0920; 86 | ORGANIZATIONNAME = "Tadas R"; 87 | TargetAttributes = { 88 | 3EB7AB4F200F0F1700E792FD = { 89 | CreatedOnToolsVersion = 9.2; 90 | ProvisioningStyle = Automatic; 91 | }; 92 | }; 93 | }; 94 | buildConfigurationList = 3EB7AB4B200F0F1700E792FD /* Build configuration list for PBXProject "IOTWifi" */; 95 | compatibilityVersion = "Xcode 8.0"; 96 | developmentRegion = en; 97 | hasScannedForEncodings = 0; 98 | knownRegions = ( 99 | en, 100 | ); 101 | mainGroup = 3EB7AB47200F0F1700E792FD; 102 | productRefGroup = 3EB7AB51200F0F1700E792FD /* Products */; 103 | projectDirPath = ""; 104 | projectRoot = ""; 105 | targets = ( 106 | 3EB7AB4F200F0F1700E792FD /* IOTWifi */, 107 | ); 108 | }; 109 | /* End PBXProject section */ 110 | 111 | /* Begin PBXSourcesBuildPhase section */ 112 | 3EB7AB4C200F0F1700E792FD /* Sources */ = { 113 | isa = PBXSourcesBuildPhase; 114 | buildActionMask = 2147483647; 115 | files = ( 116 | 3EB7AB70200F537F00E792FD /* IOTWifi.m in Sources */, 117 | ); 118 | runOnlyForDeploymentPostprocessing = 0; 119 | }; 120 | /* End PBXSourcesBuildPhase section */ 121 | 122 | /* Begin XCBuildConfiguration section */ 123 | 3EB7AB57200F0F1700E792FD /* Debug */ = { 124 | isa = XCBuildConfiguration; 125 | buildSettings = { 126 | ALWAYS_SEARCH_USER_PATHS = NO; 127 | CLANG_ANALYZER_NONNULL = YES; 128 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 129 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 130 | CLANG_CXX_LIBRARY = "libc++"; 131 | CLANG_ENABLE_MODULES = YES; 132 | CLANG_ENABLE_OBJC_ARC = YES; 133 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 134 | CLANG_WARN_BOOL_CONVERSION = YES; 135 | CLANG_WARN_COMMA = YES; 136 | CLANG_WARN_CONSTANT_CONVERSION = YES; 137 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 138 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 139 | CLANG_WARN_EMPTY_BODY = YES; 140 | CLANG_WARN_ENUM_CONVERSION = YES; 141 | CLANG_WARN_INFINITE_RECURSION = YES; 142 | CLANG_WARN_INT_CONVERSION = YES; 143 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 144 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 145 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 146 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 147 | CLANG_WARN_STRICT_PROTOTYPES = YES; 148 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 149 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 150 | CLANG_WARN_UNREACHABLE_CODE = YES; 151 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 152 | CODE_SIGN_IDENTITY = "iPhone Developer"; 153 | COPY_PHASE_STRIP = NO; 154 | DEBUG_INFORMATION_FORMAT = dwarf; 155 | ENABLE_STRICT_OBJC_MSGSEND = YES; 156 | ENABLE_TESTABILITY = YES; 157 | GCC_C_LANGUAGE_STANDARD = gnu11; 158 | GCC_DYNAMIC_NO_PIC = NO; 159 | GCC_NO_COMMON_BLOCKS = YES; 160 | GCC_OPTIMIZATION_LEVEL = 0; 161 | GCC_PREPROCESSOR_DEFINITIONS = ( 162 | "DEBUG=1", 163 | "$(inherited)", 164 | ); 165 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 166 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 167 | GCC_WARN_UNDECLARED_SELECTOR = YES; 168 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 169 | GCC_WARN_UNUSED_FUNCTION = YES; 170 | GCC_WARN_UNUSED_VARIABLE = YES; 171 | IPHONEOS_DEPLOYMENT_TARGET = 10.3; 172 | MTL_ENABLE_DEBUG_INFO = YES; 173 | ONLY_ACTIVE_ARCH = YES; 174 | SDKROOT = iphoneos; 175 | }; 176 | name = Debug; 177 | }; 178 | 3EB7AB58200F0F1700E792FD /* Release */ = { 179 | isa = XCBuildConfiguration; 180 | buildSettings = { 181 | ALWAYS_SEARCH_USER_PATHS = NO; 182 | CLANG_ANALYZER_NONNULL = YES; 183 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 184 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 185 | CLANG_CXX_LIBRARY = "libc++"; 186 | CLANG_ENABLE_MODULES = YES; 187 | CLANG_ENABLE_OBJC_ARC = YES; 188 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 189 | CLANG_WARN_BOOL_CONVERSION = YES; 190 | CLANG_WARN_COMMA = YES; 191 | CLANG_WARN_CONSTANT_CONVERSION = YES; 192 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 193 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 194 | CLANG_WARN_EMPTY_BODY = YES; 195 | CLANG_WARN_ENUM_CONVERSION = YES; 196 | CLANG_WARN_INFINITE_RECURSION = YES; 197 | CLANG_WARN_INT_CONVERSION = YES; 198 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 199 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 200 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 201 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 202 | CLANG_WARN_STRICT_PROTOTYPES = YES; 203 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 204 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 205 | CLANG_WARN_UNREACHABLE_CODE = YES; 206 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 207 | CODE_SIGN_IDENTITY = "iPhone Developer"; 208 | COPY_PHASE_STRIP = NO; 209 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 210 | ENABLE_NS_ASSERTIONS = NO; 211 | ENABLE_STRICT_OBJC_MSGSEND = YES; 212 | GCC_C_LANGUAGE_STANDARD = gnu11; 213 | GCC_NO_COMMON_BLOCKS = YES; 214 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 215 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 216 | GCC_WARN_UNDECLARED_SELECTOR = YES; 217 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 218 | GCC_WARN_UNUSED_FUNCTION = YES; 219 | GCC_WARN_UNUSED_VARIABLE = YES; 220 | IPHONEOS_DEPLOYMENT_TARGET = 10.3; 221 | MTL_ENABLE_DEBUG_INFO = NO; 222 | SDKROOT = iphoneos; 223 | VALIDATE_PRODUCT = YES; 224 | }; 225 | name = Release; 226 | }; 227 | 3EB7AB5A200F0F1700E792FD /* Debug */ = { 228 | isa = XCBuildConfiguration; 229 | buildSettings = { 230 | CODE_SIGN_STYLE = Automatic; 231 | OTHER_LDFLAGS = "-ObjC"; 232 | PRODUCT_NAME = "$(TARGET_NAME)"; 233 | SKIP_INSTALL = YES; 234 | TARGETED_DEVICE_FAMILY = "1,2"; 235 | }; 236 | name = Debug; 237 | }; 238 | 3EB7AB5B200F0F1700E792FD /* Release */ = { 239 | isa = XCBuildConfiguration; 240 | buildSettings = { 241 | CODE_SIGN_STYLE = Automatic; 242 | OTHER_LDFLAGS = "-ObjC"; 243 | PRODUCT_NAME = "$(TARGET_NAME)"; 244 | SKIP_INSTALL = YES; 245 | TARGETED_DEVICE_FAMILY = "1,2"; 246 | }; 247 | name = Release; 248 | }; 249 | /* End XCBuildConfiguration section */ 250 | 251 | /* Begin XCConfigurationList section */ 252 | 3EB7AB4B200F0F1700E792FD /* Build configuration list for PBXProject "IOTWifi" */ = { 253 | isa = XCConfigurationList; 254 | buildConfigurations = ( 255 | 3EB7AB57200F0F1700E792FD /* Debug */, 256 | 3EB7AB58200F0F1700E792FD /* Release */, 257 | ); 258 | defaultConfigurationIsVisible = 0; 259 | defaultConfigurationName = Release; 260 | }; 261 | 3EB7AB59200F0F1700E792FD /* Build configuration list for PBXNativeTarget "IOTWifi" */ = { 262 | isa = XCConfigurationList; 263 | buildConfigurations = ( 264 | 3EB7AB5A200F0F1700E792FD /* Debug */, 265 | 3EB7AB5B200F0F1700E792FD /* Release */, 266 | ); 267 | defaultConfigurationIsVisible = 0; 268 | defaultConfigurationName = Release; 269 | }; 270 | /* End XCConfigurationList section */ 271 | }; 272 | rootObject = 3EB7AB48200F0F1700E792FD /* Project object */; 273 | } 274 | -------------------------------------------------------------------------------- /ios/IOTWifi.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-native-iot-wifi", 3 | "version": "1.0.0", 4 | "description": "Connect to WiFi with React Native on Android and iOS.", 5 | "main": "index.js", 6 | "types": "index.d.ts", 7 | "files": [ 8 | "index.d.ts", 9 | "index.js", 10 | "android", 11 | "ios", 12 | "README.*", 13 | "package.json", 14 | "LICENSE" 15 | ], 16 | "repository": { 17 | "type": "git", 18 | "url": "git+https://github.com/tadasr/react-native-iot-wifi.git" 19 | }, 20 | "keywords": [ 21 | "react-native", 22 | "android", 23 | "wifi", 24 | "iot" 25 | ], 26 | "authors": [ 27 | "tadasr" 28 | ], 29 | "license": "MIT", 30 | "bugs": { 31 | "url": "https://github.com/tadasr/react-native-iot-wifi/issues" 32 | }, 33 | "homepage": "https://github.com/tadasr/react-native-iot-wifi#readme", 34 | "dependencies": {} 35 | } 36 | --------------------------------------------------------------------------------