-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcapacitor.config.ts
More file actions
51 lines (49 loc) · 1.38 KB
/
capacitor.config.ts
File metadata and controls
51 lines (49 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import type { CapacitorConfig } from '@capacitor/cli';
const config: CapacitorConfig = {
appId: 'app.wewrite.mobile',
appName: 'WeWrite',
webDir: 'out',
server: {
// For local development via USB, use localhost with ADB reverse port forwarding
// Run: adb reverse tcp:3000 tcp:3000
url: 'http://localhost:3000',
cleartext: true,
// Keep all navigation within the WebView
hostname: 'localhost',
androidScheme: 'http',
// Allow navigation to these URLs within the WebView (don't open external browser)
allowNavigation: ['localhost:3000'],
},
ios: {
contentInset: 'automatic',
preferredContentMode: 'mobile',
scheme: 'WeWrite'
},
android: {
allowMixedContent: true,
captureInput: true,
webContentsDebuggingEnabled: true
},
plugins: {
SplashScreen: {
launchShowDuration: 2000,
launchAutoHide: true,
backgroundColor: '#000000',
androidSplashResourceName: 'splash',
androidScaleType: 'CENTER_CROP',
showSpinner: false,
splashFullScreen: true,
splashImmersive: true
},
StatusBar: {
// Let the native theme handle status bar styling based on light/dark mode
// The Android styles.xml and values-night/styles.xml configure this
overlaysWebView: false
},
Keyboard: {
resize: 'body',
resizeOnFullScreen: true
}
}
};
export default config;