@capacitor/cli 5.0.0-rc.0 → 5.0.0-rc.1

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
@@ -174,6 +174,11 @@ async function migrateCommand(config, noprompt, packagemanager) {
174
174
  androidxMaterialVersion: '1.8.0',
175
175
  androidxExifInterfaceVersion: '1.3.6',
176
176
  androidxCoreKTXVersion: '1.10.0',
177
+ googleMapsPlayServicesVersion: '18.1.0',
178
+ googleMapsUtilsVersion: '3.4.0',
179
+ googleMapsKtxVersion: '3.4.0',
180
+ googleMapsUtilsKtxVersion: '3.4.0',
181
+ kotlinxCoroutinesVersion: '1.6.4',
177
182
  };
178
183
  for (const variable of Object.keys(pluginVariables)) {
179
184
  await updateFile(config, variablesPath, `${variable} = '`, `'`, pluginVariables[variable], true);
@@ -263,15 +268,21 @@ async function installLatestLibs(dependencyManager, runInstall, config) {
263
268
  }
264
269
  }
265
270
  async function writeBreakingChanges() {
266
- const breaking = ['@capacitor/device'];
271
+ const breaking = [
272
+ '@capacitor/camera',
273
+ '@capacitor/device',
274
+ '@capacitor/local-notifications',
275
+ '@capacitor/push-notifications',
276
+ ];
267
277
  const broken = [];
268
278
  for (const lib of breaking) {
269
279
  if (allDependencies[lib]) {
270
280
  broken.push(lib);
271
281
  }
272
282
  }
283
+ // TODO - remove "next" from the url once capacitor 5 is final
273
284
  if (broken.length > 0) {
274
- log_1.logger.info(`IMPORTANT: Review https://capacitorjs.com/docs/updating/5-0#plugins for breaking changes in these plugins that you use: ${broken.join(', ')}.`);
285
+ log_1.logger.info(`IMPORTANT: Review https://capacitorjs.com/docs/next/updating/5-0#plugins for breaking changes in these plugins that you use: ${broken.join(', ')}.`);
275
286
  }
276
287
  }
277
288
  async function getAndroidVariablesAndClasspaths(config) {
@@ -445,7 +456,7 @@ async function movePackageFromManifestToBuildGradle(manifestFilename, buildGradl
445
456
  return;
446
457
  }
447
458
  let buildGradleReplaced = buildGradleText;
448
- buildGradleReplaced = setAllStringIn(buildGradleText, 'android {', ' \n', `namespace "${packageName}"\n`);
459
+ buildGradleReplaced = setAllStringIn(buildGradleText, 'android {', '\n', `\n namespace "${packageName}"`);
449
460
  if (buildGradleText == buildGradleReplaced) {
450
461
  log_1.logger.error(`Unable to update buildGradleText: no changes were detected in Android Manifest file`);
451
462
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/cli",
3
- "version": "5.0.0-rc.0",
3
+ "version": "5.0.0-rc.1",
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)",