@capacitor/cli 5.5.2-nightly-20231107T150442.0 → 5.6.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 +2 -2
- package/dist/declarations.d.ts +43 -22
- package/dist/tasks/init.js +6 -2
- package/package.json +2 -3
- package/assets/ios-pods-template.tar.gz +0 -0
- package/assets/ios-spm-template.tar.gz +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/config.js
CHANGED
|
@@ -137,7 +137,7 @@ async function loadExtConfig(rootDir) {
|
|
|
137
137
|
async function loadCLIConfig(rootDir) {
|
|
138
138
|
const assetsDir = 'assets';
|
|
139
139
|
const assetsDirAbs = (0, path_1.join)(rootDir, assetsDir);
|
|
140
|
-
const iosPlatformTemplateArchive = 'ios-
|
|
140
|
+
const iosPlatformTemplateArchive = 'ios-template.tar.gz';
|
|
141
141
|
const iosCordovaPluginsTemplateArchive = 'capacitor-cordova-ios-plugins.tar.gz';
|
|
142
142
|
const androidPlatformTemplateArchive = 'android-template.tar.gz';
|
|
143
143
|
const androidCordovaPluginsTemplateArchive = 'capacitor-cordova-android-plugins.tar.gz';
|
|
@@ -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
|
*
|
|
@@ -451,8 +430,13 @@ export interface CapacitorConfig {
|
|
|
451
430
|
/**
|
|
452
431
|
* Configure the local scheme on Android.
|
|
453
432
|
*
|
|
433
|
+
* 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
|
|
434
|
+
* 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
|
|
435
|
+
* will continue to work long term as allowing non-standard schemes to modify query parameters and url fragments is only allowed for compatibility reasons.
|
|
436
|
+
* https://ionic.io/blog/capacitor-android-customscheme-issue-with-chrome-117
|
|
437
|
+
*
|
|
454
438
|
* @since 1.2.0
|
|
455
|
-
* @default
|
|
439
|
+
* @default http
|
|
456
440
|
*/
|
|
457
441
|
androidScheme?: string;
|
|
458
442
|
/**
|
|
@@ -546,6 +530,19 @@ export interface CapacitorConfig {
|
|
|
546
530
|
*/
|
|
547
531
|
includePlugins?: string[];
|
|
548
532
|
}
|
|
533
|
+
export interface FederatedApp {
|
|
534
|
+
name: string;
|
|
535
|
+
webDir: string;
|
|
536
|
+
liveUpdateConfig?: LiveUpdateConfig;
|
|
537
|
+
}
|
|
538
|
+
export interface LiveUpdateConfig {
|
|
539
|
+
appId: string;
|
|
540
|
+
channel: string;
|
|
541
|
+
autoUpdateMethod: AutoUpdateMethod;
|
|
542
|
+
maxVersions?: number;
|
|
543
|
+
key?: string;
|
|
544
|
+
}
|
|
545
|
+
export type AutoUpdateMethod = 'none' | 'background';
|
|
549
546
|
export interface PluginsConfig {
|
|
550
547
|
/**
|
|
551
548
|
* Plugin configuration by class name.
|
|
@@ -555,6 +552,22 @@ export interface PluginsConfig {
|
|
|
555
552
|
[key: string]: {
|
|
556
553
|
[key: string]: any;
|
|
557
554
|
} | undefined;
|
|
555
|
+
/**
|
|
556
|
+
* FederatedCapacitor plugin configuration
|
|
557
|
+
*
|
|
558
|
+
* @since 5.0.0
|
|
559
|
+
*/
|
|
560
|
+
FederatedCapacitor?: {
|
|
561
|
+
shell: Omit<FederatedApp, 'webDir'>;
|
|
562
|
+
apps: FederatedApp[];
|
|
563
|
+
liveUpdatesKey?: string;
|
|
564
|
+
};
|
|
565
|
+
/**
|
|
566
|
+
* Capacitor Live Updates plugin configuration
|
|
567
|
+
*
|
|
568
|
+
* @since 4.2.0
|
|
569
|
+
*/
|
|
570
|
+
LiveUpdates?: LiveUpdateConfig;
|
|
558
571
|
/**
|
|
559
572
|
* Capacitor Cookies plugin configuration
|
|
560
573
|
*
|
|
@@ -567,6 +580,14 @@ export interface PluginsConfig {
|
|
|
567
580
|
* @default false
|
|
568
581
|
*/
|
|
569
582
|
enabled?: boolean;
|
|
583
|
+
/**
|
|
584
|
+
* Enable `httpOnly` and other insecure cookies to be read and accessed on Android.
|
|
585
|
+
*
|
|
586
|
+
* Note: This can potentially be a security risk and is only intended to be used
|
|
587
|
+
* when your application uses a custom scheme on Android.
|
|
588
|
+
*
|
|
589
|
+
*/
|
|
590
|
+
androidCustomSchemeAllowInsecureAccess?: boolean;
|
|
570
591
|
};
|
|
571
592
|
/**
|
|
572
593
|
* 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.
|
|
3
|
+
"version": "5.6.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": ">=16.0.0"
|
|
31
31
|
},
|
|
32
32
|
"main": "dist/index.js",
|
|
33
33
|
"types": "dist/declarations.d.ts",
|
|
@@ -46,7 +46,6 @@
|
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@ionic/cli-framework-output": "^2.2.5",
|
|
48
48
|
"@ionic/utils-fs": "^3.1.6",
|
|
49
|
-
"@ionic/utils-process": "^2.1.11",
|
|
50
49
|
"@ionic/utils-subprocess": "^2.1.11",
|
|
51
50
|
"@ionic/utils-terminal": "^2.3.3",
|
|
52
51
|
"commander": "^9.3.0",
|
|
Binary file
|
|
Binary file
|