community-cordova-plugin-wifi 1.0.1 → 1.0.3
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 +23 -11
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/src/android/IpInfoUtils.java +1 -1
- package/src/android/PingTask.java +1 -1
package/.idea/workspace.xml
CHANGED
|
@@ -6,16 +6,9 @@
|
|
|
6
6
|
<component name="ChangeListManager">
|
|
7
7
|
<list default="true" id="5a269414-5baa-4c38-b2f3-50c21d305b88" name="Changes" comment="update plugin">
|
|
8
8
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
|
9
|
-
<change beforePath="$PROJECT_DIR$/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
|
|
10
9
|
<change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
|
|
11
|
-
<change beforePath="$PROJECT_DIR$/
|
|
12
|
-
<change beforePath="$PROJECT_DIR$/src/android/
|
|
13
|
-
<change beforePath="$PROJECT_DIR$/src/android/WifiDetailsUtils.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/android/WifiDetailsUtils.java" afterDir="false" />
|
|
14
|
-
<change beforePath="$PROJECT_DIR$/src/android/WifiUtils.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/android/WifiUtils.java" afterDir="false" />
|
|
15
|
-
<change beforePath="$PROJECT_DIR$/src/ios/CpuPlugin.h" beforeDir="false" />
|
|
16
|
-
<change beforePath="$PROJECT_DIR$/src/ios/CpuPlugin.m" beforeDir="false" />
|
|
17
|
-
<change beforePath="$PROJECT_DIR$/types/index.d.ts" beforeDir="false" afterPath="$PROJECT_DIR$/types/index.d.ts" afterDir="false" />
|
|
18
|
-
<change beforePath="$PROJECT_DIR$/www/plugin.js" beforeDir="false" afterPath="$PROJECT_DIR$/www/plugin.js" afterDir="false" />
|
|
10
|
+
<change beforePath="$PROJECT_DIR$/plugin.xml" beforeDir="false" afterPath="$PROJECT_DIR$/plugin.xml" afterDir="false" />
|
|
11
|
+
<change beforePath="$PROJECT_DIR$/src/android/PingTask.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/android/PingTask.java" afterDir="false" />
|
|
19
12
|
</list>
|
|
20
13
|
<option name="SHOW_DIALOG" value="false" />
|
|
21
14
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
@@ -97,7 +90,10 @@
|
|
|
97
90
|
<workItem from="1708181011949" duration="10604000" />
|
|
98
91
|
<workItem from="1708240272493" duration="19053000" />
|
|
99
92
|
<workItem from="1709102390279" duration="5116000" />
|
|
100
|
-
<workItem from="1709959064513" duration="
|
|
93
|
+
<workItem from="1709959064513" duration="9732000" />
|
|
94
|
+
<workItem from="1710582743464" duration="1835000" />
|
|
95
|
+
<workItem from="1710593259268" duration="1509000" />
|
|
96
|
+
<workItem from="1711186960914" duration="29000" />
|
|
101
97
|
</task>
|
|
102
98
|
<task id="LOCAL-00001" summary="update plugin">
|
|
103
99
|
<option name="closed" value="true" />
|
|
@@ -147,7 +143,23 @@
|
|
|
147
143
|
<option name="project" value="LOCAL" />
|
|
148
144
|
<updated>1709190191610</updated>
|
|
149
145
|
</task>
|
|
150
|
-
<
|
|
146
|
+
<task id="LOCAL-00007" summary="update plugin">
|
|
147
|
+
<option name="closed" value="true" />
|
|
148
|
+
<created>1710226368210</created>
|
|
149
|
+
<option name="number" value="00007" />
|
|
150
|
+
<option name="presentableId" value="LOCAL-00007" />
|
|
151
|
+
<option name="project" value="LOCAL" />
|
|
152
|
+
<updated>1710226368210</updated>
|
|
153
|
+
</task>
|
|
154
|
+
<task id="LOCAL-00008" summary="update plugin">
|
|
155
|
+
<option name="closed" value="true" />
|
|
156
|
+
<created>1710593285324</created>
|
|
157
|
+
<option name="number" value="00008" />
|
|
158
|
+
<option name="presentableId" value="LOCAL-00008" />
|
|
159
|
+
<option name="project" value="LOCAL" />
|
|
160
|
+
<updated>1710593285324</updated>
|
|
161
|
+
</task>
|
|
162
|
+
<option name="localTasksCounter" value="9" />
|
|
151
163
|
<servers />
|
|
152
164
|
</component>
|
|
153
165
|
<component name="TypeScriptGeneratedFilesManager">
|
package/package.json
CHANGED
package/plugin.xml
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
|
|
4
4
|
id="community-cordova-plugin-wifi"
|
|
5
|
-
version="1.0.
|
|
6
|
-
<name>Cordova Plugin
|
|
5
|
+
version="1.0.3">
|
|
6
|
+
<name>Cordova Plugin Wifi</name>
|
|
7
7
|
<description></description>
|
|
8
8
|
<license>MIT</license>
|
|
9
9
|
<keywords></keywords>
|
|
@@ -45,7 +45,7 @@ public class IpInfoUtils {
|
|
|
45
45
|
for (Network network : networks) {
|
|
46
46
|
NetworkInfo networkInfo = connectivityManager.getNetworkInfo(network);
|
|
47
47
|
|
|
48
|
-
if (networkInfo != null && networkInfo.isConnected()
|
|
48
|
+
if (networkInfo != null && networkInfo.isConnected() ) {
|
|
49
49
|
WifiInfo wifiInfo = wifiManager.getConnectionInfo();
|
|
50
50
|
DhcpInfo dhcpInfo = wifiManager.getDhcpInfo(); // Get DHCP info for DNS details
|
|
51
51
|
|
|
@@ -20,10 +20,10 @@ public class PingTask {
|
|
|
20
20
|
String line;
|
|
21
21
|
String fullResponse = "";
|
|
22
22
|
while ((line = reader.readLine()) != null) {
|
|
23
|
+
int progress = (int) (((double) linesRead / count) * 100);
|
|
23
24
|
linesRead++;
|
|
24
25
|
JSONObject progressUpdate = new JSONObject();
|
|
25
26
|
// Ensure progress does not exceed 100
|
|
26
|
-
int progress = (int) (((double) linesRead / count) * 100);
|
|
27
27
|
progress = Math.min(progress, 100); // Cap progress at 100
|
|
28
28
|
progressUpdate.put("line", line);
|
|
29
29
|
if (fullResponse != null && !fullResponse.isEmpty()) {
|