@capacitor/cli 8.4.0 → 8.4.1-nightly-20260603T163533.0
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-pods-template.tar.gz +0 -0
- package/assets/ios-spm-template.tar.gz +0 -0
- package/dist/ios/update.js +15 -0
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/ios/update.js
CHANGED
|
@@ -4,6 +4,7 @@ exports.installCocoaPodsPlugins = exports.updateIOS = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const fs_extra_1 = require("fs-extra");
|
|
6
6
|
const path_1 = require("path");
|
|
7
|
+
const semver_1 = require("semver");
|
|
7
8
|
const colors_1 = tslib_1.__importDefault(require("../colors"));
|
|
8
9
|
const common_1 = require("../common");
|
|
9
10
|
const cordova_1 = require("../cordova");
|
|
@@ -44,6 +45,20 @@ async function updatePluginFiles(config, plugins, deployment) {
|
|
|
44
45
|
if ((await config.ios.packageManager) === 'SPM') {
|
|
45
46
|
await generateCordovaPackageFiles(cordovaPlugins, config);
|
|
46
47
|
const validSPMPackages = await (0, spm_1.checkPluginsForPackageSwift)(config, plugins);
|
|
48
|
+
await Promise.all(validSPMPackages.map(async (plugin) => {
|
|
49
|
+
var _a;
|
|
50
|
+
const iosPlatformVersion = await (0, common_1.getCapacitorPackageVersion)(config, config.ios.name);
|
|
51
|
+
const packageSwiftPath = (0, path_1.join)(plugin.rootPath, 'Package.swift');
|
|
52
|
+
let content = await (0, fs_extra_1.readFile)(packageSwiftPath, { encoding: 'utf-8' });
|
|
53
|
+
const regex = new RegExp('url:\\s*"https://github.com/ionic-team/capacitor-swift-pm\\.git",\\s*from:\\s*"([^"]+)"');
|
|
54
|
+
const version = (_a = content.match(regex)) === null || _a === void 0 ? void 0 : _a[1];
|
|
55
|
+
const majorCapVersion = (0, semver_1.major)(iosPlatformVersion);
|
|
56
|
+
if (version && (0, semver_1.major)(version) != majorCapVersion) {
|
|
57
|
+
content = (0, migrate_1.setAllStringIn)(content, `url: "https://github.com/ionic-team/capacitor-swift-pm.git",`, `)`, ` from: "${majorCapVersion}.0.0"`);
|
|
58
|
+
await (0, fs_extra_1.writeFile)(packageSwiftPath, content);
|
|
59
|
+
log_1.logger.warn(`${plugin.id} is built for Capacitor ${(0, semver_1.major)(version)}, it might cause issues`);
|
|
60
|
+
}
|
|
61
|
+
}));
|
|
47
62
|
await (0, spm_1.generatePackageFile)(config, validSPMPackages.concat(cordovaPlugins));
|
|
48
63
|
}
|
|
49
64
|
else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capacitor/cli",
|
|
3
|
-
"version": "8.4.0",
|
|
3
|
+
"version": "8.4.1-nightly-20260603T163533.0",
|
|
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)",
|