diff --git a/android/src/main/java/com/reactlibrary/rnwifi/RNWifiModule.java b/android/src/main/java/com/reactlibrary/rnwifi/RNWifiModule.java index 709e779..59f0742 100644 --- a/android/src/main/java/com/reactlibrary/rnwifi/RNWifiModule.java +++ b/android/src/main/java/com/reactlibrary/rnwifi/RNWifiModule.java @@ -88,7 +88,7 @@ public String getName() { */ @ReactMethod public void loadWifiList(final Promise promise) { - if (!assertLocationPermissionGranted(promise)) { + if(!assertLocationPermissionGranted(promise)){ return; } @@ -235,7 +235,7 @@ public void openWifiSettings() { */ @ReactMethod public void connectToProtectedSSID(@NonNull final String SSID, @NonNull final String password, final boolean isWep, final boolean isHidden, final Promise promise) { - if (!assertLocationPermissionGranted(promise)) { + if(!assertLocationPermissionGranted(promise)){ return; } @@ -405,7 +405,7 @@ public void failed(@NonNull DisconnectionErrorCode errorCode) { */ @ReactMethod public void getCurrentWifiSSID(final Promise promise) { - if (!assertLocationPermissionGranted(promise)) { + if(!assertLocationPermissionGranted(promise)){ return; } diff --git a/lib/types/index.d.ts b/lib/types/index.d.ts index c9c5fb1..7e0cd43 100644 --- a/lib/types/index.d.ts +++ b/lib/types/index.d.ts @@ -138,7 +138,6 @@ declare module 'react-native-wifi-reborn' { isHidden?: boolean; timeout?: number; }; - export function connectToProtectedWifiSSID( options: ConnectToProtectedSSIDParams, ): Promise; @@ -155,11 +154,8 @@ declare module 'react-native-wifi-reborn' { //#region iOS only export function connectToSSID(SSID: string): Promise; - export function connectToSSIDPrefix(SSIDPrefix: string): Promise; - export function disconnectFromSSID(SSIDPrefix: string): Promise; - /** * Connects to a WiFi network. Rejects with an error if it couldn't connect. * @@ -172,13 +168,12 @@ declare module 'react-native-wifi-reborn' { SSID: string, password: string | null, isWEP: boolean, - joinOnce: boolean, + joinOnce: boolean ): Promise; - export function connectToProtectedSSIDPrefix( SSIDPrefix: string, password: string, - isWEP: boolean, + isWEP: boolean ): Promise; //#endregion @@ -310,7 +305,7 @@ declare module 'react-native-wifi-reborn' { */ export function forceWifiUsageWithOptions( useWifi: boolean, - options: { noInternet: boolean }, + options: { noInternet: boolean } ): Promise; //#endregion