@capacitor/cli 5.5.1 → 5.5.2-nightly-20231030T150510.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.
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-template.tar.gz';
140
+ const iosPlatformTemplateArchive = 'ios-pods-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 'cocoapods'/).test(gemfileText);
368
+ const cocoapodsInGemfile = new RegExp(/gem\s+['"]cocoapods/).test(gemfileText);
369
369
  if (cocoapodsInGemfile) {
370
370
  return 'bundle exec pod';
371
371
  }
@@ -76,6 +76,13 @@ 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;
79
86
  android?: {
80
87
  /**
81
88
  * Specify a custom path to the native Android project.
@@ -110,6 +117,13 @@ export interface CapacitorConfig {
110
117
  * @since 1.1.0
111
118
  */
112
119
  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;
113
127
  /**
114
128
  * Enable mixed content in the Capacitor Web View for Android.
115
129
  *
@@ -299,6 +313,13 @@ export interface CapacitorConfig {
299
313
  * @since 1.1.0
300
314
  */
301
315
  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;
302
323
  /**
303
324
  * Configure the scroll view's content inset adjustment behavior.
304
325
  *
@@ -431,7 +452,7 @@ export interface CapacitorConfig {
431
452
  * Configure the local scheme on Android.
432
453
  *
433
454
  * @since 1.2.0
434
- * @default http
455
+ * @default https
435
456
  */
436
457
  androidScheme?: string;
437
458
  /**
@@ -525,19 +546,6 @@ export interface CapacitorConfig {
525
546
  */
526
547
  includePlugins?: string[];
527
548
  }
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
549
  export interface PluginsConfig {
542
550
  /**
543
551
  * Plugin configuration by class name.
@@ -547,22 +555,6 @@ export interface PluginsConfig {
547
555
  [key: string]: {
548
556
  [key: string]: any;
549
557
  } | 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
558
  /**
567
559
  * Capacitor Cookies plugin configuration
568
560
  *
@@ -575,14 +567,6 @@ export interface PluginsConfig {
575
567
  * @default false
576
568
  */
577
569
  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
570
  };
587
571
  /**
588
572
  * Capacitor Http plugin configuration
@@ -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, _c, _d;
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)((_d = e.stack) !== null && _d !== void 0 ? _d : e);
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.5.1",
3
+ "version": "5.5.2-nightly-20231030T150510.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": ">=16.0.0"
30
+ "node": ">=18.0.0"
31
31
  },
32
32
  "main": "dist/index.js",
33
33
  "types": "dist/declarations.d.ts",
@@ -46,13 +46,14 @@
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",
49
50
  "@ionic/utils-subprocess": "^2.1.11",
50
51
  "@ionic/utils-terminal": "^2.3.3",
51
52
  "commander": "^9.3.0",
52
53
  "debug": "^4.3.4",
53
54
  "env-paths": "^2.2.0",
54
55
  "kleur": "^4.1.4",
55
- "native-run": "^1.7.3",
56
+ "native-run": "^2.0.0",
56
57
  "open": "^8.4.0",
57
58
  "plist": "^3.0.5",
58
59
  "prompts": "^2.4.2",
Binary file