@capacitor/cli 8.3.5-nightly-20260601T165419.0 → 8.3.5

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.
Binary file
Binary file
Binary file
@@ -511,15 +511,6 @@ export interface CapacitorConfig {
511
511
  packageTraits?: {
512
512
  [pluginId: string]: string[];
513
513
  };
514
- /**
515
- * Define options to apply to the package.
516
- * The key is the plugin ID (e.g. `@capacitor-community/device`)
517
- *
518
- * @since 8.4.0
519
- */
520
- packageOptions?: {
521
- [pluginId: string]: PackageOptions;
522
- };
523
514
  };
524
515
  };
525
516
  };
@@ -555,7 +546,7 @@ export interface CapacitorConfig {
555
546
  * Configure the local scheme on Android.
556
547
  *
557
548
  * Custom schemes on Android are unable to change the URL path as of Webview 117. Changing this value from anything other than `http` or `https` can result in your
558
- * application unable to resolve routing. If you must change this for some reason, consider using a hash-based url strategy, but there are no guarantees that this
549
+ * application unable to resolve routing. If you must change this for some reason, consider using a hash-based url strategy, but there are no guarentees that this
559
550
  * will continue to work long term as allowing non-standard schemes to modify query parameters and url fragments is only allowed for compatibility reasons.
560
551
  * https://ionic.io/blog/capacitor-android-customscheme-issue-with-chrome-117
561
552
  *
@@ -741,17 +732,3 @@ export interface PluginsConfig {
741
732
  animation?: 'FADE' | 'NONE';
742
733
  };
743
734
  }
744
- export interface PackageOptions {
745
- /**
746
- * Create a symlink to the plugin folder instead of pointing to the plugin path.
747
- * Useful when plugin names conflict.
748
- */
749
- symlink?: boolean;
750
- /**
751
- * Useful to avoid target name conflicts in dependencies
752
- * [see](https://docs.swift.org/swiftpm/documentation/packagemanagerdocs/modulealiasing/)
753
- */
754
- moduleAliases?: {
755
- [target: string]: string;
756
- };
757
- }
@@ -574,9 +574,6 @@ async function copyPluginsNativeFiles(config, cordovaPlugins) {
574
574
  }
575
575
  async function removePluginsNativeFiles(config) {
576
576
  await (0, fs_extra_1.remove)(config.ios.cordovaPluginsDirAbs);
577
- if ((await config.ios.packageManager) === 'SPM') {
578
- await (0, fs_extra_1.remove)((0, path_1.join)(config.ios.nativeProjectDirAbs, 'CapApp-SPM', 'symlinks'));
579
- }
580
577
  await (0, template_1.extractTemplate)(config.cli.assets.ios.cordovaPluginsTemplateArchiveAbs, config.ios.cordovaPluginsDirAbs);
581
578
  }
582
579
  function filterResources(plugin) {
package/dist/tasks/run.js CHANGED
@@ -85,9 +85,6 @@ async function runCommand(config, selectedPlatformName, options) {
85
85
  }
86
86
  }
87
87
  catch (e) {
88
- if (options.liveReload) {
89
- await livereload_1.CapLiveReloadHelper.revertCapConfigForLiveReload();
90
- }
91
88
  if (!(0, errors_1.isFatal)(e)) {
92
89
  (0, errors_1.fatal)((_c = e.stack) !== null && _c !== void 0 ? _c : e);
93
90
  }
package/dist/telemetry.js CHANGED
@@ -1,10 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getIOSPackageManager = exports.sendMetric = exports.telemetryAction = void 0;
3
+ exports.sendMetric = exports.telemetryAction = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const commander_1 = require("commander");
6
6
  const debug_1 = tslib_1.__importDefault(require("debug"));
7
- const fs_extra_1 = require("fs-extra");
8
7
  const colors_1 = tslib_1.__importDefault(require("./colors"));
9
8
  const ipc_1 = require("./ipc");
10
9
  const log_1 = require("./log");
@@ -52,10 +51,8 @@ function telemetryAction(config, action) {
52
51
  error: error ? (error.message ? error.message : String(error)) : null,
53
52
  node_version: process.version,
54
53
  os: config.cli.os,
55
- ios_package_manager: await getIOSPackageManager(config),
56
54
  ...Object.fromEntries(versions),
57
55
  };
58
- debug('metric payload: %O', data);
59
56
  if ((0, term_1.isInteractive)()) {
60
57
  let sysconfig = await (0, sysconfig_1.readConfig)();
61
58
  if (!error && typeof sysconfig.telemetry === 'undefined') {
@@ -91,24 +88,6 @@ async function sendMetric(sysconfig, name, data) {
91
88
  }
92
89
  }
93
90
  exports.sendMetric = sendMetric;
94
- /**
95
- * Resolve the iOS dependency manager for telemetry. Returns 'unknown' for
96
- * non-iOS projects or when detection throws, so callers never have to handle
97
- * errors from this signal.
98
- */
99
- async function getIOSPackageManager(config) {
100
- try {
101
- if (!(await (0, fs_extra_1.pathExists)(config.ios.platformDirAbs))) {
102
- return 'unknown';
103
- }
104
- return await config.ios.packageManager;
105
- }
106
- catch (e) {
107
- debug('Could not resolve iOS package manager for telemetry: %O', e);
108
- return 'unknown';
109
- }
110
- }
111
- exports.getIOSPackageManager = getIOSPackageManager;
112
91
  /**
113
92
  * Get a unique anonymous identifier for this app.
114
93
  */
package/dist/util/spm.js CHANGED
@@ -84,12 +84,11 @@ async function removeCocoapodsFiles(config) {
84
84
  }
85
85
  exports.removeCocoapodsFiles = removeCocoapodsFiles;
86
86
  async function generatePackageText(config, plugins) {
87
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
87
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
88
88
  const iosPlatformVersion = await (0, common_1.getCapacitorPackageVersion)(config, config.ios.name);
89
89
  const iosVersion = (0, common_2.getMajoriOSVersion)(config);
90
90
  const packageTraits = (_d = (_c = (_b = (_a = config.app.extConfig.experimental) === null || _a === void 0 ? void 0 : _a.ios) === null || _b === void 0 ? void 0 : _b.spm) === null || _c === void 0 ? void 0 : _c.packageTraits) !== null && _d !== void 0 ? _d : {};
91
- const packageOptions = (_h = (_g = (_f = (_e = config.app.extConfig.experimental) === null || _e === void 0 ? void 0 : _e.ios) === null || _f === void 0 ? void 0 : _f.spm) === null || _g === void 0 ? void 0 : _g.packageOptions) !== null && _h !== void 0 ? _h : {};
92
- const swiftToolsVersion = (_m = (_l = (_k = (_j = config.app.extConfig.experimental) === null || _j === void 0 ? void 0 : _j.ios) === null || _k === void 0 ? void 0 : _k.spm) === null || _l === void 0 ? void 0 : _l.swiftToolsVersion) !== null && _m !== void 0 ? _m : '5.9';
91
+ const swiftToolsVersion = (_h = (_g = (_f = (_e = config.app.extConfig.experimental) === null || _e === void 0 ? void 0 : _e.ios) === null || _f === void 0 ? void 0 : _f.spm) === null || _g === void 0 ? void 0 : _g.swiftToolsVersion) !== null && _h !== void 0 ? _h : '5.9';
93
92
  let packageSwiftText = `// swift-tools-version: ${swiftToolsVersion}
94
93
  import PackageDescription
95
94
 
@@ -107,7 +106,7 @@ let package = Package(
107
106
  for (const plugin of plugins) {
108
107
  if ((0, plugin_1.getPluginType)(plugin, config.ios.name) === 1 /* PluginType.Cordova */) {
109
108
  const platformTag = (0, plugin_1.getPluginPlatform)(plugin, config.ios.name);
110
- if ((_o = platformTag.$) === null || _o === void 0 ? void 0 : _o.package) {
109
+ if ((_j = platformTag.$) === null || _j === void 0 ? void 0 : _j.package) {
111
110
  const relPath = (0, path_1.relative)(config.ios.nativeXcodeProjDirAbs, plugin.rootPath);
112
111
  packageSwiftText += `,\n .package(name: "${plugin.id}", path: "${relPath}")`;
113
112
  }
@@ -121,13 +120,7 @@ let package = Package(
121
120
  }
122
121
  }
123
122
  else {
124
- const options = packageOptions[plugin.id];
125
- const symlink = options === null || options === void 0 ? void 0 : options.symlink;
126
- const symlinkFolder = (0, path_1.join)('symlinks', plugin.name);
127
- const relPath = symlink ? symlinkFolder : (0, path_1.relative)(config.ios.nativeXcodeProjDirAbs, plugin.rootPath);
128
- if (symlink) {
129
- await (0, fs_extra_1.ensureSymlink)(plugin.rootPath, (0, path_1.resolve)(config.ios.nativeProjectDirAbs, 'CapApp-SPM', symlinkFolder));
130
- }
123
+ const relPath = (0, path_1.relative)(config.ios.nativeXcodeProjDirAbs, plugin.rootPath);
131
124
  const traits = packageTraits[plugin.id];
132
125
  const traitsSuffix = (traits === null || traits === void 0 ? void 0 : traits.length)
133
126
  ? `, traits: [${traits
@@ -137,7 +130,7 @@ let package = Package(
137
130
  })
138
131
  .join(', ')}]`
139
132
  : '';
140
- packageSwiftText += `,\n .package(name: "${(_p = plugin.ios) === null || _p === void 0 ? void 0 : _p.name}", path: "${relPath}"${traitsSuffix})`;
133
+ packageSwiftText += `,\n .package(name: "${(_k = plugin.ios) === null || _k === void 0 ? void 0 : _k.name}", path: "${relPath}"${traitsSuffix})`;
141
134
  }
142
135
  }
143
136
  packageSwiftText += `
@@ -149,18 +142,10 @@ let package = Package(
149
142
  .product(name: "Capacitor", package: "capacitor-swift-pm"),
150
143
  .product(name: "Cordova", package: "capacitor-swift-pm")`;
151
144
  for (const plugin of plugins) {
152
- const aliases = Object.entries((_r = (_q = packageOptions[plugin.id]) === null || _q === void 0 ? void 0 : _q.moduleAliases) !== null && _r !== void 0 ? _r : {});
153
- const aliasText = (aliases === null || aliases === void 0 ? void 0 : aliases.length)
154
- ? `, moduleAliases: [${aliases
155
- .map(([target, replacement]) => {
156
- return `"${target}": "${replacement}"`;
157
- })
158
- .join(', ')}]`
159
- : '';
160
- let pluginText = `,\n .product(name: "${(_s = plugin.ios) === null || _s === void 0 ? void 0 : _s.name}", package: "${(_t = plugin.ios) === null || _t === void 0 ? void 0 : _t.name}"${aliasText})`;
145
+ let pluginText = `,\n .product(name: "${(_l = plugin.ios) === null || _l === void 0 ? void 0 : _l.name}", package: "${(_m = plugin.ios) === null || _m === void 0 ? void 0 : _m.name}")`;
161
146
  if ((0, plugin_1.getPluginType)(plugin, config.ios.name) === 1 /* PluginType.Cordova */) {
162
147
  const platformTag = (0, plugin_1.getPluginPlatform)(plugin, config.ios.name);
163
- if ((_u = platformTag.$) === null || _u === void 0 ? void 0 : _u.package) {
148
+ if ((_o = platformTag.$) === null || _o === void 0 ? void 0 : _o.package) {
164
149
  pluginText = `,\n .product(name: "${plugin.id}", package: "${plugin.id}")`;
165
150
  }
166
151
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/cli",
3
- "version": "8.3.5-nightly-20260601T165419.0",
3
+ "version": "8.3.5",
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)",