@capacitor/cli 6.0.0-alpha.1 → 6.0.0-alpha.2
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/tasks/migrate.js +19 -3
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capacitor/cli",
|
|
3
|
-
"version": "6.0.0-alpha.
|
|
3
|
+
"version": "6.0.0-alpha.2",
|
|
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)",
|