@capacitor/cli 9.0.0-rc.1 → 9.0.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.
Binary file
Binary file
Binary file
@@ -49,8 +49,20 @@ const plugins = [
49
49
  '@capacitor/text-zoom',
50
50
  '@capacitor/toast',
51
51
  ];
52
- const coreVersion = 'next';
53
- const pluginVersion = 'next';
52
+ const versionedPlugins = {
53
+ '@capacitor/background-runner': '^4.0.0',
54
+ '@capacitor/barcode-scanner': '^4.0.0',
55
+ '@capacitor/calendar': '^2.0.0',
56
+ '@capacitor/contacts': '^2.0.0',
57
+ '@capacitor/file-transfer': '^3.0.0',
58
+ '@capacitor/file-viewer': '^3.0.0',
59
+ '@capacitor/health-fitness': '^2.0.0',
60
+ '@capacitor/inappbrowser': '^5.0.0',
61
+ '@capacitor/privacy-screen': '^3.0.0',
62
+ };
63
+ const coreVersion = '9.0.0';
64
+ const coreNPMVersion = (0, semver_1.valid)(coreVersion) ? `^${coreVersion}` : 'next';
65
+ const pluginVersion = '^9.0.0';
54
66
  const gradleVersion = '9.8.2';
55
67
  const iOSVersion = '16';
56
68
  let installFailed = false;
@@ -351,24 +363,25 @@ async function installLatestLibs(dependencyManager, runInstall, config) {
351
363
  if (!pkgJsonFile) {
352
364
  return;
353
365
  }
366
+ const allPlugins = plugins.concat(Object.keys(versionedPlugins));
354
367
  const pkgJson = JSON.parse(pkgJsonFile);
355
368
  for (const devDepKey of Object.keys(pkgJson['devDependencies'] || {})) {
356
369
  if (libs.includes(devDepKey)) {
357
- pkgJson['devDependencies'][devDepKey] = coreVersion;
370
+ pkgJson['devDependencies'][devDepKey] = coreNPMVersion;
358
371
  }
359
- else if (plugins.includes(devDepKey) &&
372
+ else if (allPlugins.includes(devDepKey) &&
360
373
  !(pkgJson['devDependencies'][devDepKey].startsWith('file:') ||
361
374
  pkgJson['devDependencies'][devDepKey].startsWith('workspace:'))) {
362
- pkgJson['devDependencies'][devDepKey] = pluginVersion;
375
+ pkgJson['devDependencies'][devDepKey] = versionedPlugins[devDepKey] ? versionedPlugins[devDepKey] : pluginVersion;
363
376
  }
364
377
  }
365
378
  for (const depKey of Object.keys(pkgJson['dependencies'] || {})) {
366
379
  if (libs.includes(depKey)) {
367
- pkgJson['dependencies'][depKey] = coreVersion;
380
+ pkgJson['dependencies'][depKey] = coreNPMVersion;
368
381
  }
369
- else if (plugins.includes(depKey) &&
382
+ else if (allPlugins.includes(depKey) &&
370
383
  !(pkgJson['dependencies'][depKey].startsWith('file:') || pkgJson['dependencies'][depKey].startsWith('workspace:'))) {
371
- pkgJson['dependencies'][depKey] = pluginVersion;
384
+ pkgJson['dependencies'][depKey] = versionedPlugins[depKey] ? versionedPlugins[depKey] : pluginVersion;
372
385
  }
373
386
  }
374
387
  (0, fs_extra_1.writeFileSync)(pkgJsonPath, JSON.stringify(pkgJson, null, 2), {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/cli",
3
- "version": "9.0.0-rc.1",
3
+ "version": "9.0.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)",