@capacitor/cli 3.2.0 → 3.2.4
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 +39 -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/update.js +1 -0
- package/dist/common.js +13 -1
- package/dist/cordova.js +1 -1
- package/dist/tasks/add.js +6 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,45 @@
|
|
|
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.2.4](https://github.com/ionic-team/capacitor/compare/3.2.3...3.2.4) (2021-09-27)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **cli:** await sync on add to avoid telemetry hang ([833bc20](https://github.com/ionic-team/capacitor/commit/833bc20525a2558e03cd0e56c6765ce6828cdfac))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [3.2.3](https://github.com/ionic-team/capacitor/compare/3.2.2...3.2.3) (2021-09-15)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* Add SalesforceMobileSDK-CordovaPlugin to iOS incompatible list ([#5031](https://github.com/ionic-team/capacitor/issues/5031)) ([6f3f79f](https://github.com/ionic-team/capacitor/commit/6f3f79f412b77b0c90988226ec5ade5d0198c706))
|
|
23
|
+
* Define cordovaConfig gradle variable ([#5024](https://github.com/ionic-team/capacitor/issues/5024)) ([55c217e](https://github.com/ionic-team/capacitor/commit/55c217e6898d0270c23c3a7158a5102e9b84ff40))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
## [3.2.2](https://github.com/ionic-team/capacitor/compare/3.2.1...3.2.2) (2021-09-02)
|
|
30
|
+
|
|
31
|
+
**Note:** Version bump only for package @capacitor/cli
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
## [3.2.1](https://github.com/ionic-team/capacitor/compare/3.2.0...3.2.1) (2021-09-01)
|
|
38
|
+
|
|
39
|
+
**Note:** Version bump only for package @capacitor/cli
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
6
45
|
# [3.2.0](https://github.com/ionic-team/capacitor/compare/3.1.2...3.2.0) (2021-08-18)
|
|
7
46
|
|
|
8
47
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/android/update.js
CHANGED
|
@@ -201,6 +201,7 @@ ext {
|
|
|
201
201
|
cdvMinSdkVersion = project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : ${config.android.minVersion}
|
|
202
202
|
// Plugin gradle extensions can append to this to have code run at the end.
|
|
203
203
|
cdvPluginPostBuildExtras = []
|
|
204
|
+
cordovaConfig = [:]
|
|
204
205
|
}`;
|
|
205
206
|
await utils_fs_1.writeFile(path_1.join(config.android.cordovaPluginsDirAbs, 'cordova.variables.gradle'), cordovaVariables);
|
|
206
207
|
}
|
package/dist/common.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolvePlatform = exports.checkPlatformVersions = exports.getAddedPlatforms = exports.getPlatformTargetName = exports.promptForPlatformTarget = exports.promptForPlatform = 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.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");
|
|
@@ -237,6 +237,14 @@ async function isValidCommunityPlatform(platform) {
|
|
|
237
237
|
return (await getKnownCommunityPlatforms()).includes(platform);
|
|
238
238
|
}
|
|
239
239
|
exports.isValidCommunityPlatform = isValidCommunityPlatform;
|
|
240
|
+
async function getKnownEnterprisePlatforms() {
|
|
241
|
+
return ['windows'];
|
|
242
|
+
}
|
|
243
|
+
exports.getKnownEnterprisePlatforms = getKnownEnterprisePlatforms;
|
|
244
|
+
async function isValidEnterprisePlatform(platform) {
|
|
245
|
+
return (await getKnownEnterprisePlatforms()).includes(platform);
|
|
246
|
+
}
|
|
247
|
+
exports.isValidEnterprisePlatform = isValidEnterprisePlatform;
|
|
240
248
|
async function promptForPlatform(platforms, promptMessage, selectedPlatformName) {
|
|
241
249
|
const { prompt } = await Promise.resolve().then(() => tslib_1.__importStar(require('prompts')));
|
|
242
250
|
if (!selectedPlatformName) {
|
|
@@ -330,6 +338,10 @@ function resolvePlatform(config, platform) {
|
|
|
330
338
|
if (community) {
|
|
331
339
|
return path_1.dirname(community);
|
|
332
340
|
}
|
|
341
|
+
const enterprise = node_1.resolveNode(config.app.rootDir, `@ionic-enterprise/capacitor-${platform}`, 'package.json');
|
|
342
|
+
if (enterprise) {
|
|
343
|
+
return path_1.dirname(enterprise);
|
|
344
|
+
}
|
|
333
345
|
}
|
|
334
346
|
// third-party
|
|
335
347
|
const thirdParty = node_1.resolveNode(config.app.rootDir, platform, 'package.json');
|
package/dist/cordova.js
CHANGED
|
@@ -368,7 +368,7 @@ function getIncompatibleCordovaPlugins(platform) {
|
|
|
368
368
|
'cordova-support-google-services',
|
|
369
369
|
];
|
|
370
370
|
if (platform === 'ios') {
|
|
371
|
-
pluginList.push('cordova-plugin-statusbar', '@ionic-enterprise/statusbar');
|
|
371
|
+
pluginList.push('cordova-plugin-statusbar', '@ionic-enterprise/statusbar', 'SalesforceMobileSDK-CordovaPlugin');
|
|
372
372
|
}
|
|
373
373
|
if (platform === 'android') {
|
|
374
374
|
pluginList.push('cordova-plugin-compat');
|
package/dist/tasks/add.js
CHANGED
|
@@ -25,6 +25,11 @@ async function addCommand(config, selectedPlatformName) {
|
|
|
25
25
|
if (await common_2.isValidCommunityPlatform(selectedPlatformName)) {
|
|
26
26
|
msg += `\nTry installing ${colors_1.default.strong(`@capacitor-community/${selectedPlatformName}`)} and adding the platform again.`;
|
|
27
27
|
}
|
|
28
|
+
if (await common_2.isValidEnterprisePlatform(selectedPlatformName)) {
|
|
29
|
+
msg +=
|
|
30
|
+
`\nThis is an enterprise platform and @ionic-enterprise/capacitor-${selectedPlatformName} is not installed.\n` +
|
|
31
|
+
`To learn how to use this platform, visit https://ionic.io/docs/${selectedPlatformName}`;
|
|
32
|
+
}
|
|
28
33
|
log_1.logger.error(msg);
|
|
29
34
|
}
|
|
30
35
|
}
|
|
@@ -50,7 +55,7 @@ async function addCommand(config, selectedPlatformName) {
|
|
|
50
55
|
await doAdd(config, platformName);
|
|
51
56
|
await editPlatforms(config, platformName);
|
|
52
57
|
if (await utils_fs_1.pathExists(config.app.webDirAbs)) {
|
|
53
|
-
sync_1.sync(config, platformName, false);
|
|
58
|
+
await sync_1.sync(config, platformName, false);
|
|
54
59
|
}
|
|
55
60
|
else {
|
|
56
61
|
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.2.
|
|
3
|
+
"version": "3.2.4",
|
|
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)",
|
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
"env-paths": "^2.2.0",
|
|
54
54
|
"kleur": "^4.1.1",
|
|
55
55
|
"native-run": "^1.4.0",
|
|
56
|
-
"open": "^7.
|
|
56
|
+
"open": "^7.4.2",
|
|
57
57
|
"plist": "^3.0.2",
|
|
58
58
|
"prompts": "^2.3.2",
|
|
59
59
|
"semver": "^7.3.2",
|
|
60
|
-
"tar": "^6.
|
|
60
|
+
"tar": "^6.1.11",
|
|
61
61
|
"tslib": "^2.1.0",
|
|
62
62
|
"xml2js": "^0.4.23"
|
|
63
63
|
},
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"publishConfig": {
|
|
86
86
|
"access": "public"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "81a43b1ce2096c4c6666fe06c5b20a87a01d1949"
|
|
89
89
|
}
|