@capgo/cordova-updater 8.1.3 → 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
package/plugin.xml
CHANGED
|
@@ -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.
|
|
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/
|
|
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 "
|
|
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.
|
|
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"
|