@capgo/capacitor-updater 7.2.0 → 7.2.2

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.
@@ -57,7 +57,7 @@ public class CapacitorUpdaterPlugin extends Plugin {
57
57
  private static final String statsUrlDefault = "https://plugin.capgo.app/stats";
58
58
  private static final String channelUrlDefault = "https://plugin.capgo.app/channel_self";
59
59
 
60
- private final String PLUGIN_VERSION = "7.2.0";
60
+ private final String PLUGIN_VERSION = "7.2.2";
61
61
  private static final String DELAY_CONDITION_PREFERENCES = "";
62
62
 
63
63
  private SharedPreferences.Editor editor;
@@ -75,8 +75,8 @@ public class DownloadWorkerManager {
75
75
  Constraints.Builder constraintsBuilder = new Constraints.Builder();
76
76
  if (isEmulator) {
77
77
  Log.i(TAG, "Emulator detected - using lenient network constraints");
78
- // On emulators, use UNMETERED to avoid background network issues
79
- constraintsBuilder.setRequiredNetworkType(NetworkType.UNMETERED);
78
+ // On emulators, use NOT_REQUIRED to avoid background network issues
79
+ constraintsBuilder.setRequiredNetworkType(NetworkType.NOT_REQUIRED);
80
80
  } else {
81
81
  constraintsBuilder.setRequiredNetworkType(NetworkType.CONNECTED);
82
82
  }
@@ -45,7 +45,7 @@ public class CapacitorUpdaterPlugin: CAPPlugin, CAPBridgedPlugin {
45
45
  CAPPluginMethod(name: "getNextBundle", returnType: CAPPluginReturnPromise)
46
46
  ]
47
47
  public var implementation = CapacitorUpdater()
48
- private let PLUGIN_VERSION: String = "7.2.0"
48
+ private let PLUGIN_VERSION: String = "7.2.2"
49
49
  static let updateUrlDefault = "https://plugin.capgo.app/updates"
50
50
  static let statsUrlDefault = "https://plugin.capgo.app/stats"
51
51
  static let channelUrlDefault = "https://plugin.capgo.app/channel_self"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-updater",
3
- "version": "7.2.0",
3
+ "version": "7.2.2",
4
4
  "license": "MPL-2.0",
5
5
  "description": "Live update for capacitor apps",
6
6
  "main": "dist/plugin.cjs.js",