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.
@@ -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="300000" />
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "community-cordova-plugin-wifi",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "types": "./types/index.d.ts",
5
5
  "readme": "README.md",
6
6
  "repository": "EYALIN/community-cordova-plugin-wifi/tree/master",
package/plugin.xml CHANGED
@@ -2,7 +2,7 @@
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.2">
5
+ version="1.0.3">
6
6
  <name>Cordova Plugin Wifi</name>
7
7
  <description></description>
8
8
  <license>MIT</license>
@@ -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()) {