community-cordova-plugin-wifi 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.idea/workspace.xml +37 -5
- package/package.json +1 -1
- package/plugin.xml +1 -1
- package/src/android/WifiPlugin.java +1 -3
- package/types/index.d.ts +6 -6
package/.idea/workspace.xml
CHANGED
|
@@ -4,11 +4,10 @@
|
|
|
4
4
|
<option name="autoReloadType" value="SELECTIVE" />
|
|
5
5
|
</component>
|
|
6
6
|
<component name="ChangeListManager">
|
|
7
|
-
<list default="true" id="5a269414-5baa-4c38-b2f3-50c21d305b88" name="Changes" comment="
|
|
7
|
+
<list default="true" id="5a269414-5baa-4c38-b2f3-50c21d305b88" name="Changes" comment="* add export to all interfaces">
|
|
8
8
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
|
9
9
|
<change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
|
|
10
10
|
<change beforePath="$PROJECT_DIR$/plugin.xml" beforeDir="false" afterPath="$PROJECT_DIR$/plugin.xml" afterDir="false" />
|
|
11
|
-
<change beforePath="$PROJECT_DIR$/src/android/IpInfoUtils.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/android/IpInfoUtils.java" afterDir="false" />
|
|
12
11
|
<change beforePath="$PROJECT_DIR$/src/android/WifiPlugin.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/android/WifiPlugin.java" afterDir="false" />
|
|
13
12
|
</list>
|
|
14
13
|
<option name="SHOW_DIALOG" value="false" />
|
|
@@ -99,7 +98,12 @@
|
|
|
99
98
|
<workItem from="1722058180072" duration="23000" />
|
|
100
99
|
<workItem from="1722059814051" duration="697000" />
|
|
101
100
|
<workItem from="1722061550247" duration="21000" />
|
|
102
|
-
<workItem from="1723267322946" duration="
|
|
101
|
+
<workItem from="1723267322946" duration="7018000" />
|
|
102
|
+
<workItem from="1723350101711" duration="1324000" />
|
|
103
|
+
<workItem from="1724268174858" duration="4603000" />
|
|
104
|
+
<workItem from="1725518446319" duration="57000" />
|
|
105
|
+
<workItem from="1725611591287" duration="21000" />
|
|
106
|
+
<workItem from="1731667624026" duration="469000" />
|
|
103
107
|
</task>
|
|
104
108
|
<task id="LOCAL-00001" summary="update plugin">
|
|
105
109
|
<option name="closed" value="true" />
|
|
@@ -173,7 +177,31 @@
|
|
|
173
177
|
<option name="project" value="LOCAL" />
|
|
174
178
|
<updated>1711187013726</updated>
|
|
175
179
|
</task>
|
|
176
|
-
<
|
|
180
|
+
<task id="LOCAL-00010" summary="* isConnectedToTheInternet - Support SDK>29 * added exceptions handling when not connected to the internet">
|
|
181
|
+
<option name="closed" value="true" />
|
|
182
|
+
<created>1723275809818</created>
|
|
183
|
+
<option name="number" value="00010" />
|
|
184
|
+
<option name="presentableId" value="LOCAL-00010" />
|
|
185
|
+
<option name="project" value="LOCAL" />
|
|
186
|
+
<updated>1723275809818</updated>
|
|
187
|
+
</task>
|
|
188
|
+
<task id="LOCAL-00011" summary="* add export to all interfaces">
|
|
189
|
+
<option name="closed" value="true" />
|
|
190
|
+
<created>1723350160378</created>
|
|
191
|
+
<option name="number" value="00011" />
|
|
192
|
+
<option name="presentableId" value="LOCAL-00011" />
|
|
193
|
+
<option name="project" value="LOCAL" />
|
|
194
|
+
<updated>1723350160378</updated>
|
|
195
|
+
</task>
|
|
196
|
+
<task id="LOCAL-00012" summary="* add export to all interfaces">
|
|
197
|
+
<option name="closed" value="true" />
|
|
198
|
+
<created>1723350242605</created>
|
|
199
|
+
<option name="number" value="00012" />
|
|
200
|
+
<option name="presentableId" value="LOCAL-00012" />
|
|
201
|
+
<option name="project" value="LOCAL" />
|
|
202
|
+
<updated>1723350242605</updated>
|
|
203
|
+
</task>
|
|
204
|
+
<option name="localTasksCounter" value="13" />
|
|
177
205
|
<servers />
|
|
178
206
|
</component>
|
|
179
207
|
<component name="TypeScriptGeneratedFilesManager">
|
|
@@ -191,8 +219,12 @@
|
|
|
191
219
|
</option>
|
|
192
220
|
</component>
|
|
193
221
|
<component name="VcsManagerConfiguration">
|
|
222
|
+
<option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="false" />
|
|
223
|
+
<option name="CHECK_NEW_TODO" value="false" />
|
|
194
224
|
<MESSAGE value="update plugin" />
|
|
195
225
|
<MESSAGE value="fixed progress bar in Ping" />
|
|
196
|
-
<
|
|
226
|
+
<MESSAGE value="* isConnectedToTheInternet - Support SDK>29 * added exceptions handling when not connected to the internet" />
|
|
227
|
+
<MESSAGE value="* add export to all interfaces" />
|
|
228
|
+
<option name="LAST_COMMIT_MESSAGE" value="* add export to all interfaces" />
|
|
197
229
|
</component>
|
|
198
230
|
</project>
|
package/package.json
CHANGED
package/plugin.xml
CHANGED
|
@@ -126,9 +126,7 @@ public class WifiPlugin extends CordovaPlugin {
|
|
|
126
126
|
NetworkCapabilities networkCapabilities = connectivityManager.getNetworkCapabilities(network);
|
|
127
127
|
if (networkCapabilities != null) {
|
|
128
128
|
boolean isConnected = networkCapabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) &&
|
|
129
|
-
networkCapabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)
|
|
130
|
-
networkCapabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) &&
|
|
131
|
-
networkCapabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_SUSPENDED);
|
|
129
|
+
networkCapabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED);
|
|
132
130
|
|
|
133
131
|
if (isConnected) {
|
|
134
132
|
boolean isWiFi = networkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_WIFI);
|
package/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface WifiNetwork {
|
|
1
|
+
export interface WifiNetwork {
|
|
2
2
|
SSID: string;
|
|
3
3
|
BSSID: string;
|
|
4
4
|
capabilities: string;
|
|
@@ -9,7 +9,7 @@ interface WifiNetwork {
|
|
|
9
9
|
distance: string;
|
|
10
10
|
hasPassword: boolean;
|
|
11
11
|
}
|
|
12
|
-
interface NetworkDetails {
|
|
12
|
+
export interface NetworkDetails {
|
|
13
13
|
type: string;
|
|
14
14
|
state: string;
|
|
15
15
|
isConnected: boolean;
|
|
@@ -17,7 +17,7 @@ interface NetworkDetails {
|
|
|
17
17
|
canConnectToRouter?: boolean;
|
|
18
18
|
isConnectedToWifi?: boolean;
|
|
19
19
|
}
|
|
20
|
-
interface ConnectedDeviceInfo {
|
|
20
|
+
export interface ConnectedDeviceInfo {
|
|
21
21
|
ipAddress: string;
|
|
22
22
|
deviceName: string;
|
|
23
23
|
localHost: boolean;
|
|
@@ -28,7 +28,7 @@ interface ConnectedDeviceInfo {
|
|
|
28
28
|
siteLocalAddress: boolean;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
interface WifiDetails {
|
|
31
|
+
export interface WifiDetails {
|
|
32
32
|
iswifienabled: boolean;
|
|
33
33
|
issupportwifi: boolean;
|
|
34
34
|
ssid: string;
|
|
@@ -48,7 +48,7 @@ interface WifiDetails {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
|
|
51
|
-
interface PingResponse {
|
|
51
|
+
export interface PingResponse {
|
|
52
52
|
line?: string;
|
|
53
53
|
fullResponse?: string;
|
|
54
54
|
progress?: number;
|
|
@@ -56,7 +56,7 @@ interface PingResponse {
|
|
|
56
56
|
linesRead?: number;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
interface IpInfo {
|
|
59
|
+
export interface IpInfo {
|
|
60
60
|
type: string;
|
|
61
61
|
signal: number;
|
|
62
62
|
speed: number;
|