@24i/smartapps-bigscreen-rnv-build-engine 0.17.10-alpha.1 → 0.17.10-alpha.3
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.
|
@@ -138,14 +138,17 @@ const configureProject = (c) => {
|
|
|
138
138
|
if (!semVerObj) {
|
|
139
139
|
throw new Error(`Failed to parse Application version: ${version}`);
|
|
140
140
|
}
|
|
141
|
-
const major = `${semVerObj.major}`.padStart(2, '0');
|
|
142
|
-
const minor = `${semVerObj.minor}`.padStart(2, '0');
|
|
143
|
-
const patch = `${semVerObj.patch}`.padStart(2, '0');
|
|
144
|
-
const versionCode = parseInt(`${major}${minor}${patch}00`, 10);
|
|
145
141
|
const appId = rnv_1.Common.getConfigProp(c, c.platform, 'id', '');
|
|
146
142
|
const minSdkVersion = rnv_1.Common.getConfigProp(c, c.platform, 'minSdkVersion', 21);
|
|
147
143
|
const targetSdkVersion = rnv_1.Common.getConfigProp(c, c.platform, 'targetSdkVersion', 33);
|
|
148
144
|
const compileSdkVersion = rnv_1.Common.getConfigProp(c, c.platform, 'compileSdkVersion', 33);
|
|
145
|
+
let versionCode = rnv_1.Common.getConfigProp(c, c.platform, 'versionCode');
|
|
146
|
+
if (typeof versionCode === 'undefined') {
|
|
147
|
+
const major = `${semVerObj.major}`.padStart(2, '0');
|
|
148
|
+
const minor = `${semVerObj.minor}`.padStart(2, '0');
|
|
149
|
+
const patch = `${semVerObj.patch}`.padStart(2, '0');
|
|
150
|
+
versionCode = parseInt(`${major}${minor}${patch}00`, 10);
|
|
151
|
+
}
|
|
149
152
|
const injects = [{
|
|
150
153
|
pattern: '{{MIN_SDK_VERSION}}',
|
|
151
154
|
override: minSdkVersion,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@24i/smartapps-bigscreen-rnv-build-engine",
|
|
3
|
-
"version": "0.17.10-alpha.
|
|
3
|
+
"version": "0.17.10-alpha.3",
|
|
4
4
|
"description": "Package with build engine for SmartApps BIGscreen projects...",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"lintcheck:cached": "npm run eslint -- --cache && npm run stylelint -- --cache",
|
|
18
18
|
"typecheck:cached": "tsc --noEmit --incremental",
|
|
19
19
|
"test": "jest --passWithNoTests",
|
|
20
|
-
"
|
|
20
|
+
"prepublishOnly": "npm run build",
|
|
21
21
|
"postinstall": "node fixDependency.js"
|
|
22
22
|
},
|
|
23
23
|
"deleteDependencies": [
|