@capgo/capacitor-updater 6.3.10 → 6.3.13

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.
@@ -54,7 +54,7 @@ public class CapacitorUpdaterPlugin extends Plugin {
54
54
  private static final String channelUrlDefault =
55
55
  "https://api.capgo.app/channel_self";
56
56
 
57
- private final String PLUGIN_VERSION = "6.3.10";
57
+ private final String PLUGIN_VERSION = "6.3.13";
58
58
  private static final String DELAY_CONDITION_PREFERENCES = "";
59
59
 
60
60
  private SharedPreferences.Editor editor;
@@ -517,8 +517,7 @@ public class CapacitorUpdaterPlugin extends Plugin {
517
517
  }
518
518
  call.resolve(res);
519
519
  }
520
- })
521
- );
520
+ }));
522
521
  } catch (final Exception e) {
523
522
  Log.e(CapacitorUpdater.TAG, "Failed to unsetChannel: ", e);
524
523
  call.reject("Failed to unsetChannel: ", e);
@@ -560,8 +559,7 @@ public class CapacitorUpdaterPlugin extends Plugin {
560
559
  }
561
560
  call.resolve(res);
562
561
  }
563
- })
564
- );
562
+ }));
565
563
  } catch (final Exception e) {
566
564
  Log.e(CapacitorUpdater.TAG, "Failed to setChannel: " + channel, e);
567
565
  call.reject("Failed to setChannel: " + channel, e);
@@ -579,8 +577,7 @@ public class CapacitorUpdaterPlugin extends Plugin {
579
577
  } else {
580
578
  call.resolve(res);
581
579
  }
582
- })
583
- );
580
+ }));
584
581
  } catch (final Exception e) {
585
582
  Log.e(CapacitorUpdater.TAG, "Failed to getChannel", e);
586
583
  call.reject("Failed to getChannel", e);
@@ -799,8 +796,7 @@ public class CapacitorUpdaterPlugin extends Plugin {
799
796
  }
800
797
  call.resolve(ret);
801
798
  }
802
- )
803
- );
799
+ ));
804
800
  }
805
801
 
806
802
  private boolean _reset(final Boolean toLastSuccessful) {
@@ -1590,7 +1586,9 @@ public class CapacitorUpdaterPlugin extends Plugin {
1590
1586
  String className = Objects.requireNonNull(
1591
1587
  runningTask.baseIntent.getComponent()
1592
1588
  ).getClassName();
1593
- assert runningTask.topActivity != null;
1589
+ if (runningTask.topActivity == null) {
1590
+ return false;
1591
+ }
1594
1592
  String runningActivity = runningTask.topActivity.getClassName();
1595
1593
  return className.equals(runningActivity);
1596
1594
  } catch (NullPointerException e) {
@@ -43,7 +43,7 @@ public class CapacitorUpdaterPlugin: CAPPlugin, CAPBridgedPlugin {
43
43
  CAPPluginMethod(name: "getBuiltinVersion", returnType: CAPPluginReturnPromise)
44
44
  ]
45
45
  public var implementation = CapacitorUpdater()
46
- private let PLUGIN_VERSION: String = "6.3.10"
46
+ private let PLUGIN_VERSION: String = "6.3.13"
47
47
  static let updateUrlDefault = "https://api.capgo.app/updates"
48
48
  static let statsUrlDefault = "https://api.capgo.app/stats"
49
49
  static let channelUrlDefault = "https://api.capgo.app/channel_self"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-updater",
3
- "version": "6.3.10",
3
+ "version": "6.3.13",
4
4
  "license": "MPL-2.0",
5
5
  "description": "Live update for capacitor apps",
6
6
  "main": "dist/plugin.cjs.js",