@capgo/capacitor-updater 3.0.9 → 3.0.10
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.
|
@@ -47,7 +47,7 @@ public class CapacitorUpdater {
|
|
|
47
47
|
public String statsUrl = "";
|
|
48
48
|
public String appId = "";
|
|
49
49
|
public String deviceID = "";
|
|
50
|
-
private String pluginVersion = "3.0.
|
|
50
|
+
private String pluginVersion = "3.0.10";
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
private FilenameFilter filter = new FilenameFilter() {
|
|
@@ -82,7 +82,7 @@ public class CapacitorUpdaterPlugin extends Plugin implements Application.Activi
|
|
|
82
82
|
editor.putString("LatestVersionNative", currentVersionNative.toString());
|
|
83
83
|
editor.commit();
|
|
84
84
|
} catch (Exception ex) {
|
|
85
|
-
Log.e("CapacitorUpdater", "Cannot get the current version" + ex.getMessage());
|
|
85
|
+
Log.e("CapacitorUpdater", "Cannot get the current version " + ex.getMessage());
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
if (!autoUpdate || this.autoUpdateUrl.equals("")) return;
|
|
@@ -183,7 +183,10 @@ public class CapacitorUpdaterPlugin extends Plugin implements Application.Activi
|
|
|
183
183
|
}
|
|
184
184
|
implementation.reset();
|
|
185
185
|
String pathHot = implementation.getLastPathHot();
|
|
186
|
-
this.bridge.
|
|
186
|
+
if (this.bridge.getLocalServer() != null) {
|
|
187
|
+
// if the server is not ready yet, hot reload is not needed
|
|
188
|
+
this.bridge.setServerAssetPath(pathHot);
|
|
189
|
+
}
|
|
187
190
|
return true;
|
|
188
191
|
}
|
|
189
192
|
|
|
@@ -37,7 +37,7 @@ extension Bundle {
|
|
|
37
37
|
public var appId = ""
|
|
38
38
|
public var deviceID = UIDevice.current.identifierForVendor?.uuidString ?? ""
|
|
39
39
|
public var notifyDownload: (Int) -> Void = { _ in }
|
|
40
|
-
public var pluginVersion = "3.0.
|
|
40
|
+
public var pluginVersion = "3.0.10"
|
|
41
41
|
private var versionBuild = Bundle.main.releaseVersionNumber ?? ""
|
|
42
42
|
private var lastPathHot = ""
|
|
43
43
|
private var lastPathPersist = ""
|