@capacitor/cli 8.0.0-alpha.1 → 8.0.0-alpha.3
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/android/update.js +1 -1
- package/dist/config.js +14 -3
- package/dist/declarations.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/ios/update.js +1 -1
- package/dist/util/spm.js +1 -1
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/android/update.js
CHANGED
|
@@ -175,7 +175,7 @@ async function handleCordovaPluginsGradle(config, cordovaPlugins) {
|
|
|
175
175
|
var _a, _b, _c;
|
|
176
176
|
const pluginsGradlePath = (0, path_1.join)(config.android.cordovaPluginsDirAbs, 'build.gradle');
|
|
177
177
|
const kotlinNeeded = await kotlinNeededCheck(config, cordovaPlugins);
|
|
178
|
-
const kotlinVersionString = (_c = (_b = (_a = config.app.extConfig.cordova) === null || _a === void 0 ? void 0 : _a.preferences) === null || _b === void 0 ? void 0 : _b.GradlePluginKotlinVersion) !== null && _c !== void 0 ? _c : '
|
|
178
|
+
const kotlinVersionString = (_c = (_b = (_a = config.app.extConfig.cordova) === null || _a === void 0 ? void 0 : _a.preferences) === null || _b === void 0 ? void 0 : _b.GradlePluginKotlinVersion) !== null && _c !== void 0 ? _c : '2.2.20';
|
|
179
179
|
const frameworksArray = [];
|
|
180
180
|
let prefsArray = [];
|
|
181
181
|
const applyArray = [];
|
package/dist/config.js
CHANGED
|
@@ -138,7 +138,7 @@ async function loadExtConfig(rootDir) {
|
|
|
138
138
|
async function loadCLIConfig(rootDir) {
|
|
139
139
|
const assetsDir = 'assets';
|
|
140
140
|
const assetsDirAbs = (0, path_1.join)(rootDir, assetsDir);
|
|
141
|
-
const iosPlatformTemplateArchive = 'ios-
|
|
141
|
+
const iosPlatformTemplateArchive = 'ios-spm-template.tar.gz';
|
|
142
142
|
const iosCordovaPluginsTemplateArchive = 'capacitor-cordova-ios-plugins.tar.gz';
|
|
143
143
|
const androidPlatformTemplateArchive = 'android-template.tar.gz';
|
|
144
144
|
const androidCordovaPluginsTemplateArchive = 'capacitor-cordova-android-plugins.tar.gz';
|
|
@@ -334,8 +334,19 @@ async function determineAndroidStudioPath(os) {
|
|
|
334
334
|
}
|
|
335
335
|
return p;
|
|
336
336
|
}
|
|
337
|
-
case "linux" /* OS.Linux */:
|
|
338
|
-
|
|
337
|
+
case "linux" /* OS.Linux */: {
|
|
338
|
+
const studioExecPath = '/usr/local/android-studio/bin/studio';
|
|
339
|
+
const studioShPath = '/usr/local/android-studio/bin/studio.sh';
|
|
340
|
+
try {
|
|
341
|
+
if (await (0, fs_extra_1.pathExists)(studioExecPath)) {
|
|
342
|
+
return studioExecPath;
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
catch (e) {
|
|
346
|
+
debug(`Error checking for studio executable: %O`, e);
|
|
347
|
+
}
|
|
348
|
+
return studioShPath;
|
|
349
|
+
}
|
|
339
350
|
}
|
|
340
351
|
return '';
|
|
341
352
|
}
|
package/dist/declarations.d.ts
CHANGED
|
@@ -269,8 +269,8 @@ export interface CapacitorConfig {
|
|
|
269
269
|
resolveServiceWorkerRequests?: boolean;
|
|
270
270
|
/**
|
|
271
271
|
* If set to "force", margins will be adjusted for edge to edge regardless of any other settings.
|
|
272
|
-
* If set to "auto",
|
|
273
|
-
* If set to "disable", will not adjust margins at all.
|
|
272
|
+
* If set to "auto", will check for Android 15 and the setting of [windowOptOutEdgeToEdgeEnforcement](https://developer.android.com/reference/android/R.attr#windowOptOutEdgeToEdgeEnforcement) and will adjust margins if on Android 15 and windowOptOutEdgeToEdgeEnforcement is false/missing.
|
|
273
|
+
* If set to "disable", or is missing, will not adjust margins at all.
|
|
274
274
|
* In Capacitor 8, this default will be changed to 'auto'
|
|
275
275
|
*
|
|
276
276
|
* @since 7.1.0
|
package/dist/index.js
CHANGED
|
@@ -179,8 +179,8 @@ function runProgram(config) {
|
|
|
179
179
|
.action((0, cli_1.wrapAction)((0, telemetry_1.telemetryAction)(config, async (platform, { packagemanager }) => {
|
|
180
180
|
const { addCommand } = await Promise.resolve().then(() => tslib_1.__importStar(require('./tasks/add')));
|
|
181
181
|
const configWritable = config;
|
|
182
|
-
if (packagemanager === '
|
|
183
|
-
configWritable.cli.assets.ios.platformTemplateArchive = 'ios-
|
|
182
|
+
if ((packagemanager === null || packagemanager === void 0 ? void 0 : packagemanager.toLowerCase()) === 'CocoaPods'.toLowerCase()) {
|
|
183
|
+
configWritable.cli.assets.ios.platformTemplateArchive = 'ios-pods-template.tar.gz';
|
|
184
184
|
configWritable.cli.assets.ios.platformTemplateArchiveAbs = (0, path_1.resolve)(configWritable.cli.assetsDirAbs, configWritable.cli.assets.ios.platformTemplateArchive);
|
|
185
185
|
}
|
|
186
186
|
await addCommand(configWritable, platform);
|
package/dist/ios/update.js
CHANGED
|
@@ -43,7 +43,7 @@ async function updatePluginFiles(config, plugins, deployment) {
|
|
|
43
43
|
if ((await (0, spm_1.checkPackageManager)(config)) === 'SPM') {
|
|
44
44
|
await generateCordovaPackageFiles(cordovaPlugins, config);
|
|
45
45
|
const validSPMPackages = await (0, spm_1.checkPluginsForPackageSwift)(config, plugins);
|
|
46
|
-
await (0, spm_1.generatePackageFile)(config, validSPMPackages);
|
|
46
|
+
await (0, spm_1.generatePackageFile)(config, validSPMPackages.concat(cordovaPlugins));
|
|
47
47
|
}
|
|
48
48
|
else {
|
|
49
49
|
await generateCordovaPodspecs(cordovaPlugins, config);
|
package/dist/util/spm.js
CHANGED
|
@@ -45,7 +45,7 @@ async function checkPluginsForPackageSwift(config, plugins) {
|
|
|
45
45
|
log_1.logger.info('All plugins have a Package.swift file and will be included in Package.swift');
|
|
46
46
|
}
|
|
47
47
|
else {
|
|
48
|
-
log_1.logger.warn('Some installed packages
|
|
48
|
+
log_1.logger.warn('Some installed packages are not compatable with SPM');
|
|
49
49
|
}
|
|
50
50
|
return packageSwiftPluginList;
|
|
51
51
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capacitor/cli",
|
|
3
|
-
"version": "8.0.0-alpha.
|
|
3
|
+
"version": "8.0.0-alpha.3",
|
|
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)",
|