@capacitor/cli 3.3.1 → 3.3.2
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 +13 -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/add.js +5 -5
- package/dist/cordova.js +7 -8
- package/dist/tasks/add.js +5 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,19 @@
|
|
|
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.2](https://github.com/ionic-team/capacitor/compare/3.3.1...3.3.2) (2021-11-17)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **cli:** add cordova-plugin-google-analytics to static list ([#5220](https://github.com/ionic-team/capacitor/issues/5220)) ([67a996c](https://github.com/ionic-team/capacitor/commit/67a996c0a6896e32c41ea01822d6435fdd706b84))
|
|
12
|
+
* **cli:** Add plugin to static list if pod has use-frameworks ([#5232](https://github.com/ionic-team/capacitor/issues/5232)) ([8a0518b](https://github.com/ionic-team/capacitor/commit/8a0518be9f6f6a4be4a9f1366cb8dcb191225b9d))
|
|
13
|
+
* **cli:** sync gradle from android folder ([#5233](https://github.com/ionic-team/capacitor/issues/5233)) ([cd779c4](https://github.com/ionic-team/capacitor/commit/cd779c4b6ed4ffc96777be7c94a0af4baca6d6d5))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
6
19
|
## [3.3.1](https://github.com/ionic-team/capacitor/compare/3.3.0...3.3.1) (2021-11-05)
|
|
7
20
|
|
|
8
21
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/android/add.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.addAndroid = void 0;
|
|
3
|
+
exports.createLocalProperties = exports.addAndroid = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const utils_fs_1 = require("@ionic/utils-fs");
|
|
6
6
|
const os_1 = require("os");
|
|
@@ -13,9 +13,6 @@ async function addAndroid(config) {
|
|
|
13
13
|
await common_1.runTask(`Adding native android project in ${colors_1.default.strong(config.android.platformDir)}`, async () => {
|
|
14
14
|
return template_1.extractTemplate(config.cli.assets.android.platformTemplateArchiveAbs, config.android.platformDirAbs);
|
|
15
15
|
});
|
|
16
|
-
await common_1.runTask('Syncing Gradle', async () => {
|
|
17
|
-
return createLocalProperties(config.android.platformDirAbs);
|
|
18
|
-
});
|
|
19
16
|
}
|
|
20
17
|
exports.addAndroid = addAndroid;
|
|
21
18
|
async function createLocalProperties(platformDir) {
|
|
@@ -47,6 +44,9 @@ sdk.dir=${defaultAndroidPath}
|
|
|
47
44
|
}
|
|
48
45
|
}
|
|
49
46
|
}
|
|
47
|
+
exports.createLocalProperties = createLocalProperties;
|
|
50
48
|
async function gradleSync(platformDir) {
|
|
51
|
-
await subprocess_1.runCommand(
|
|
49
|
+
await subprocess_1.runCommand(`./gradlew`, [], {
|
|
50
|
+
cwd: platformDir,
|
|
51
|
+
});
|
|
52
52
|
}
|
package/dist/cordova.js
CHANGED
|
@@ -388,19 +388,18 @@ function getIncompatibleCordovaPlugins(platform) {
|
|
|
388
388
|
exports.getIncompatibleCordovaPlugins = getIncompatibleCordovaPlugins;
|
|
389
389
|
function needsStaticPod(plugin, config) {
|
|
390
390
|
var _a, _b, _c, _d;
|
|
391
|
-
let pluginList = [
|
|
392
|
-
'phonegap-plugin-push',
|
|
393
|
-
'@havesource/cordova-plugin-push',
|
|
394
|
-
'cordova-plugin-firebasex',
|
|
395
|
-
'@batch.com/cordova-plugin',
|
|
396
|
-
'onesignal-cordova-plugin',
|
|
397
|
-
];
|
|
391
|
+
let pluginList = ['phonegap-plugin-push', '@batch.com/cordova-plugin'];
|
|
398
392
|
if ((_b = (_a = config.app.extConfig) === null || _a === void 0 ? void 0 : _a.cordova) === null || _b === void 0 ? void 0 : _b.staticPlugins) {
|
|
399
393
|
pluginList = pluginList.concat((_d = (_c = config.app.extConfig) === null || _c === void 0 ? void 0 : _c.cordova) === null || _d === void 0 ? void 0 : _d.staticPlugins);
|
|
400
394
|
}
|
|
401
|
-
return pluginList.includes(plugin.id);
|
|
395
|
+
return pluginList.includes(plugin.id) || useFrameworks(plugin);
|
|
402
396
|
}
|
|
403
397
|
exports.needsStaticPod = needsStaticPod;
|
|
398
|
+
function useFrameworks(plugin) {
|
|
399
|
+
const podspecs = plugin_1.getPlatformElement(plugin, 'ios', 'podspec');
|
|
400
|
+
const frameworkPods = podspecs.filter((podspec) => podspec.pods.filter((pods) => pods.$ && pods.$['use-frameworks'] === 'true').length > 0);
|
|
401
|
+
return frameworkPods.length > 0;
|
|
402
|
+
}
|
|
404
403
|
async function getCordovaPreferences(config) {
|
|
405
404
|
var _a, _b, _c, _d, _e;
|
|
406
405
|
const configXml = path_1.join(config.app.rootDir, 'config.xml');
|
package/dist/tasks/add.js
CHANGED
|
@@ -56,6 +56,11 @@ async function addCommand(config, selectedPlatformName) {
|
|
|
56
56
|
await editPlatforms(config, platformName);
|
|
57
57
|
if (await utils_fs_1.pathExists(config.app.webDirAbs)) {
|
|
58
58
|
await sync_1.sync(config, platformName, false);
|
|
59
|
+
if (platformName === config.android.name) {
|
|
60
|
+
await common_2.runTask('Syncing Gradle', async () => {
|
|
61
|
+
return add_1.createLocalProperties(config.android.platformDirAbs);
|
|
62
|
+
});
|
|
63
|
+
}
|
|
59
64
|
}
|
|
60
65
|
else {
|
|
61
66
|
log_1.logger.warn(`${colors_1.default.success(colors_1.default.strong('sync'))} could not run--missing ${colors_1.default.strong(config.app.webDir)} directory.`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capacitor/cli",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.2",
|
|
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": "3158cd9a293ac79de801c833bb937d2df54e0d96"
|
|
89
89
|
}
|