-
Notifications
You must be signed in to change notification settings - Fork 143
/
Copy pathcapacitor.config.ts
71 lines (66 loc) · 1.8 KB
/
capacitor.config.ts
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import type { CapacitorConfig } from '@capacitor/cli';
import type { KeyboardResize } from '@capacitor/keyboard';
const { APP_ENV = 'production' } = process.env;
const COMMON_PLUGINS = [
'@capacitor-community/bluetooth-le',
'@capacitor-mlkit/barcode-scanning',
'@capacitor/app',
'@capacitor/app-launcher',
'@capacitor/clipboard',
'@capacitor/filesystem',
'@capacitor/haptics',
'@capacitor/keyboard',
'@capacitor/push-notifications',
'@capacitor/share',
'@capgo/capacitor-native-biometric',
'@capgo/native-audio',
'@mauricewegner/capacitor-navigation-bar',
'@sina_kh/mtw-capacitor-status-bar',
'capacitor-native-settings',
'capacitor-plugin-safe-area',
'capacitor-secure-storage-plugin',
'cordova-plugin-inappbrowser',
'mtw-capacitor-usb-hid',
'native-bottom-sheet',
'native-dialog',
];
const IOS_PLUGINS = [
'@sina_kh/mtw-capacitor-splash-screen',
];
const config: CapacitorConfig = {
appId: 'org.mytonwallet.app',
appName: 'MyTonWallet',
webDir: 'dist',
server: {
androidScheme: 'https',
hostname: 'mytonwallet.local',
},
android: {
path: 'mobile/android',
includePlugins: COMMON_PLUGINS,
webContentsDebuggingEnabled: APP_ENV !== 'production',
},
ios: {
path: 'mobile/ios',
includePlugins: COMMON_PLUGINS.concat(IOS_PLUGINS),
scheme: 'MyTonWallet',
webContentsDebuggingEnabled: APP_ENV !== 'production',
},
plugins: {
SplashScreen: {
launchAutoHide: false,
},
CapacitorHttp: {
enabled: true,
},
PushNotifications: {
presentationOptions: [],
},
Keyboard: {
// Needed to disable the automatic focus scrolling on iOS. The scroll is controlled manually by focusScroll.ts
// for a better focus scroll control.
resize: 'none' as KeyboardResize,
},
},
};
export default config;