community-cordova-plugin-wifi 1.0.6 → 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 +17 -2
- package/package.json +1 -1
- package/plugin.xml +1 -1
- package/src/android/WifiPlugin.java +1 -3
package/.idea/workspace.xml
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
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/WifiPlugin.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/android/WifiPlugin.java" afterDir="false" />
|
|
11
12
|
</list>
|
|
12
13
|
<option name="SHOW_DIALOG" value="false" />
|
|
13
14
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
@@ -98,7 +99,11 @@
|
|
|
98
99
|
<workItem from="1722059814051" duration="697000" />
|
|
99
100
|
<workItem from="1722061550247" duration="21000" />
|
|
100
101
|
<workItem from="1723267322946" duration="7018000" />
|
|
101
|
-
<workItem from="1723350101711" duration="
|
|
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" />
|
|
102
107
|
</task>
|
|
103
108
|
<task id="LOCAL-00001" summary="update plugin">
|
|
104
109
|
<option name="closed" value="true" />
|
|
@@ -188,7 +193,15 @@
|
|
|
188
193
|
<option name="project" value="LOCAL" />
|
|
189
194
|
<updated>1723350160378</updated>
|
|
190
195
|
</task>
|
|
191
|
-
<
|
|
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" />
|
|
192
205
|
<servers />
|
|
193
206
|
</component>
|
|
194
207
|
<component name="TypeScriptGeneratedFilesManager">
|
|
@@ -206,6 +219,8 @@
|
|
|
206
219
|
</option>
|
|
207
220
|
</component>
|
|
208
221
|
<component name="VcsManagerConfiguration">
|
|
222
|
+
<option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="false" />
|
|
223
|
+
<option name="CHECK_NEW_TODO" value="false" />
|
|
209
224
|
<MESSAGE value="update plugin" />
|
|
210
225
|
<MESSAGE value="fixed progress bar in Ping" />
|
|
211
226
|
<MESSAGE value="* isConnectedToTheInternet - Support SDK>29 * added exceptions handling when not connected to the internet" />
|
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);
|