-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcapacitor.config.ts
68 lines (65 loc) · 1.45 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
import { CapacitorConfig } from '@capacitor/cli';
let config: CapacitorConfig;
const baseConfig: CapacitorConfig = {
webDir: 'www',
plugins: {
SplashScreen: {
launchShowDuration: 3000,
launchAutoHide: true,
backgroundColor: "#ffde59",
androidSplashResourceName: "splash",
androidScaleType: "CENTER_CROP",
showSpinner: true,
androidSpinnerStyle: "large",
iosSpinnerStyle: "small",
spinnerColor: "#000000",
splashFullScreen: true,
splashImmersive: true,
layoutName: "launch_screen",
useDialog: true,
},
PushNotifications: {
presentationOptions: ["badge", "sound", "alert"],
},
FirebaseAuthentication: {
skipNativeAuth: false,
providers: ["google.com", "facebook.com"]
}
},
};
switch (process.env.ENV) {
case 'dev':
switch (process.env.PLATFORM) {
case 'ios':
config = {
...baseConfig,
appName: 'Name Dev',
appId: 'com.appdev',
ios: {
scheme: 'App Dev',
},
};
break;
default:
config = {
...baseConfig,
appName: 'Name Dev',
appId: 'com.app.dev',
android: {
flavor: 'dev',
},
};
}
break;
default:
config = {
...baseConfig,
appName: 'Name',
appId: 'com.app',
android: {
flavor: 'prod',
},
};
break;
}
export default config;