@capacitor/cli 5.7.2 → 5.7.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.
- package/assets/android-template.tar.gz +0 -0
- package/assets/capacitor-cordova-android-plugins.tar.gz +0 -0
- package/assets/capacitor-cordova-ios-plugins.tar.gz +0 -0
- package/assets/ios-template.tar.gz +0 -0
- package/dist/android/run.js +1 -1
- package/dist/common.js +6 -1
- package/dist/config.js +9 -10
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/android/run.js
CHANGED
|
@@ -30,7 +30,7 @@ async function runAndroid(config, { target: selectedTarget, flavor: selectedFlav
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
const pathToApk = `${config.android.platformDirAbs}/${config.android.appDir}/build/outputs/apk${runFlavor !== '' ? '/' + runFlavor : ''}/debug`;
|
|
33
|
-
const apkName =
|
|
33
|
+
const apkName = (0, common_1.parseApkNameFromFlavor)(runFlavor);
|
|
34
34
|
const apkPath = (0, path_1.resolve)(pathToApk, apkName);
|
|
35
35
|
const nativeRunArgs = ['android', '--app', apkPath, '--target', target.id];
|
|
36
36
|
if (selectedPorts) {
|
package/dist/common.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.checkJDKMajorVersion = exports.resolvePlatform = exports.checkPlatformVersions = exports.getAddedPlatforms = exports.getPlatformTargetName = exports.promptForPlatformTarget = exports.promptForPlatform = exports.isValidEnterprisePlatform = exports.getKnownEnterprisePlatforms = exports.isValidCommunityPlatform = exports.getKnownCommunityPlatforms = exports.isValidPlatform = exports.getKnownPlatforms = exports.selectPlatforms = exports.getProjectPlatformDirectory = exports.getCLIVersion = exports.getCoreVersion = exports.getCapacitorPackageVersion = exports.requireCapacitorPackage = exports.getCapacitorPackage = exports.runTask = exports.runPlatformHook = exports.wait = exports.checkAppName = exports.checkAppId = exports.checkAppDir = exports.checkAppConfig = exports.checkCapacitorPlatform = exports.checkPackage = exports.checkWebDir = exports.check = void 0;
|
|
3
|
+
exports.parseApkNameFromFlavor = exports.checkJDKMajorVersion = exports.resolvePlatform = exports.checkPlatformVersions = exports.getAddedPlatforms = exports.getPlatformTargetName = exports.promptForPlatformTarget = exports.promptForPlatform = exports.isValidEnterprisePlatform = exports.getKnownEnterprisePlatforms = exports.isValidCommunityPlatform = exports.getKnownCommunityPlatforms = exports.isValidPlatform = exports.getKnownPlatforms = exports.selectPlatforms = exports.getProjectPlatformDirectory = exports.getCLIVersion = exports.getCoreVersion = exports.getCapacitorPackageVersion = exports.requireCapacitorPackage = exports.getCapacitorPackage = exports.runTask = exports.runPlatformHook = exports.wait = exports.checkAppName = exports.checkAppId = exports.checkAppDir = exports.checkAppConfig = exports.checkCapacitorPlatform = exports.checkPackage = exports.checkWebDir = exports.check = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const utils_fs_1 = require("@ionic/utils-fs");
|
|
6
6
|
const utils_terminal_1 = require("@ionic/utils-terminal");
|
|
@@ -391,3 +391,8 @@ async function checkJDKMajorVersion() {
|
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
393
|
exports.checkJDKMajorVersion = checkJDKMajorVersion;
|
|
394
|
+
function parseApkNameFromFlavor(flavor) {
|
|
395
|
+
const convertedName = flavor.replace(/([A-Z])/g, '-$1').toLowerCase();
|
|
396
|
+
return `app-${convertedName ? `${convertedName}-` : ''}debug.apk`;
|
|
397
|
+
}
|
|
398
|
+
exports.parseApkNameFromFlavor = parseApkNameFromFlavor;
|
package/dist/config.js
CHANGED
|
@@ -6,6 +6,7 @@ const utils_fs_1 = require("@ionic/utils-fs");
|
|
|
6
6
|
const debug_1 = tslib_1.__importDefault(require("debug"));
|
|
7
7
|
const path_1 = require("path");
|
|
8
8
|
const colors_1 = tslib_1.__importDefault(require("./colors"));
|
|
9
|
+
const common_1 = require("./common");
|
|
9
10
|
const errors_1 = require("./errors");
|
|
10
11
|
const log_1 = require("./log");
|
|
11
12
|
const fn_1 = require("./util/fn");
|
|
@@ -164,7 +165,7 @@ async function loadCLIConfig(rootDir) {
|
|
|
164
165
|
};
|
|
165
166
|
}
|
|
166
167
|
async function loadAndroidConfig(rootDir, extConfig, cliConfig) {
|
|
167
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s
|
|
168
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
168
169
|
const name = 'android';
|
|
169
170
|
const platformDir = (_b = (_a = extConfig.android) === null || _a === void 0 ? void 0 : _a.path) !== null && _b !== void 0 ? _b : 'android';
|
|
170
171
|
const platformDirAbs = (0, path_1.resolve)(rootDir, platformDir);
|
|
@@ -175,23 +176,21 @@ async function loadAndroidConfig(rootDir, extConfig, cliConfig) {
|
|
|
175
176
|
const webDir = `${assetsDir}/public`;
|
|
176
177
|
const resDir = `${srcMainDir}/res`;
|
|
177
178
|
let apkPath = `${appDir}/build/outputs/apk/`;
|
|
178
|
-
let flavorPrefix = '';
|
|
179
179
|
const flavor = ((_c = extConfig.android) === null || _c === void 0 ? void 0 : _c.flavor) || '';
|
|
180
180
|
if ((_d = extConfig.android) === null || _d === void 0 ? void 0 : _d.flavor) {
|
|
181
181
|
apkPath = `${apkPath}/${(_e = extConfig.android) === null || _e === void 0 ? void 0 : _e.flavor}`;
|
|
182
|
-
flavorPrefix = `-${(_f = extConfig.android) === null || _f === void 0 ? void 0 : _f.flavor}`;
|
|
183
182
|
}
|
|
184
|
-
const apkName =
|
|
183
|
+
const apkName = (0, common_1.parseApkNameFromFlavor)(flavor);
|
|
185
184
|
const buildOutputDir = `${apkPath}/debug`;
|
|
186
185
|
const cordovaPluginsDir = 'capacitor-cordova-android-plugins';
|
|
187
186
|
const studioPath = (0, promise_1.lazy)(() => determineAndroidStudioPath(cliConfig.os));
|
|
188
187
|
const buildOptions = {
|
|
189
|
-
keystorePath: (
|
|
190
|
-
keystorePassword: (
|
|
191
|
-
keystoreAlias: (
|
|
192
|
-
keystoreAliasPassword: (
|
|
193
|
-
signingType: (
|
|
194
|
-
releaseType: (
|
|
188
|
+
keystorePath: (_g = (_f = extConfig.android) === null || _f === void 0 ? void 0 : _f.buildOptions) === null || _g === void 0 ? void 0 : _g.keystorePath,
|
|
189
|
+
keystorePassword: (_j = (_h = extConfig.android) === null || _h === void 0 ? void 0 : _h.buildOptions) === null || _j === void 0 ? void 0 : _j.keystorePassword,
|
|
190
|
+
keystoreAlias: (_l = (_k = extConfig.android) === null || _k === void 0 ? void 0 : _k.buildOptions) === null || _l === void 0 ? void 0 : _l.keystoreAlias,
|
|
191
|
+
keystoreAliasPassword: (_o = (_m = extConfig.android) === null || _m === void 0 ? void 0 : _m.buildOptions) === null || _o === void 0 ? void 0 : _o.keystoreAliasPassword,
|
|
192
|
+
signingType: (_q = (_p = extConfig.android) === null || _p === void 0 ? void 0 : _p.buildOptions) === null || _q === void 0 ? void 0 : _q.signingType,
|
|
193
|
+
releaseType: (_s = (_r = extConfig.android) === null || _r === void 0 ? void 0 : _r.buildOptions) === null || _s === void 0 ? void 0 : _s.releaseType,
|
|
195
194
|
};
|
|
196
195
|
return {
|
|
197
196
|
name,
|
package/package.json
CHANGED