@capgo/capacitor-updater 6.3.11 → 6.3.15

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.11";
57
+ private final String PLUGIN_VERSION = "6.3.15";
58
58
  private static final String DELAY_CONDITION_PREFERENCES = "";
59
59
 
60
60
  private SharedPreferences.Editor editor;
@@ -1590,7 +1590,9 @@ public class CapacitorUpdaterPlugin extends Plugin {
1590
1590
  String className = Objects.requireNonNull(
1591
1591
  runningTask.baseIntent.getComponent()
1592
1592
  ).getClassName();
1593
- assert runningTask.topActivity != null;
1593
+ if (runningTask.topActivity == null) {
1594
+ return false;
1595
+ }
1594
1596
  String runningActivity = runningTask.topActivity.getClassName();
1595
1597
  return className.equals(runningActivity);
1596
1598
  } 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.11"
46
+ private let PLUGIN_VERSION: String = "6.3.15"
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.11",
3
+ "version": "6.3.15",
4
4
  "license": "MPL-2.0",
5
5
  "description": "Live update for capacitor apps",
6
6
  "main": "dist/plugin.cjs.js",