@bubblewrap/core 1.28.0 → 1.28.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/dist/lib/TwaManifest.js +12 -2
- package/package.json +5 -7
- package/template_project/.gradle/8.11.1/checksums/checksums.lock +0 -0
- package/template_project/.gradle/8.11.1/checksums/sha1-checksums.bin +0 -0
- package/template_project/.gradle/8.11.1/fileChanges/last-build.bin +0 -0
- package/template_project/.gradle/8.11.1/fileHashes/fileHashes.bin +0 -0
- package/template_project/.gradle/8.11.1/fileHashes/fileHashes.lock +0 -0
- package/template_project/.gradle/8.11.1/gc.properties +0 -0
- package/template_project/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/template_project/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/template_project/.gradle/vcs-1/gc.properties +0 -0
package/dist/lib/TwaManifest.js
CHANGED
|
@@ -69,7 +69,7 @@ const DEFAULT_NAVIGATION_DIVIDER_COLOR = '#00000000';
|
|
|
69
69
|
const DEFAULT_BACKGROUND_COLOR = '#FFFFFF';
|
|
70
70
|
const DEFAULT_APP_VERSION_CODE = 1;
|
|
71
71
|
const DEFAULT_APP_VERSION_NAME = DEFAULT_APP_VERSION_CODE.toString();
|
|
72
|
-
const DEFAULT_MIN_SDK_VERSION =
|
|
72
|
+
const DEFAULT_MIN_SDK_VERSION = 24;
|
|
73
73
|
const DEFAULT_SIGNING_KEY_PATH = './android.keystore';
|
|
74
74
|
const DEFAULT_SIGNING_KEY_ALIAS = 'android';
|
|
75
75
|
const DEFAULT_ENABLE_NOTIFICATIONS = true;
|
|
@@ -151,7 +151,14 @@ class TwaManifest {
|
|
|
151
151
|
this.isChromeOSOnly = data.isChromeOSOnly != undefined ? data.isChromeOSOnly : false;
|
|
152
152
|
this.isMetaQuest = data.isMetaQuest != undefined ? data.isMetaQuest : false;
|
|
153
153
|
this.fullScopeUrl = data.fullScopeUrl ? new URL(data.fullScopeUrl) : undefined;
|
|
154
|
-
|
|
154
|
+
if (typeof data.minSdkVersion === 'number' && data.minSdkVersion < DEFAULT_MIN_SDK_VERSION) {
|
|
155
|
+
TwaManifest.log.warn(`minSdkVersion ${data.minSdkVersion} is lower than the minimum supported ` +
|
|
156
|
+
`version (${DEFAULT_MIN_SDK_VERSION}); increasing to ${DEFAULT_MIN_SDK_VERSION}.`);
|
|
157
|
+
this.minSdkVersion = DEFAULT_MIN_SDK_VERSION;
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
this.minSdkVersion = data.minSdkVersion || DEFAULT_MIN_SDK_VERSION;
|
|
161
|
+
}
|
|
155
162
|
this.shareTarget = data.shareTarget;
|
|
156
163
|
this.orientation = data.orientation || DEFAULT_ORIENTATION;
|
|
157
164
|
this.fingerprints = data.fingerprints || [];
|
|
@@ -218,6 +225,9 @@ class TwaManifest {
|
|
|
218
225
|
if (error != null) {
|
|
219
226
|
return error;
|
|
220
227
|
}
|
|
228
|
+
if (this.minSdkVersion < DEFAULT_MIN_SDK_VERSION) {
|
|
229
|
+
return `minSdkVersion must be at least ${DEFAULT_MIN_SDK_VERSION}`;
|
|
230
|
+
}
|
|
221
231
|
return error;
|
|
222
232
|
}
|
|
223
233
|
generateShortcuts() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bubblewrap/core",
|
|
3
|
-
"version": "1.28.
|
|
3
|
+
"version": "1.28.1",
|
|
4
4
|
"description": "Core Library to generate, build and sign TWA projects",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18.0.0"
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
"@types/color": "^3.0.0",
|
|
38
38
|
"@types/extract-zip": "^1.6.2",
|
|
39
39
|
"@types/gapi.client.androidpublisher": "^3.0.0",
|
|
40
|
-
"@types/inquirer": "^9.0.7",
|
|
41
40
|
"@types/lodash": "^4.17.14",
|
|
42
41
|
"@types/mime-types": "^2.1.0",
|
|
43
42
|
"@types/node": "^18.11.0",
|
|
@@ -47,14 +46,13 @@
|
|
|
47
46
|
"color": "^3.1.3",
|
|
48
47
|
"extract-zip": "^1.7.0",
|
|
49
48
|
"fetch-h2": "^2.5.1",
|
|
50
|
-
"googleapis": "^
|
|
51
|
-
"inquirer": "^9.0.7",
|
|
49
|
+
"googleapis": "^173.0.0",
|
|
52
50
|
"jimp": "^0.22.7",
|
|
53
|
-
"lodash": "^4.
|
|
51
|
+
"lodash": "^4.18.1",
|
|
54
52
|
"mime-types": "^2.1.28",
|
|
55
53
|
"node-fetch": "^2.6.1",
|
|
56
|
-
"tar": "^7.5.
|
|
54
|
+
"tar": "^7.5.24",
|
|
57
55
|
"valid-url": "^1.0.9"
|
|
58
56
|
},
|
|
59
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "ba2a8430ee11d6bf650ed3d071c9c144fff31538"
|
|
60
58
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
File without changes
|