@capacitor/cli 6.0.0-alpha.1 → 6.0.0-beta.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/declarations.d.ts +5 -0
- package/dist/tasks/migrate.js +19 -3
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/declarations.d.ts
CHANGED
|
@@ -451,6 +451,11 @@ export interface CapacitorConfig {
|
|
|
451
451
|
/**
|
|
452
452
|
* Configure the local scheme on Android.
|
|
453
453
|
*
|
|
454
|
+
* 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
|
|
455
|
+
* 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
|
|
456
|
+
* will continue to work long term as allowing non-standard schemes to modify query parameters and url fragments is only allowed for compatibility reasons.
|
|
457
|
+
* https://ionic.io/blog/capacitor-android-customscheme-issue-with-chrome-117
|
|
458
|
+
*
|
|
454
459
|
* @since 1.2.0
|
|
455
460
|
* @default https
|
|
456
461
|
*/
|
package/dist/tasks/migrate.js
CHANGED
|
@@ -133,6 +133,22 @@ async function migrateCommand(config, noprompt, packagemanager) {
|
|
|
133
133
|
await (0, common_2.runTask)(`Migrating build.gradle file.`, () => {
|
|
134
134
|
return updateBuildGradle((0, path_1.join)(config.android.platformDirAbs, 'build.gradle'), variablesAndClasspaths);
|
|
135
135
|
});
|
|
136
|
+
// Replace deprecated compileSdkVersion
|
|
137
|
+
await (0, common_2.runTask)('Replacing deprecated compileSdkVersion from build.gradle', () => {
|
|
138
|
+
return (async () => {
|
|
139
|
+
const buildGradleFilename = (0, path_1.join)(config.android.platformDirAbs, 'app', 'build.gradle');
|
|
140
|
+
const buildGradleText = readFile(buildGradleFilename);
|
|
141
|
+
if (!buildGradleText) {
|
|
142
|
+
log_1.logger.error(`Could not read ${buildGradleFilename}. Check its permissions and if it exists.`);
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
const compileSdk = `compileSdkVersion rootProject.ext.compileSdkVersion`;
|
|
146
|
+
if (buildGradleText.includes(compileSdk)) {
|
|
147
|
+
const buildGradleReplaced = buildGradleText.replace(compileSdk, `compileSdk rootProject.ext.compileSdkVersion`);
|
|
148
|
+
(0, utils_fs_1.writeFileSync)(buildGradleFilename, buildGradleReplaced, 'utf-8');
|
|
149
|
+
}
|
|
150
|
+
})();
|
|
151
|
+
});
|
|
136
152
|
// Update gradle-wrapper.properties
|
|
137
153
|
await (0, common_2.runTask)(`Migrating gradle-wrapper.properties by updating gradle version to ${gradleVersion}.`, () => {
|
|
138
154
|
return updateGradleWrapper((0, path_1.join)(config.android.platformDirAbs, 'gradle', 'wrapper', 'gradle-wrapper.properties'));
|
|
@@ -163,7 +179,7 @@ async function migrateCommand(config, noprompt, packagemanager) {
|
|
|
163
179
|
firebaseMessagingVersion: '23.2.1',
|
|
164
180
|
playServicesLocationVersion: '21.0.1',
|
|
165
181
|
androidxBrowserVersion: '1.5.0',
|
|
166
|
-
androidxMaterialVersion: '1.
|
|
182
|
+
androidxMaterialVersion: '1.10.0',
|
|
167
183
|
androidxExifInterfaceVersion: '1.3.6',
|
|
168
184
|
androidxCoreKTXVersion: '1.12.0',
|
|
169
185
|
googleMapsPlayServicesVersion: '18.1.0',
|
|
@@ -412,8 +428,8 @@ async function movePackageFromManifestToBuildGradle(manifestFilename, buildGradl
|
|
|
412
428
|
}
|
|
413
429
|
async function updateBuildGradle(filename, variablesAndClasspaths) {
|
|
414
430
|
// In build.gradle add dependencies:
|
|
415
|
-
// classpath 'com.android.tools.build:gradle:8.
|
|
416
|
-
// classpath 'com.google.gms:google-services:4.
|
|
431
|
+
// classpath 'com.android.tools.build:gradle:8.2.0-rc02'
|
|
432
|
+
// classpath 'com.google.gms:google-services:4.4.0'
|
|
417
433
|
const txt = readFile(filename);
|
|
418
434
|
if (!txt) {
|
|
419
435
|
return;
|
package/package.json
CHANGED