forked from blavenie/ionic4-starter-app
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcapacitor.config.ts
48 lines (45 loc) · 1.09 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
import { CapacitorConfig } from '@capacitor/cli';
const production = true;
// Capacitor plugins (common)
const commonIncludePlugins = [
'@capacitor-community/native-audio',
'@capacitor/app',
'@capacitor/browser',
'@capacitor/camera',
'@capacitor/clipboard',
'@capacitor/geolocation',
'@capacitor/haptics',
'@capacitor/keyboard',
'@capacitor/share',
'@capacitor/splash-screen',
'@capacitor/status-bar',
];
const config: CapacitorConfig = {
appId: 'net.sumaris.app',
appName: 'SUMARiS',
webDir: 'www',
bundledWebRuntime: false,
loggingBehavior: production ? 'none' : 'debug',
plugins: {
SplashScreen: {
showSpinner: true,
androidSpinnerStyle: 'horizontal',
launchAutoHide: false,
},
},
android: {
buildOptions: {
releaseType: 'APK',
},
includePlugins: [...commonIncludePlugins, '@e-is/capacitor-bluetooth-serial'],
webContentsDebuggingEnabled: !production,
},
ios: {
includePlugins: [...commonIncludePlugins],
webContentsDebuggingEnabled: !production,
},
server: {
cleartext: true,
},
};
export default config;