@capacitor-plus/cli 8.0.0-beta.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/LICENSE +21 -0
- package/README.md +84 -0
- 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/bin/capacitor +18 -0
- package/dist/android/add.js +52 -0
- package/dist/android/build.js +104 -0
- package/dist/android/common.js +94 -0
- package/dist/android/doctor.js +160 -0
- package/dist/android/open.js +28 -0
- package/dist/android/run.js +42 -0
- package/dist/android/update.js +317 -0
- package/dist/colors.js +26 -0
- package/dist/common.js +435 -0
- package/dist/config.js +404 -0
- package/dist/cordova.js +801 -0
- package/dist/declarations.d.ts +674 -0
- package/dist/declarations.js +2 -0
- package/dist/definitions.js +13 -0
- package/dist/errors.js +27 -0
- package/dist/framework-configs.js +109 -0
- package/dist/index.js +253 -0
- package/dist/ios/add.js +13 -0
- package/dist/ios/build.js +96 -0
- package/dist/ios/common.js +105 -0
- package/dist/ios/doctor.js +45 -0
- package/dist/ios/open.js +17 -0
- package/dist/ios/run.js +51 -0
- package/dist/ios/update.js +449 -0
- package/dist/ipc.js +61 -0
- package/dist/log.js +39 -0
- package/dist/plugin.js +182 -0
- package/dist/sysconfig.js +35 -0
- package/dist/tasks/add.js +115 -0
- package/dist/tasks/build.js +63 -0
- package/dist/tasks/config.js +28 -0
- package/dist/tasks/copy.js +210 -0
- package/dist/tasks/create.js +10 -0
- package/dist/tasks/doctor.js +68 -0
- package/dist/tasks/init.js +138 -0
- package/dist/tasks/list.js +50 -0
- package/dist/tasks/migrate-spm.js +19 -0
- package/dist/tasks/migrate.js +518 -0
- package/dist/tasks/new-plugin.js +10 -0
- package/dist/tasks/open.js +62 -0
- package/dist/tasks/run.js +118 -0
- package/dist/tasks/serve.js +11 -0
- package/dist/tasks/sourcemaps.js +39 -0
- package/dist/tasks/sync.js +55 -0
- package/dist/tasks/telemetry.js +41 -0
- package/dist/tasks/update.js +74 -0
- package/dist/telemetry.js +119 -0
- package/dist/util/cli.js +25 -0
- package/dist/util/emoji.js +13 -0
- package/dist/util/fn.js +13 -0
- package/dist/util/fs.js +43 -0
- package/dist/util/iosplugin.js +66 -0
- package/dist/util/js.js +21 -0
- package/dist/util/livereload.js +148 -0
- package/dist/util/monorepotools.js +109 -0
- package/dist/util/native-run.js +63 -0
- package/dist/util/node.js +54 -0
- package/dist/util/promise.js +35 -0
- package/dist/util/spm.js +187 -0
- package/dist/util/subprocess.js +37 -0
- package/dist/util/template.js +11 -0
- package/dist/util/term.js +30 -0
- package/dist/util/uuid.js +11 -0
- package/dist/util/xml.js +55 -0
- package/package.json +89 -0
|
@@ -0,0 +1,674 @@
|
|
|
1
|
+
export interface CapacitorConfig {
|
|
2
|
+
/**
|
|
3
|
+
* The unique identifier of your packaged app.
|
|
4
|
+
*
|
|
5
|
+
* This is also known as the Bundle ID in iOS and the Application ID in
|
|
6
|
+
* Android. It must be in reverse domain name notation, generally
|
|
7
|
+
* representing a domain name that you or your company owns.
|
|
8
|
+
*
|
|
9
|
+
* @since 1.0.0
|
|
10
|
+
*/
|
|
11
|
+
appId?: string;
|
|
12
|
+
/**
|
|
13
|
+
* The human-friendly name of your app.
|
|
14
|
+
*
|
|
15
|
+
* This should be what you'd see in the App Store, but can be changed after
|
|
16
|
+
* within each native platform after it is generated.
|
|
17
|
+
*
|
|
18
|
+
* @since 1.0.0
|
|
19
|
+
*/
|
|
20
|
+
appName?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The directory of your compiled web assets.
|
|
23
|
+
*
|
|
24
|
+
* This directory should contain the final `index.html` of your app.
|
|
25
|
+
*
|
|
26
|
+
* @since 1.0.0
|
|
27
|
+
*/
|
|
28
|
+
webDir?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The build configuration (as defined by the native app) under which Capacitor
|
|
31
|
+
* will send statements to the log system. This applies to log statements in
|
|
32
|
+
* native code as well as statements redirected from JavaScript (`console.debug`,
|
|
33
|
+
* `console.error`, etc.). Enabling logging will let statements render in the
|
|
34
|
+
* Xcode and Android Studio windows but can leak information on device if enabled
|
|
35
|
+
* in released builds.
|
|
36
|
+
*
|
|
37
|
+
* 'none' = logs are never produced
|
|
38
|
+
* 'debug' = logs are produced in debug builds but not production builds
|
|
39
|
+
* 'production' = logs are always produced
|
|
40
|
+
*
|
|
41
|
+
* @since 3.0.0
|
|
42
|
+
* @default debug
|
|
43
|
+
*/
|
|
44
|
+
loggingBehavior?: 'none' | 'debug' | 'production';
|
|
45
|
+
/**
|
|
46
|
+
* User agent of Capacitor Web View.
|
|
47
|
+
*
|
|
48
|
+
* @since 1.4.0
|
|
49
|
+
*/
|
|
50
|
+
overrideUserAgent?: string;
|
|
51
|
+
/**
|
|
52
|
+
* String to append to the original user agent of Capacitor Web View.
|
|
53
|
+
*
|
|
54
|
+
* This is disregarded if `overrideUserAgent` is used.
|
|
55
|
+
*
|
|
56
|
+
* @since 1.4.0
|
|
57
|
+
*/
|
|
58
|
+
appendUserAgent?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Background color of the Capacitor Web View.
|
|
61
|
+
*
|
|
62
|
+
* @since 1.1.0
|
|
63
|
+
*/
|
|
64
|
+
backgroundColor?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Enable zooming within the Capacitor Web View.
|
|
67
|
+
*
|
|
68
|
+
* @default false
|
|
69
|
+
* @since 6.0.0
|
|
70
|
+
*/
|
|
71
|
+
zoomEnabled?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Whether to give the webview initial focus.
|
|
74
|
+
*
|
|
75
|
+
* @since 7.0.0
|
|
76
|
+
* @default true
|
|
77
|
+
*/
|
|
78
|
+
initialFocus?: boolean;
|
|
79
|
+
android?: {
|
|
80
|
+
/**
|
|
81
|
+
* Specify a custom path to the native Android project.
|
|
82
|
+
*
|
|
83
|
+
* @since 3.0.0
|
|
84
|
+
* @default android
|
|
85
|
+
*/
|
|
86
|
+
path?: string;
|
|
87
|
+
/**
|
|
88
|
+
* User agent of Capacitor Web View on Android.
|
|
89
|
+
*
|
|
90
|
+
* Overrides global `overrideUserAgent` option.
|
|
91
|
+
*
|
|
92
|
+
* @since 1.4.0
|
|
93
|
+
*/
|
|
94
|
+
overrideUserAgent?: string;
|
|
95
|
+
/**
|
|
96
|
+
* String to append to the original user agent of Capacitor Web View for Android.
|
|
97
|
+
*
|
|
98
|
+
* Overrides global `appendUserAgent` option.
|
|
99
|
+
*
|
|
100
|
+
* This is disregarded if `overrideUserAgent` is used.
|
|
101
|
+
*
|
|
102
|
+
* @since 1.4.0
|
|
103
|
+
*/
|
|
104
|
+
appendUserAgent?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Background color of the Capacitor Web View for Android.
|
|
107
|
+
*
|
|
108
|
+
* Overrides global `backgroundColor` option.
|
|
109
|
+
*
|
|
110
|
+
* @since 1.1.0
|
|
111
|
+
*/
|
|
112
|
+
backgroundColor?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Enable zooming within the Capacitor Web View for Android.
|
|
115
|
+
*
|
|
116
|
+
* @default false
|
|
117
|
+
* @since 6.0.0
|
|
118
|
+
*/
|
|
119
|
+
zoomEnabled?: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* Enable mixed content in the Capacitor Web View for Android.
|
|
122
|
+
*
|
|
123
|
+
* [Mixed
|
|
124
|
+
* content](https://developer.mozilla.org/en-US/docs/Web/Security/Mixed_content)
|
|
125
|
+
* is disabled by default for security. During development, you may need to
|
|
126
|
+
* enable it to allow the Web View to load files from different schemes.
|
|
127
|
+
*
|
|
128
|
+
* **This is not intended for use in production.**
|
|
129
|
+
*
|
|
130
|
+
* @since 1.0.0
|
|
131
|
+
* @default false
|
|
132
|
+
*/
|
|
133
|
+
allowMixedContent?: boolean;
|
|
134
|
+
/**
|
|
135
|
+
* This enables a simpler keyboard which may have some limitations.
|
|
136
|
+
*
|
|
137
|
+
* This will capture JS keys using an alternative
|
|
138
|
+
* [`InputConnection`](https://developer.android.com/reference/android/view/inputmethod/InputConnection).
|
|
139
|
+
*
|
|
140
|
+
* @since 1.0.0
|
|
141
|
+
* @default false
|
|
142
|
+
*/
|
|
143
|
+
captureInput?: boolean;
|
|
144
|
+
/**
|
|
145
|
+
* Always enable debuggable web content.
|
|
146
|
+
*
|
|
147
|
+
* This is automatically enabled during development.
|
|
148
|
+
*
|
|
149
|
+
* @since 1.0.0
|
|
150
|
+
* @default false
|
|
151
|
+
*/
|
|
152
|
+
webContentsDebuggingEnabled?: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* The build configuration under which Capacitor will generate logs on Android.
|
|
155
|
+
*
|
|
156
|
+
* Overrides global `loggingBehavior` option.
|
|
157
|
+
*
|
|
158
|
+
* @since 3.0.0
|
|
159
|
+
* @default debug
|
|
160
|
+
*/
|
|
161
|
+
loggingBehavior?: 'none' | 'debug' | 'production';
|
|
162
|
+
/**
|
|
163
|
+
* Allowlist of plugins to include during `npx cap sync` for Android.
|
|
164
|
+
*
|
|
165
|
+
* Overrides global `includePlugins` option.
|
|
166
|
+
*
|
|
167
|
+
* @since 3.0.0
|
|
168
|
+
*/
|
|
169
|
+
includePlugins?: string[];
|
|
170
|
+
/**
|
|
171
|
+
* Android flavor to use.
|
|
172
|
+
*
|
|
173
|
+
* If the app has flavors declared in the `build.gradle`
|
|
174
|
+
* configure the flavor you want to run with `npx cap run` command.
|
|
175
|
+
*
|
|
176
|
+
* @since 3.1.0
|
|
177
|
+
*/
|
|
178
|
+
flavor?: string;
|
|
179
|
+
/**
|
|
180
|
+
* Whether to give the webview initial focus.
|
|
181
|
+
*
|
|
182
|
+
* Overrides global `initialFocus` option.
|
|
183
|
+
*
|
|
184
|
+
* @since 3.5.1
|
|
185
|
+
* @default true
|
|
186
|
+
*/
|
|
187
|
+
initialFocus?: boolean;
|
|
188
|
+
/**
|
|
189
|
+
* The minimum supported webview version on Android supported by your app.
|
|
190
|
+
*
|
|
191
|
+
* The minimum supported cannot be lower than version `55`, which is required for Capacitor.
|
|
192
|
+
*
|
|
193
|
+
* If the device uses a lower WebView version, an error message will be shown on Logcat.
|
|
194
|
+
* If `server.errorPath` is configured, the WebView will redirect to that file, so can be
|
|
195
|
+
* used to show a custom error.
|
|
196
|
+
*
|
|
197
|
+
* @since 4.0.0
|
|
198
|
+
* @default 60
|
|
199
|
+
*/
|
|
200
|
+
minWebViewVersion?: number;
|
|
201
|
+
/**
|
|
202
|
+
* The minimum supported Huawei webview version on Android supported by your app.
|
|
203
|
+
*
|
|
204
|
+
* The minimum supported cannot be lower than version `10`, which is required for Capacitor.
|
|
205
|
+
*
|
|
206
|
+
* If the device uses a lower WebView version, an error message will be shown on Logcat.
|
|
207
|
+
* If `server.errorPath` is configured, the WebView will redirect to that file, so can be
|
|
208
|
+
* used to show a custom error.
|
|
209
|
+
*
|
|
210
|
+
* @since 4.6.4
|
|
211
|
+
* @default 10
|
|
212
|
+
*/
|
|
213
|
+
minHuaweiWebViewVersion?: number;
|
|
214
|
+
buildOptions?: {
|
|
215
|
+
/**
|
|
216
|
+
* Path to your keystore
|
|
217
|
+
*
|
|
218
|
+
* @since 4.4.0
|
|
219
|
+
*/
|
|
220
|
+
keystorePath?: string;
|
|
221
|
+
/**
|
|
222
|
+
* Password to your keystore
|
|
223
|
+
*
|
|
224
|
+
* @since 4.4.0
|
|
225
|
+
*/
|
|
226
|
+
keystorePassword?: string;
|
|
227
|
+
/**
|
|
228
|
+
* Alias in the keystore to use
|
|
229
|
+
*
|
|
230
|
+
* @since 4.4.0
|
|
231
|
+
*/
|
|
232
|
+
keystoreAlias?: string;
|
|
233
|
+
/**
|
|
234
|
+
* Password for the alias in the keystore to use
|
|
235
|
+
*
|
|
236
|
+
* @since 4.4.0
|
|
237
|
+
*/
|
|
238
|
+
keystoreAliasPassword?: string;
|
|
239
|
+
/**
|
|
240
|
+
* Bundle type for your release build
|
|
241
|
+
*
|
|
242
|
+
* @since 4.4.0
|
|
243
|
+
* @default "AAB"
|
|
244
|
+
*/
|
|
245
|
+
releaseType?: 'AAB' | 'APK';
|
|
246
|
+
/**
|
|
247
|
+
* Program to sign your build with
|
|
248
|
+
*
|
|
249
|
+
* @since 5.1.0
|
|
250
|
+
* @default "jarsigner"
|
|
251
|
+
*/
|
|
252
|
+
signingType?: 'apksigner' | 'jarsigner';
|
|
253
|
+
};
|
|
254
|
+
/**
|
|
255
|
+
* Use legacy [addJavascriptInterface](https://developer.android.com/reference/android/webkit/WebView#addJavascriptInterface(java.lang.Object,%20java.lang.String))
|
|
256
|
+
* instead of the new and more secure [addWebMessageListener](https://developer.android.com/reference/androidx/webkit/WebViewCompat#addWebMessageListener(android.webkit.WebView,java.lang.String,java.util.Set%3Cjava.lang.String%3E,androidx.webkit.WebViewCompat.WebMessageListener))
|
|
257
|
+
*
|
|
258
|
+
* @since 4.5.0
|
|
259
|
+
* @default false
|
|
260
|
+
*/
|
|
261
|
+
useLegacyBridge?: boolean;
|
|
262
|
+
/**
|
|
263
|
+
* Make service worker requests go through Capacitor bridge.
|
|
264
|
+
* Set it to false to use your own handling.
|
|
265
|
+
*
|
|
266
|
+
* @since 7.0.0
|
|
267
|
+
* @default true
|
|
268
|
+
*/
|
|
269
|
+
resolveServiceWorkerRequests?: boolean;
|
|
270
|
+
};
|
|
271
|
+
ios?: {
|
|
272
|
+
/**
|
|
273
|
+
* Specify a custom path to the native iOS project.
|
|
274
|
+
*
|
|
275
|
+
* @since 3.0.0
|
|
276
|
+
* @default ios
|
|
277
|
+
*/
|
|
278
|
+
path?: string;
|
|
279
|
+
/**
|
|
280
|
+
* iOS build scheme to use.
|
|
281
|
+
*
|
|
282
|
+
* Usually this matches your app's target in Xcode. You can use the
|
|
283
|
+
* following command to list schemes:
|
|
284
|
+
*
|
|
285
|
+
* ```shell
|
|
286
|
+
* xcodebuild -workspace ios/App/App.xcworkspace -list
|
|
287
|
+
* ```
|
|
288
|
+
*
|
|
289
|
+
* @since 3.0.0
|
|
290
|
+
* @default App
|
|
291
|
+
*/
|
|
292
|
+
scheme?: string;
|
|
293
|
+
/**
|
|
294
|
+
* User agent of Capacitor Web View on iOS.
|
|
295
|
+
*
|
|
296
|
+
* Overrides global `overrideUserAgent` option.
|
|
297
|
+
*
|
|
298
|
+
* @since 1.4.0
|
|
299
|
+
*/
|
|
300
|
+
overrideUserAgent?: string;
|
|
301
|
+
/**
|
|
302
|
+
* String to append to the original user agent of Capacitor Web View for iOS.
|
|
303
|
+
*
|
|
304
|
+
* Overrides global `appendUserAgent` option.
|
|
305
|
+
*
|
|
306
|
+
* This is disregarded if `overrideUserAgent` is used.
|
|
307
|
+
*
|
|
308
|
+
* @since 1.4.0
|
|
309
|
+
*/
|
|
310
|
+
appendUserAgent?: string;
|
|
311
|
+
/**
|
|
312
|
+
* Background color of the Capacitor Web View for iOS.
|
|
313
|
+
*
|
|
314
|
+
* Overrides global `backgroundColor` option.
|
|
315
|
+
*
|
|
316
|
+
* @since 1.1.0
|
|
317
|
+
*/
|
|
318
|
+
backgroundColor?: string;
|
|
319
|
+
/**
|
|
320
|
+
* Enable zooming within the Capacitor Web View for iOS.
|
|
321
|
+
*
|
|
322
|
+
* @default false
|
|
323
|
+
* @since 6.0.0
|
|
324
|
+
*/
|
|
325
|
+
zoomEnabled?: boolean;
|
|
326
|
+
/**
|
|
327
|
+
* Configure the scroll view's content inset adjustment behavior.
|
|
328
|
+
*
|
|
329
|
+
* This will set the
|
|
330
|
+
* [`contentInsetAdjustmentBehavior`](https://developer.apple.com/documentation/uikit/uiscrollview/2902261-contentinsetadjustmentbehavior)
|
|
331
|
+
* property on the Web View's
|
|
332
|
+
* [`UIScrollView`](https://developer.apple.com/documentation/uikit/uiscrollview).
|
|
333
|
+
*
|
|
334
|
+
* @since 2.0.0
|
|
335
|
+
* @default never
|
|
336
|
+
*/
|
|
337
|
+
contentInset?: 'automatic' | 'scrollableAxes' | 'never' | 'always';
|
|
338
|
+
/**
|
|
339
|
+
* Configure whether the scroll view is scrollable.
|
|
340
|
+
*
|
|
341
|
+
* This will set the
|
|
342
|
+
* [`isScrollEnabled`](https://developer.apple.com/documentation/uikit/uiscrollview/1619395-isscrollenabled)
|
|
343
|
+
* property on the Web View's
|
|
344
|
+
* [`UIScrollView`](https://developer.apple.com/documentation/uikit/uiscrollview).
|
|
345
|
+
*
|
|
346
|
+
* @since 1.0.0
|
|
347
|
+
*/
|
|
348
|
+
scrollEnabled?: boolean;
|
|
349
|
+
/**
|
|
350
|
+
* Configure custom linker flags for compiling Cordova plugins.
|
|
351
|
+
*
|
|
352
|
+
* @since 1.0.0
|
|
353
|
+
* @default []
|
|
354
|
+
*/
|
|
355
|
+
cordovaLinkerFlags?: string[];
|
|
356
|
+
/**
|
|
357
|
+
* Allow destination previews when pressing on links.
|
|
358
|
+
*
|
|
359
|
+
* This will set the
|
|
360
|
+
* [`allowsLinkPreview`](https://developer.apple.com/documentation/webkit/wkwebview/1415000-allowslinkpreview)
|
|
361
|
+
* property on the Web View, instead of using the default value.
|
|
362
|
+
*
|
|
363
|
+
* @since 2.0.0
|
|
364
|
+
*/
|
|
365
|
+
allowsLinkPreview?: boolean;
|
|
366
|
+
/**
|
|
367
|
+
* The build configuration under which Capacitor will generate logs on iOS.
|
|
368
|
+
*
|
|
369
|
+
* Overrides global `loggingBehavior` option.
|
|
370
|
+
*
|
|
371
|
+
* @since 3.0.0
|
|
372
|
+
* @default debug
|
|
373
|
+
*/
|
|
374
|
+
loggingBehavior?: 'none' | 'debug' | 'production';
|
|
375
|
+
/**
|
|
376
|
+
* Allowlist of plugins to include during `npx cap sync` for iOS.
|
|
377
|
+
*
|
|
378
|
+
* Overrides global `includePlugins` option.
|
|
379
|
+
*
|
|
380
|
+
* @since 3.0.0
|
|
381
|
+
*/
|
|
382
|
+
includePlugins?: string[];
|
|
383
|
+
/**
|
|
384
|
+
* Sets WKWebView configuration for limitsNavigationsToAppBoundDomains.
|
|
385
|
+
*
|
|
386
|
+
* If the Info.plist file includes `WKAppBoundDomains` key, it's recommended to
|
|
387
|
+
* set this option to true, otherwise some features won't work.
|
|
388
|
+
* But as side effect, it blocks navigation outside the domains in the
|
|
389
|
+
* `WKAppBoundDomains` list.
|
|
390
|
+
* `localhost` (or the value configured as `server.hostname`) also needs to be
|
|
391
|
+
* added to the `WKAppBoundDomains` list.
|
|
392
|
+
*
|
|
393
|
+
* @since 3.1.0
|
|
394
|
+
* @default false
|
|
395
|
+
*/
|
|
396
|
+
limitsNavigationsToAppBoundDomains?: boolean;
|
|
397
|
+
/**
|
|
398
|
+
* The content mode for the web view to use when it loads and renders web content.
|
|
399
|
+
*
|
|
400
|
+
* - 'recommended': The content mode that is appropriate for the current device.
|
|
401
|
+
* - 'desktop': The content mode that represents a desktop experience.
|
|
402
|
+
* - 'mobile': The content mode that represents a mobile experience.
|
|
403
|
+
*
|
|
404
|
+
* @since 4.0.0
|
|
405
|
+
* @default recommended
|
|
406
|
+
*/
|
|
407
|
+
preferredContentMode?: 'recommended' | 'desktop' | 'mobile';
|
|
408
|
+
/**
|
|
409
|
+
* Configure if Capacitor will handle local/push notifications.
|
|
410
|
+
* Set to false if you want to use your own UNUserNotificationCenter to handle notifications.
|
|
411
|
+
*
|
|
412
|
+
* @since 4.5.0
|
|
413
|
+
* @default true
|
|
414
|
+
*/
|
|
415
|
+
handleApplicationNotifications?: boolean;
|
|
416
|
+
/**
|
|
417
|
+
* Using Xcode 14.3, on iOS 16.4 and greater, enable debuggable web content for release builds.
|
|
418
|
+
*
|
|
419
|
+
* If not set, it's `true` for development builds.
|
|
420
|
+
*
|
|
421
|
+
* @since 4.8.0
|
|
422
|
+
* @default false
|
|
423
|
+
*/
|
|
424
|
+
webContentsDebuggingEnabled?: boolean;
|
|
425
|
+
/**
|
|
426
|
+
* Whether to give the webview initial focus.
|
|
427
|
+
*
|
|
428
|
+
* Overrides global `initialFocus` option.
|
|
429
|
+
*
|
|
430
|
+
* @since 7.0.0
|
|
431
|
+
* @default true
|
|
432
|
+
*/
|
|
433
|
+
initialFocus?: boolean;
|
|
434
|
+
buildOptions?: {
|
|
435
|
+
/**
|
|
436
|
+
* The signing style to use when building the app for distribution.
|
|
437
|
+
*
|
|
438
|
+
* @since 7.1.0
|
|
439
|
+
* @default 'automatic'
|
|
440
|
+
*/
|
|
441
|
+
signingStyle?: 'automatic' | 'manual';
|
|
442
|
+
/**
|
|
443
|
+
* The method used by xcodebuild to export the archive
|
|
444
|
+
*
|
|
445
|
+
* @since 7.1.0
|
|
446
|
+
* @default 'app-store-connect'
|
|
447
|
+
*/
|
|
448
|
+
exportMethod?: string;
|
|
449
|
+
/**
|
|
450
|
+
* A certificate name, SHA-1 hash, or automatic selector to use for signing for iOS builds.
|
|
451
|
+
*
|
|
452
|
+
* @since 7.1.0
|
|
453
|
+
*/
|
|
454
|
+
signingCertificate?: string;
|
|
455
|
+
/**
|
|
456
|
+
* A provisioning profile name or UUID for iOS builds.
|
|
457
|
+
*
|
|
458
|
+
* @since 7.1.0
|
|
459
|
+
*/
|
|
460
|
+
provisioningProfile?: string;
|
|
461
|
+
};
|
|
462
|
+
};
|
|
463
|
+
server?: {
|
|
464
|
+
/**
|
|
465
|
+
* Configure the local hostname of the device.
|
|
466
|
+
*
|
|
467
|
+
* It is recommended to keep this as `localhost` as it allows the use of
|
|
468
|
+
* Web APIs that would otherwise require a [secure
|
|
469
|
+
* context](https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts)
|
|
470
|
+
* such as
|
|
471
|
+
* [`navigator.geolocation`](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/geolocation)
|
|
472
|
+
* and
|
|
473
|
+
* [`MediaDevices.getUserMedia`](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia).
|
|
474
|
+
*
|
|
475
|
+
* @since 1.0.0
|
|
476
|
+
* @default localhost
|
|
477
|
+
*/
|
|
478
|
+
hostname?: string;
|
|
479
|
+
/**
|
|
480
|
+
* Configure the local scheme on iOS.
|
|
481
|
+
*
|
|
482
|
+
* [Can't be set to schemes that the WKWebView already handles, such as http or https](https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/2875766-seturlschemehandler)
|
|
483
|
+
* This can be useful when migrating from
|
|
484
|
+
* [`cordova-plugin-ionic-webview`](https://github.com/ionic-team/cordova-plugin-ionic-webview),
|
|
485
|
+
* where the default scheme on iOS is `ionic`.
|
|
486
|
+
*
|
|
487
|
+
* @since 1.2.0
|
|
488
|
+
* @default capacitor
|
|
489
|
+
*/
|
|
490
|
+
iosScheme?: string;
|
|
491
|
+
/**
|
|
492
|
+
* Configure the local scheme on Android.
|
|
493
|
+
*
|
|
494
|
+
* 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
|
|
495
|
+
* 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
|
|
496
|
+
* will continue to work long term as allowing non-standard schemes to modify query parameters and url fragments is only allowed for compatibility reasons.
|
|
497
|
+
* https://ionic.io/blog/capacitor-android-customscheme-issue-with-chrome-117
|
|
498
|
+
*
|
|
499
|
+
* @since 1.2.0
|
|
500
|
+
* @default https
|
|
501
|
+
*/
|
|
502
|
+
androidScheme?: string;
|
|
503
|
+
/**
|
|
504
|
+
* Load an external URL in the Web View.
|
|
505
|
+
*
|
|
506
|
+
* This is intended for use with live-reload servers.
|
|
507
|
+
*
|
|
508
|
+
* **This is not intended for use in production.**
|
|
509
|
+
*
|
|
510
|
+
* @since 1.0.0
|
|
511
|
+
*/
|
|
512
|
+
url?: string;
|
|
513
|
+
/**
|
|
514
|
+
* Allow cleartext traffic in the Web View.
|
|
515
|
+
*
|
|
516
|
+
* On Android, all cleartext traffic is disabled by default as of API 28.
|
|
517
|
+
*
|
|
518
|
+
* This is intended for use with live-reload servers where unencrypted HTTP
|
|
519
|
+
* traffic is often used.
|
|
520
|
+
*
|
|
521
|
+
* **This is not intended for use in production.**
|
|
522
|
+
*
|
|
523
|
+
* @since 1.5.0
|
|
524
|
+
* @default false
|
|
525
|
+
*/
|
|
526
|
+
cleartext?: boolean;
|
|
527
|
+
/**
|
|
528
|
+
* Set additional URLs the Web View can navigate to.
|
|
529
|
+
*
|
|
530
|
+
* By default, all external URLs are opened in the external browser (not
|
|
531
|
+
* the Web View).
|
|
532
|
+
*
|
|
533
|
+
* **This is not intended for use in production.**
|
|
534
|
+
*
|
|
535
|
+
* @since 1.0.0
|
|
536
|
+
* @default []
|
|
537
|
+
*/
|
|
538
|
+
allowNavigation?: string[];
|
|
539
|
+
/**
|
|
540
|
+
* Specify path to a local html page to display in case of errors.
|
|
541
|
+
* On Android the html file won't have access to Capacitor plugins.
|
|
542
|
+
*
|
|
543
|
+
* @since 4.0.0
|
|
544
|
+
* @default null
|
|
545
|
+
*/
|
|
546
|
+
errorPath?: string;
|
|
547
|
+
/**
|
|
548
|
+
* Append a path to the app URL.
|
|
549
|
+
*
|
|
550
|
+
* Allows loading from other paths than the default `/index.html`.
|
|
551
|
+
* @since 7.3.0
|
|
552
|
+
* @default null
|
|
553
|
+
*/
|
|
554
|
+
appStartPath?: string;
|
|
555
|
+
};
|
|
556
|
+
cordova?: {
|
|
557
|
+
/**
|
|
558
|
+
* Populates <access> tags in the config.xml with the origin set to
|
|
559
|
+
* the values entered here.
|
|
560
|
+
* If not provided, a single <access origin="*" /> tag gets included.
|
|
561
|
+
* It only has effect on a few Cordova plugins that respect the whitelist.
|
|
562
|
+
*
|
|
563
|
+
* @since 3.3.0
|
|
564
|
+
*/
|
|
565
|
+
accessOrigins?: string[];
|
|
566
|
+
/**
|
|
567
|
+
* Configure Cordova preferences.
|
|
568
|
+
*
|
|
569
|
+
* @since 1.3.0
|
|
570
|
+
*/
|
|
571
|
+
preferences?: {
|
|
572
|
+
[key: string]: string | undefined;
|
|
573
|
+
};
|
|
574
|
+
/**
|
|
575
|
+
* Fail on cap update/sync if the CLI detects that a cordova plugin
|
|
576
|
+
* has uninstalled dependencies.
|
|
577
|
+
*
|
|
578
|
+
* @default false
|
|
579
|
+
* @since 7.4.0
|
|
580
|
+
*/
|
|
581
|
+
failOnUninstalledPlugins?: boolean;
|
|
582
|
+
};
|
|
583
|
+
/**
|
|
584
|
+
* Configure plugins.
|
|
585
|
+
*
|
|
586
|
+
* This is an object with configuration values specified by plugin class
|
|
587
|
+
* name.
|
|
588
|
+
*
|
|
589
|
+
* @since 1.0.0
|
|
590
|
+
*/
|
|
591
|
+
plugins?: PluginsConfig;
|
|
592
|
+
/**
|
|
593
|
+
* Allowlist of plugins to include during `npx cap sync`.
|
|
594
|
+
*
|
|
595
|
+
* This should be an array of strings representing the npm package name of
|
|
596
|
+
* plugins to include when running `npx cap sync`. If unset, Capacitor will
|
|
597
|
+
* inspect `package.json` for a list of potential plugins.
|
|
598
|
+
*
|
|
599
|
+
* @since 3.0.0
|
|
600
|
+
*/
|
|
601
|
+
includePlugins?: string[];
|
|
602
|
+
}
|
|
603
|
+
export interface PluginsConfig {
|
|
604
|
+
/**
|
|
605
|
+
* Plugin configuration by class name.
|
|
606
|
+
*
|
|
607
|
+
* @since 1.0.0
|
|
608
|
+
*/
|
|
609
|
+
[key: string]: {
|
|
610
|
+
[key: string]: any;
|
|
611
|
+
} | undefined;
|
|
612
|
+
/**
|
|
613
|
+
* Capacitor Cookies plugin configuration
|
|
614
|
+
*
|
|
615
|
+
* @since 4.3.0
|
|
616
|
+
*/
|
|
617
|
+
CapacitorCookies?: {
|
|
618
|
+
/**
|
|
619
|
+
* Enable CapacitorCookies to override the global `document.cookie` on native.
|
|
620
|
+
*
|
|
621
|
+
* @default false
|
|
622
|
+
*/
|
|
623
|
+
enabled?: boolean;
|
|
624
|
+
};
|
|
625
|
+
/**
|
|
626
|
+
* Capacitor Http plugin configuration
|
|
627
|
+
*
|
|
628
|
+
* @since 4.3.0
|
|
629
|
+
*/
|
|
630
|
+
CapacitorHttp?: {
|
|
631
|
+
/**
|
|
632
|
+
* Enable CapacitorHttp to override the global `fetch` and `XMLHttpRequest` on native.
|
|
633
|
+
*
|
|
634
|
+
* @default false
|
|
635
|
+
*/
|
|
636
|
+
enabled?: boolean;
|
|
637
|
+
};
|
|
638
|
+
/**
|
|
639
|
+
* System Bars plugin configuration
|
|
640
|
+
*
|
|
641
|
+
* @since 8.0.0
|
|
642
|
+
*/
|
|
643
|
+
SystemBars?: {
|
|
644
|
+
/**
|
|
645
|
+
* Disables the injection of device css insets into the web view.
|
|
646
|
+
*
|
|
647
|
+
* @default false
|
|
648
|
+
*/
|
|
649
|
+
disableInsets?: boolean;
|
|
650
|
+
/**
|
|
651
|
+
* The style of the text and icons of the system bars.
|
|
652
|
+
*
|
|
653
|
+
* This option is only supported on Android.
|
|
654
|
+
*
|
|
655
|
+
* @default `DEFAULT`
|
|
656
|
+
*/
|
|
657
|
+
style?: string;
|
|
658
|
+
/**
|
|
659
|
+
* Hide the system bars on start.
|
|
660
|
+
*
|
|
661
|
+
* @default false
|
|
662
|
+
*/
|
|
663
|
+
hidden?: boolean;
|
|
664
|
+
/**
|
|
665
|
+
* The type of status bar animation used when showing or hiding.
|
|
666
|
+
*
|
|
667
|
+
* This option is only supported on iOS.
|
|
668
|
+
*
|
|
669
|
+
* @default 'FADE'
|
|
670
|
+
*
|
|
671
|
+
*/
|
|
672
|
+
animation?: 'FADE' | 'NONE';
|
|
673
|
+
};
|
|
674
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.XcodeExportMethod = void 0;
|
|
4
|
+
var XcodeExportMethod;
|
|
5
|
+
(function (XcodeExportMethod) {
|
|
6
|
+
XcodeExportMethod["AppStoreConnect"] = "app-store-connect";
|
|
7
|
+
XcodeExportMethod["ReleaseTesting"] = "release-testing";
|
|
8
|
+
XcodeExportMethod["Enterprise"] = "enterprise";
|
|
9
|
+
XcodeExportMethod["Debugging"] = "debugging";
|
|
10
|
+
XcodeExportMethod["DeveloperID"] = "developer-id";
|
|
11
|
+
XcodeExportMethod["MacApplication"] = "mac-application";
|
|
12
|
+
XcodeExportMethod["Validation"] = "validation";
|
|
13
|
+
})(XcodeExportMethod = exports.XcodeExportMethod || (exports.XcodeExportMethod = {}));
|