@24i/smartapps-bigscreen-rnv-build-engine 0.17.25-alpha.2723 → 0.17.25
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.
|
@@ -65,11 +65,14 @@ const buildAllWithSchemes = () => {
|
|
|
65
65
|
throw new Error('No scheme name to use found! Please use rnv scheme names as a param.');
|
|
66
66
|
}
|
|
67
67
|
const c = (0, resolvers_1.getBaseConfig)();
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
68
|
+
let supportedPlatforms = (0, resolvers_1.resolveSupportedPlatforms)(c);
|
|
69
|
+
if (include || exclude) {
|
|
70
|
+
supportedPlatforms = supportedPlatforms.filter((platform) => {
|
|
71
|
+
if (include)
|
|
72
|
+
return include.includes(platform);
|
|
73
|
+
return !exclude.includes(platform);
|
|
74
|
+
});
|
|
75
|
+
}
|
|
73
76
|
supportedPlatforms.forEach((platform, platformIndex, platforms) => {
|
|
74
77
|
buildSchemes.forEach((scheme, schemeIndex, schemes) => {
|
|
75
78
|
c.runtime.scheme = scheme;
|
|
@@ -31,6 +31,7 @@ const forEachSupportedPlatformFlavour_1 = require("../utils/forEachSupportedPlat
|
|
|
31
31
|
const constants_1 = require("../constants");
|
|
32
32
|
const buildProductionPackages_1 = require("../constants/buildProductionPackages");
|
|
33
33
|
const resolvers_1 = require("../resolvers");
|
|
34
|
+
const getArgs_1 = require("./utils/getArgs");
|
|
34
35
|
const getZippedDirRelativePath = (c) => {
|
|
35
36
|
const { platformBuildsDir } = c.buildConfig.paths;
|
|
36
37
|
return path.join(platformBuildsDir, 'zipped_production_packages');
|
|
@@ -49,7 +50,7 @@ const buildProductionTask = (options, c) => {
|
|
|
49
50
|
};
|
|
50
51
|
const buildProductionPackagesAll = () => {
|
|
51
52
|
console.log('buildProductionPackagesAll');
|
|
52
|
-
const schemes =
|
|
53
|
+
const { schemes, include, exclude } = (0, getArgs_1.getArgs)();
|
|
53
54
|
if (!schemes.length) {
|
|
54
55
|
throw new Error('Missing scheme parameter');
|
|
55
56
|
}
|
|
@@ -59,7 +60,17 @@ const buildProductionPackagesAll = () => {
|
|
|
59
60
|
const c = (0, resolvers_1.getBaseConfig)();
|
|
60
61
|
c.runtime.scheme = schemes[0];
|
|
61
62
|
const platforms = (0, resolvers_1.resolveSupportedPlatforms)(c);
|
|
62
|
-
const skipPlatforms = platforms.filter((platform) =>
|
|
63
|
+
const skipPlatforms = platforms.filter((platform) => {
|
|
64
|
+
if (!buildProductionPackages_1.SUPPORTED_PACKAGE_PLATFORMS.includes(platform)) {
|
|
65
|
+
return true;
|
|
66
|
+
}
|
|
67
|
+
if (include || exclude) {
|
|
68
|
+
if (include)
|
|
69
|
+
return !include.includes(platform);
|
|
70
|
+
return exclude.includes(platform);
|
|
71
|
+
}
|
|
72
|
+
return false;
|
|
73
|
+
});
|
|
63
74
|
(0, forEachSupportedPlatformFlavour_1.forEachSupportedPlatformFlavour)(c, (options) => buildProductionTask(options, c), { ignoredPlatforms: skipPlatforms });
|
|
64
75
|
const zippedDirPath = path.resolve(getZippedDirRelativePath(c));
|
|
65
76
|
const zipFilePath = path.resolve((0, resolvers_1.getProductionZipFileRelativePath)(c));
|
package/package.json
CHANGED