@capgo/cordova-updater 8.1.2 → 8.1.4

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/cordova-updater",
3
- "version": "8.1.2",
3
+ "version": "8.1.4",
4
4
  "license": "MPL-2.0",
5
5
  "description": "Live update Cordova plugin for Capgo",
6
6
  "main": "dist/plugin.cjs.js",
@@ -68,7 +68,7 @@
68
68
  "changelog:ai": "node scripts/generate-ai-changelog.mjs"
69
69
  },
70
70
  "devDependencies": {
71
- "@ionic/eslint-config": "^0.4.0",
71
+ "@ionic/eslint-config": "^0.5.0",
72
72
  "@ionic/prettier-config": "^4.0.0",
73
73
  "@types/node": "^24.3.0",
74
74
  "commit-and-tag-version": "^13.2.1",
package/plugin.xml CHANGED
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
3
3
  id="@capgo/cordova-updater"
4
- version="8.1.2">
4
+ version="8.1.4">
5
5
 
6
6
  <name>Updater</name>
7
7
  <description>Cordova plugin for Capgo live updates (OTA).</description>
@@ -171,7 +171,7 @@ public class CordovaUpdaterPlugin extends org.apache.cordova.CordovaPlugin imple
171
171
  static final int APPLICATION_EXIT_REASON_USER_REQUESTED = 10;
172
172
  static final int APPLICATION_EXIT_REASON_DEPENDENCY_DIED = 12;
173
173
 
174
- private final String pluginVersion = "8.1.2";
174
+ private final String pluginVersion = "8.1.4";
175
175
  private static final String DELAY_CONDITION_PREFERENCES = "";
176
176
 
177
177
  private SharedPreferences.Editor editor;
@@ -228,7 +228,7 @@ public class DownloadService extends Worker {
228
228
  return CapgoUpdater.resolvePathInsideDirectory(builtinFolder, resolvedName);
229
229
  }
230
230
 
231
- /** APK web assets live in assets/public/; strip .br so store files match. */
231
+ /** Cordova APK web assets live in assets/www/; strip .br so store files match. */
232
232
  static String resolveBuiltinAssetPath(final String fileName) throws IOException {
233
233
  final File base = new File("/capgo-builtin-assets");
234
234
  final File resolved = resolveManifestBuiltinFile(base, fileName);
@@ -238,7 +238,7 @@ public class DownloadService extends Worker {
238
238
  if (!resolvedPath.startsWith(normalizedBasePath)) {
239
239
  throw new IOException("Invalid manifest file path: " + fileName);
240
240
  }
241
- return "public/" + resolvedPath.substring(normalizedBasePath.length()).replace(File.separatorChar, '/');
241
+ return "www/" + resolvedPath.substring(normalizedBasePath.length()).replace(File.separatorChar, '/');
242
242
  }
243
243
 
244
244
  static boolean copyStreamIfChecksumMatches(final InputStream input, final File dest, final String expectedHash) throws IOException {
@@ -88,7 +88,7 @@ public class CordovaUpdaterPlugin: CDVPlugin, CDVPluginSchemeHandler {
88
88
  }()
89
89
 
90
90
  public var implementation = CapgoUpdater()
91
- private let pluginVersion: String = "8.1.2"
91
+ private let pluginVersion: String = "8.1.4"
92
92
  static let updateUrlDefault = "https://plugin.capgo.app/updates"
93
93
  static let statsUrlDefault = "https://plugin.capgo.app/stats"
94
94
  static let channelUrlDefault = "https://plugin.capgo.app/channel_self"