@sumaris-net/ngx-components 0.24.0 → 0.24.1
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/bundles/ngx-sumaris-components.umd.js +4 -4
- package/bundles/ngx-sumaris-components.umd.js.map +1 -1
- package/bundles/ngx-sumaris-components.umd.min.js +1 -1
- package/bundles/ngx-sumaris-components.umd.min.js.map +1 -1
- package/esm2015/src/app/core/install/install-upgrade-card.component.js +5 -5
- package/fesm2015/ngx-sumaris-components.js +4 -4
- package/fesm2015/ngx-sumaris-components.js.map +1 -1
- package/package.json +1 -1
|
@@ -21399,6 +21399,7 @@
|
|
|
21399
21399
|
var url = config.getProperty(CORE_CONFIG_OPTIONS.ANDROID_INSTALL_URL);
|
|
21400
21400
|
if (isNilOrBlank(url))
|
|
21401
21401
|
url = this.environment.defaultAndroidInstallUrl || null;
|
|
21402
|
+
var minVersion = config.getProperty(CORE_CONFIG_OPTIONS.APP_MIN_VERSION);
|
|
21402
21403
|
// Compute App name
|
|
21403
21404
|
var name = isNotNilOrBlank(url) && config.label || this.environment.defaultAppName || 'SUMARiS';
|
|
21404
21405
|
if (url) {
|
|
@@ -21407,7 +21408,7 @@
|
|
|
21407
21408
|
var mimeType = void 0;
|
|
21408
21409
|
// Get file name
|
|
21409
21410
|
var filename = this.getFilename(url);
|
|
21410
|
-
version =
|
|
21411
|
+
version = minVersion || 'latest';
|
|
21411
21412
|
// OK, this is a downloadable APK file (e.g. NOT a link to a playstore)
|
|
21412
21413
|
if (filename === null || filename === void 0 ? void 0 : filename.endsWith('.apk')) {
|
|
21413
21414
|
// Define mime type
|
|
@@ -21417,13 +21418,12 @@
|
|
|
21417
21418
|
version = versionMatches && versionMatches[1] || version;
|
|
21418
21419
|
// Compute a new file name, with the version
|
|
21419
21420
|
if (isNotNilOrBlank(name)) {
|
|
21420
|
-
downloadFilename = name + "-" + version + ".apk";
|
|
21421
|
+
downloadFilename = (name + "-v" + version + ".apk").toLowerCase();
|
|
21421
21422
|
}
|
|
21422
21423
|
else {
|
|
21423
21424
|
downloadFilename = filename;
|
|
21424
|
-
// Replace 'latest' with the app
|
|
21425
|
+
// Replace 'latest' with the app version, if present
|
|
21425
21426
|
if (downloadFilename.indexOf('latest')) {
|
|
21426
|
-
version = config.getProperty(CORE_CONFIG_OPTIONS.APP_MIN_VERSION);
|
|
21427
21427
|
downloadFilename = downloadFilename.replace('latest', version);
|
|
21428
21428
|
}
|
|
21429
21429
|
}
|