@capgo/capacitor-updater 3.3.3 → 3.3.6

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.
@@ -58,7 +58,7 @@ public class CapacitorUpdater {
58
58
 
59
59
  public String appId = "";
60
60
  public String deviceID = "";
61
- public final String pluginVersion = "3.3.3";
61
+ public final String pluginVersion = "3.3.6";
62
62
  public String statsUrl = "";
63
63
 
64
64
  public CapacitorUpdater (final Context context) throws PackageManager.NameNotFoundException {
@@ -49,7 +49,7 @@ public class CapacitorUpdaterPlugin extends Plugin implements Application.Activi
49
49
  this.implementation = new CapacitorUpdater(this.getContext()) {
50
50
  @Override
51
51
  public void notifyDownload(final int percent) {
52
- this.notifyDownload(percent);
52
+ CapacitorUpdaterPlugin.this.notifyDownload(percent);
53
53
  }
54
54
  };
55
55
  final PackageInfo pInfo = this.getContext().getPackageManager().getPackageInfo(this.getContext().getPackageName(), 0);
@@ -348,6 +348,7 @@ public class CapacitorUpdaterPlugin extends Plugin implements Application.Activi
348
348
  Log.i(this.TAG, "Version: " + curVersionName + ", is considered broken");
349
349
  Log.i(this.TAG, "Will downgraded to version: " + (pastVersionName.equals("") ? "builtin" : pastVersionName) + " for next start");
350
350
  Log.i(this.TAG, "Don't forget to trigger 'notifyAppReady()' in js code to validate a version.");
351
+ this.implementation.sendStats("revert", curVersionName);
351
352
  if (!pastVersion.equals("") && !pastVersionName.equals("")) {
352
353
  final Boolean res = this.implementation.set(pastVersion, pastVersionName);
353
354
  if (res && this._reload()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-updater",
3
- "version": "3.3.3",
3
+ "version": "3.3.6",
4
4
  "license": "AGPL-3.0-only",
5
5
  "description": "OTA update for capacitor apps",
6
6
  "main": "dist/plugin.cjs.js",