@capacitor/cli 5.4.1 → 5.4.2-nightly-20231005T150526.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-template.tar.gz +0 -0
- package/dist/config.js +1 -1
- package/dist/declarations.d.ts +1 -38
- package/dist/tasks/init.js +2 -6
- package/package.json +2 -2
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/config.js
CHANGED
|
@@ -365,7 +365,7 @@ async function determineGemfileOrCocoapodPath(rootDir, platformDir, nativeProjec
|
|
|
365
365
|
if (!gemfileText) {
|
|
366
366
|
return 'pod';
|
|
367
367
|
}
|
|
368
|
-
const cocoapodsInGemfile = new RegExp(/gem
|
|
368
|
+
const cocoapodsInGemfile = new RegExp(/gem\s+['"]cocoapods/).test(gemfileText);
|
|
369
369
|
if (cocoapodsInGemfile) {
|
|
370
370
|
return 'bundle exec pod';
|
|
371
371
|
}
|
package/dist/declarations.d.ts
CHANGED
|
@@ -431,7 +431,7 @@ export interface CapacitorConfig {
|
|
|
431
431
|
* Configure the local scheme on Android.
|
|
432
432
|
*
|
|
433
433
|
* @since 1.2.0
|
|
434
|
-
* @default
|
|
434
|
+
* @default https
|
|
435
435
|
*/
|
|
436
436
|
androidScheme?: string;
|
|
437
437
|
/**
|
|
@@ -525,19 +525,6 @@ export interface CapacitorConfig {
|
|
|
525
525
|
*/
|
|
526
526
|
includePlugins?: string[];
|
|
527
527
|
}
|
|
528
|
-
export interface FederatedApp {
|
|
529
|
-
name: string;
|
|
530
|
-
webDir: string;
|
|
531
|
-
liveUpdateConfig?: LiveUpdateConfig;
|
|
532
|
-
}
|
|
533
|
-
export interface LiveUpdateConfig {
|
|
534
|
-
appId: string;
|
|
535
|
-
channel: string;
|
|
536
|
-
autoUpdateMethod: AutoUpdateMethod;
|
|
537
|
-
maxVersions?: number;
|
|
538
|
-
key?: string;
|
|
539
|
-
}
|
|
540
|
-
export type AutoUpdateMethod = 'none' | 'background';
|
|
541
528
|
export interface PluginsConfig {
|
|
542
529
|
/**
|
|
543
530
|
* Plugin configuration by class name.
|
|
@@ -547,22 +534,6 @@ export interface PluginsConfig {
|
|
|
547
534
|
[key: string]: {
|
|
548
535
|
[key: string]: any;
|
|
549
536
|
} | undefined;
|
|
550
|
-
/**
|
|
551
|
-
* FederatedCapacitor plugin configuration
|
|
552
|
-
*
|
|
553
|
-
* @since 5.0.0
|
|
554
|
-
*/
|
|
555
|
-
FederatedCapacitor?: {
|
|
556
|
-
shell: Omit<FederatedApp, 'webDir'>;
|
|
557
|
-
apps: FederatedApp[];
|
|
558
|
-
liveUpdatesKey?: string;
|
|
559
|
-
};
|
|
560
|
-
/**
|
|
561
|
-
* Capacitor Live Updates plugin configuration
|
|
562
|
-
*
|
|
563
|
-
* @since 4.2.0
|
|
564
|
-
*/
|
|
565
|
-
LiveUpdates?: LiveUpdateConfig;
|
|
566
537
|
/**
|
|
567
538
|
* Capacitor Cookies plugin configuration
|
|
568
539
|
*
|
|
@@ -575,14 +546,6 @@ export interface PluginsConfig {
|
|
|
575
546
|
* @default false
|
|
576
547
|
*/
|
|
577
548
|
enabled?: boolean;
|
|
578
|
-
/**
|
|
579
|
-
* Enable `httpOnly` and other insecure cookies to be read and accessed on Android.
|
|
580
|
-
*
|
|
581
|
-
* Note: This can potentially be a security risk and is only intended to be used
|
|
582
|
-
* when your application uses a custom scheme on Android.
|
|
583
|
-
*
|
|
584
|
-
*/
|
|
585
|
-
androidCustomSchemeAllowInsecureAccess?: boolean;
|
|
586
549
|
};
|
|
587
550
|
/**
|
|
588
551
|
* Capacitor Http plugin configuration
|
package/dist/tasks/init.js
CHANGED
|
@@ -15,7 +15,7 @@ const sysconfig_1 = require("../sysconfig");
|
|
|
15
15
|
const node_1 = require("../util/node");
|
|
16
16
|
const term_1 = require("../util/term");
|
|
17
17
|
async function initCommand(config, name, id, webDirFromCLI) {
|
|
18
|
-
var _a, _b
|
|
18
|
+
var _a, _b;
|
|
19
19
|
try {
|
|
20
20
|
if (!(0, term_1.checkInteractive)(name, id)) {
|
|
21
21
|
return;
|
|
@@ -35,15 +35,11 @@ async function initCommand(config, name, id, webDirFromCLI) {
|
|
|
35
35
|
() => (0, common_1.checkAppName)(config, appName),
|
|
36
36
|
() => (0, common_1.checkAppId)(config, appId),
|
|
37
37
|
]);
|
|
38
|
-
const androidScheme = (_c = (_b = config.app.extConfig.server) === null || _b === void 0 ? void 0 : _b.androidScheme) !== null && _c !== void 0 ? _c : 'https';
|
|
39
38
|
const cordova = await (0, cordova_1.getCordovaPreferences)(config);
|
|
40
39
|
await runMergeConfig(config, {
|
|
41
40
|
appId,
|
|
42
41
|
appName,
|
|
43
42
|
webDir,
|
|
44
|
-
server: {
|
|
45
|
-
androidScheme: androidScheme,
|
|
46
|
-
},
|
|
47
43
|
cordova,
|
|
48
44
|
}, isNewConfig && tsInstalled ? 'ts' : 'json');
|
|
49
45
|
}
|
|
@@ -51,7 +47,7 @@ async function initCommand(config, name, id, webDirFromCLI) {
|
|
|
51
47
|
if (!(0, errors_1.isFatal)(e)) {
|
|
52
48
|
log_1.output.write('Usage: npx cap init appName appId\n' +
|
|
53
49
|
'Example: npx cap init "My App" "com.example.myapp"\n\n');
|
|
54
|
-
(0, errors_1.fatal)((
|
|
50
|
+
(0, errors_1.fatal)((_b = e.stack) !== null && _b !== void 0 ? _b : e);
|
|
55
51
|
}
|
|
56
52
|
throw e;
|
|
57
53
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capacitor/cli",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.2-nightly-20231005T150526.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)",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"cross platform"
|
|
28
28
|
],
|
|
29
29
|
"engines": {
|
|
30
|
-
"node": ">=
|
|
30
|
+
"node": ">=18.0.0"
|
|
31
31
|
},
|
|
32
32
|
"main": "dist/index.js",
|
|
33
33
|
"types": "dist/declarations.d.ts",
|