@capacitor-plus/cli 8.3.3 → 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
package/dist/ios/build.js CHANGED
@@ -44,6 +44,9 @@ async function buildiOS(config, buildOptions) {
44
44
  if (buildOptions.xcodeSigningType == 'manual') {
45
45
  buildArgs.push(`PROVISIONING_PROFILE_SPECIFIER=${buildOptions.xcodeProvisioningProfile}`);
46
46
  }
47
+ else {
48
+ buildArgs.push('-allowProvisioningUpdates');
49
+ }
47
50
  await (0, common_1.runTask)('Building xArchive', async () => (0, subprocess_1.runCommand)('xcodebuild', buildArgs, {
48
51
  cwd: config.ios.nativeProjectDirAbs,
49
52
  }));
@@ -112,6 +112,32 @@ function buildResourcesText(resources) {
112
112
  ]`
113
113
  : '';
114
114
  }
115
+ async function buildDependencyTexts(p, config) {
116
+ let allDependencies = (0, plugin_1.getPlatformElement)(p, platform, 'dependency');
117
+ if (p.xml['dependency']) {
118
+ allDependencies = allDependencies.concat(p.xml['dependency']);
119
+ }
120
+ let packageText = '';
121
+ let productText = '';
122
+ await Promise.all(allDependencies.map(async (dep) => {
123
+ let plugin = dep.$.id;
124
+ if (plugin.includes('@') && plugin.indexOf('@') !== 0) {
125
+ [plugin] = plugin.split('@');
126
+ }
127
+ const depPlugin = await (0, plugin_1.resolvePlugin)(config, plugin);
128
+ if (depPlugin) {
129
+ const headerFiles = (0, plugin_1.getPlatformElement)(depPlugin, platform, 'header-file');
130
+ const resources = (0, plugin_1.getPlatformElement)(depPlugin, platform, 'resource-file');
131
+ const sourceFiles = (0, plugin_1.getPlatformElement)(depPlugin, platform, 'source-file');
132
+ if (sourceFiles.length === 0 && headerFiles.length === 0 && resources.length === 0) {
133
+ return;
134
+ }
135
+ packageText += `,\n .package(name: "${depPlugin.name}", path: "../${depPlugin.name}")`;
136
+ productText += `,\n .product(name: "${depPlugin.name}", package: "${depPlugin.name}")`;
137
+ }
138
+ }));
139
+ return { packageText, productText };
140
+ }
115
141
  function buildCSettingsText(p, sourceFiles) {
116
142
  var _a;
117
143
  const pluginId = p.id;
@@ -186,6 +212,7 @@ async function writeGeneratedPackageSwift(p, config, iosPlatformVersion) {
186
212
  ${requiredSystemFrameworks.map((f) => ` .linkedFramework("${f.$.src.replace('.framework', '')}")`).join(',\n')}
187
213
  ]`
188
214
  : '';
215
+ const { packageText, productText } = await buildDependencyTexts(p, config);
189
216
  const content = `// swift-tools-version: 5.9
190
217
 
191
218
  import PackageDescription
@@ -200,13 +227,13 @@ let package = Package(
200
227
  )
201
228
  ],
202
229
  dependencies: [
203
- .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "${iosPlatformVersion}")
230
+ .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "${iosPlatformVersion}")${packageText}
204
231
  ],
205
232
  targets: [
206
233
  .target(
207
234
  name: "${p.name}",
208
235
  dependencies: [
209
- .product(name: "Cordova", package: "capacitor-swift-pm")${binaryDepsText}
236
+ .product(name: "Cordova", package: "capacitor-swift-pm")${binaryDepsText}${productText}
210
237
  ],
211
238
  path: "."${resourcesText}${headersText}${cSettingsText}${linkerSettingsText}
212
239
  )${binaryTargetsText}
@@ -194,13 +194,13 @@ async function copySSLCert(sslCertPaths, rootDir, targetDir) {
194
194
  if (!(await (0, fs_extra_1.pathExists)(certAbsFromPath))) {
195
195
  log_1.logger.warn(`Cannot copy SSL Certificate file from ${colors_1.default.strong(certAbsFromPath)}\n` +
196
196
  `SSL Certificate does not exist at specified path.`);
197
- return;
197
+ continue;
198
198
  }
199
199
  validCertPaths.push(certAbsFromPath);
200
200
  }
201
201
  const certsDirAbsToPath = (0, path_1.join)(targetDir, 'certs');
202
202
  const certsDirRelToDir = (0, path_1.relative)(rootDir, targetDir);
203
- await (0, common_1.runTask)(`Copying SSL Certificates from to ${certsDirRelToDir}`, async () => {
203
+ await (0, common_1.runTask)(`Copying SSL Certificates to ${certsDirRelToDir}`, async () => {
204
204
  const promises = [];
205
205
  for (const certPath of validCertPaths) {
206
206
  promises.push((0, fs_extra_1.copy)(certPath, (0, path_1.join)(certsDirAbsToPath, (0, path_1.basename)(certPath))));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor-plus/cli",
3
- "version": "8.3.3",
3
+ "version": "8.3.5",
4
4
  "description": "Capacitor+: Enhanced Capacitor with automated upstream sync - Cross-platform apps with JavaScript and the web",
5
5
  "homepage": "https://capgo.app/docs/plugins/capacitor-plus/",
6
6
  "author": "Capgo Team <support@capgo.app> (https://capgo.app)",