community-cordova-plugin-wifi 1.0.2 → 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 +3 -1
- package/package.json +1 -1
- package/plugin.xml +1 -1
- package/src/android/PingTask.java +1 -1
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/PingTask.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/android/PingTask.java" afterDir="false" />
|
|
11
12
|
</list>
|
|
12
13
|
<option name="SHOW_DIALOG" value="false" />
|
|
13
14
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
@@ -91,7 +92,8 @@
|
|
|
91
92
|
<workItem from="1709102390279" duration="5116000" />
|
|
92
93
|
<workItem from="1709959064513" duration="9732000" />
|
|
93
94
|
<workItem from="1710582743464" duration="1835000" />
|
|
94
|
-
<workItem from="1710593259268" duration="
|
|
95
|
+
<workItem from="1710593259268" duration="1509000" />
|
|
96
|
+
<workItem from="1711186960914" duration="29000" />
|
|
95
97
|
</task>
|
|
96
98
|
<task id="LOCAL-00001" summary="update plugin">
|
|
97
99
|
<option name="closed" value="true" />
|
package/package.json
CHANGED
package/plugin.xml
CHANGED
|
@@ -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()) {
|