@capacitor/cli 3.3.2 → 3.3.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/CHANGELOG.md +12 -0
- 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 +3 -1
- package/dist/config.js +6 -4
- package/dist/cordova.js +5 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.3.3](https://github.com/ionic-team/capacitor/compare/3.3.2...3.3.3) (2021-12-08)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **android:** restrict android run command to configured flavour ([#5256](https://github.com/ionic-team/capacitor/issues/5256)) ([ba84443](https://github.com/ionic-team/capacitor/commit/ba84443dce9c81e09140def57a60018b527b5bb5))
|
|
12
|
+
* **cli:** Add onesignal-cordova-plugin to the static list again ([#5262](https://github.com/ionic-team/capacitor/issues/5262)) ([e67ca99](https://github.com/ionic-team/capacitor/commit/e67ca9964c5a923d35f5cf41eb802c665563726f))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
## [3.3.2](https://github.com/ionic-team/capacitor/compare/3.3.1...3.3.2) (2021-11-17)
|
|
7
19
|
|
|
8
20
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/android/run.js
CHANGED
|
@@ -10,8 +10,10 @@ const native_run_1 = require("../util/native-run");
|
|
|
10
10
|
const subprocess_1 = require("../util/subprocess");
|
|
11
11
|
const debug = debug_1.default('capacitor:android:run');
|
|
12
12
|
async function runAndroid(config, { target: selectedTarget }) {
|
|
13
|
+
var _a;
|
|
13
14
|
const target = await common_1.promptForPlatformTarget(await native_run_1.getPlatformTargets('android'), selectedTarget);
|
|
14
|
-
const
|
|
15
|
+
const arg = `assemble${((_a = config.android) === null || _a === void 0 ? void 0 : _a.flavor) || ''}Debug`;
|
|
16
|
+
const gradleArgs = [arg];
|
|
15
17
|
debug('Invoking ./gradlew with args: %O', gradleArgs);
|
|
16
18
|
await common_1.runTask('Running Gradle build', async () => subprocess_1.runCommand('./gradlew', gradleArgs, {
|
|
17
19
|
cwd: config.android.platformDirAbs,
|
package/dist/config.js
CHANGED
|
@@ -148,7 +148,7 @@ async function loadCLIConfig(rootDir) {
|
|
|
148
148
|
};
|
|
149
149
|
}
|
|
150
150
|
async function loadAndroidConfig(rootDir, extConfig, cliConfig) {
|
|
151
|
-
var _a, _b, _c, _d, _e;
|
|
151
|
+
var _a, _b, _c, _d, _e, _f;
|
|
152
152
|
const name = 'android';
|
|
153
153
|
const platformDir = (_b = (_a = extConfig.android) === null || _a === void 0 ? void 0 : _a.path) !== null && _b !== void 0 ? _b : 'android';
|
|
154
154
|
const platformDirAbs = path_1.resolve(rootDir, platformDir);
|
|
@@ -160,9 +160,10 @@ async function loadAndroidConfig(rootDir, extConfig, cliConfig) {
|
|
|
160
160
|
const resDir = `${srcMainDir}/res`;
|
|
161
161
|
let apkPath = `${appDir}/build/outputs/apk/`;
|
|
162
162
|
let flavorPrefix = '';
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
163
|
+
const flavor = ((_c = extConfig.android) === null || _c === void 0 ? void 0 : _c.flavor) || '';
|
|
164
|
+
if ((_d = extConfig.android) === null || _d === void 0 ? void 0 : _d.flavor) {
|
|
165
|
+
apkPath = `${apkPath}/${(_e = extConfig.android) === null || _e === void 0 ? void 0 : _e.flavor}`;
|
|
166
|
+
flavorPrefix = `-${(_f = extConfig.android) === null || _f === void 0 ? void 0 : _f.flavor}`;
|
|
166
167
|
}
|
|
167
168
|
const apkName = `app${flavorPrefix}-debug.apk`;
|
|
168
169
|
const buildOutputDir = `${apkPath}/debug`;
|
|
@@ -191,6 +192,7 @@ async function loadAndroidConfig(rootDir, extConfig, cliConfig) {
|
|
|
191
192
|
apkName,
|
|
192
193
|
buildOutputDir,
|
|
193
194
|
buildOutputDirAbs: path_1.resolve(platformDirAbs, buildOutputDir),
|
|
195
|
+
flavor,
|
|
194
196
|
};
|
|
195
197
|
}
|
|
196
198
|
async function loadIOSConfig(rootDir, extConfig) {
|
package/dist/cordova.js
CHANGED
|
@@ -388,7 +388,11 @@ function getIncompatibleCordovaPlugins(platform) {
|
|
|
388
388
|
exports.getIncompatibleCordovaPlugins = getIncompatibleCordovaPlugins;
|
|
389
389
|
function needsStaticPod(plugin, config) {
|
|
390
390
|
var _a, _b, _c, _d;
|
|
391
|
-
let pluginList = [
|
|
391
|
+
let pluginList = [
|
|
392
|
+
'phonegap-plugin-push',
|
|
393
|
+
'@batch.com/cordova-plugin',
|
|
394
|
+
'onesignal-cordova-plugin',
|
|
395
|
+
];
|
|
392
396
|
if ((_b = (_a = config.app.extConfig) === null || _a === void 0 ? void 0 : _a.cordova) === null || _b === void 0 ? void 0 : _b.staticPlugins) {
|
|
393
397
|
pluginList = pluginList.concat((_d = (_c = config.app.extConfig) === null || _c === void 0 ? void 0 : _c.cordova) === null || _d === void 0 ? void 0 : _d.staticPlugins);
|
|
394
398
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capacitor/cli",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.3",
|
|
4
4
|
"description": "Capacitor: Cross-platform apps with JavaScript and the web",
|
|
5
5
|
"homepage": "https://capacitorjs.com",
|
|
6
6
|
"author": "Ionic Team <hi@ionic.io> (https://ionic.io)",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"publishConfig": {
|
|
86
86
|
"access": "public"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "cd8221ed0162454d2ee01dc3bc164de38a81bf43"
|
|
89
89
|
}
|