@capacitor/cli 5.5.1-nightly-20231025T150424.0 → 5.5.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.
- 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 +38 -22
- package/dist/tasks/init.js +6 -2
- 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 'cocoapods'/).test(gemfileText);
|
|
369
369
|
if (cocoapodsInGemfile) {
|
|
370
370
|
return 'bundle exec pod';
|
|
371
371
|
}
|
package/dist/declarations.d.ts
CHANGED
|
@@ -76,13 +76,6 @@ export interface CapacitorConfig {
|
|
|
76
76
|
* @since 1.1.0
|
|
77
77
|
*/
|
|
78
78
|
backgroundColor?: string;
|
|
79
|
-
/**
|
|
80
|
-
* Enable zooming within the Capacitor Web View.
|
|
81
|
-
*
|
|
82
|
-
* @default false
|
|
83
|
-
* @since 6.0.0
|
|
84
|
-
*/
|
|
85
|
-
zoomEnabled?: boolean;
|
|
86
79
|
android?: {
|
|
87
80
|
/**
|
|
88
81
|
* Specify a custom path to the native Android project.
|
|
@@ -117,13 +110,6 @@ export interface CapacitorConfig {
|
|
|
117
110
|
* @since 1.1.0
|
|
118
111
|
*/
|
|
119
112
|
backgroundColor?: string;
|
|
120
|
-
/**
|
|
121
|
-
* Enable zooming within the Capacitor Web View for Android.
|
|
122
|
-
*
|
|
123
|
-
* @default false
|
|
124
|
-
* @since 6.0.0
|
|
125
|
-
*/
|
|
126
|
-
zoomEnabled?: boolean;
|
|
127
113
|
/**
|
|
128
114
|
* Enable mixed content in the Capacitor Web View for Android.
|
|
129
115
|
*
|
|
@@ -313,13 +299,6 @@ export interface CapacitorConfig {
|
|
|
313
299
|
* @since 1.1.0
|
|
314
300
|
*/
|
|
315
301
|
backgroundColor?: string;
|
|
316
|
-
/**
|
|
317
|
-
* Enable zooming within the Capacitor Web View for iOS.
|
|
318
|
-
*
|
|
319
|
-
* @default false
|
|
320
|
-
* @since 6.0.0
|
|
321
|
-
*/
|
|
322
|
-
zoomEnabled?: boolean;
|
|
323
302
|
/**
|
|
324
303
|
* Configure the scroll view's content inset adjustment behavior.
|
|
325
304
|
*
|
|
@@ -452,7 +431,7 @@ export interface CapacitorConfig {
|
|
|
452
431
|
* Configure the local scheme on Android.
|
|
453
432
|
*
|
|
454
433
|
* @since 1.2.0
|
|
455
|
-
* @default
|
|
434
|
+
* @default http
|
|
456
435
|
*/
|
|
457
436
|
androidScheme?: string;
|
|
458
437
|
/**
|
|
@@ -546,6 +525,19 @@ export interface CapacitorConfig {
|
|
|
546
525
|
*/
|
|
547
526
|
includePlugins?: string[];
|
|
548
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';
|
|
549
541
|
export interface PluginsConfig {
|
|
550
542
|
/**
|
|
551
543
|
* Plugin configuration by class name.
|
|
@@ -555,6 +547,22 @@ export interface PluginsConfig {
|
|
|
555
547
|
[key: string]: {
|
|
556
548
|
[key: string]: any;
|
|
557
549
|
} | 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;
|
|
558
566
|
/**
|
|
559
567
|
* Capacitor Cookies plugin configuration
|
|
560
568
|
*
|
|
@@ -567,6 +575,14 @@ export interface PluginsConfig {
|
|
|
567
575
|
* @default false
|
|
568
576
|
*/
|
|
569
577
|
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;
|
|
570
586
|
};
|
|
571
587
|
/**
|
|
572
588
|
* 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, _c, _d;
|
|
19
19
|
try {
|
|
20
20
|
if (!(0, term_1.checkInteractive)(name, id)) {
|
|
21
21
|
return;
|
|
@@ -35,11 +35,15 @@ 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';
|
|
38
39
|
const cordova = await (0, cordova_1.getCordovaPreferences)(config);
|
|
39
40
|
await runMergeConfig(config, {
|
|
40
41
|
appId,
|
|
41
42
|
appName,
|
|
42
43
|
webDir,
|
|
44
|
+
server: {
|
|
45
|
+
androidScheme: androidScheme,
|
|
46
|
+
},
|
|
43
47
|
cordova,
|
|
44
48
|
}, isNewConfig && tsInstalled ? 'ts' : 'json');
|
|
45
49
|
}
|
|
@@ -47,7 +51,7 @@ async function initCommand(config, name, id, webDirFromCLI) {
|
|
|
47
51
|
if (!(0, errors_1.isFatal)(e)) {
|
|
48
52
|
log_1.output.write('Usage: npx cap init appName appId\n' +
|
|
49
53
|
'Example: npx cap init "My App" "com.example.myapp"\n\n');
|
|
50
|
-
(0, errors_1.fatal)((
|
|
54
|
+
(0, errors_1.fatal)((_d = e.stack) !== null && _d !== void 0 ? _d : e);
|
|
51
55
|
}
|
|
52
56
|
throw e;
|
|
53
57
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capacitor/cli",
|
|
3
|
-
"version": "5.5.1
|
|
3
|
+
"version": "5.5.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)",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"cross platform"
|
|
28
28
|
],
|
|
29
29
|
"engines": {
|
|
30
|
-
"node": ">=
|
|
30
|
+
"node": ">=16.0.0"
|
|
31
31
|
},
|
|
32
32
|
"main": "dist/index.js",
|
|
33
33
|
"types": "dist/declarations.d.ts",
|