-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.config.ts
89 lines (84 loc) · 1.96 KB
/
app.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
const APP_VARIANT = process.env.APP_VARIANT;
const getBundleIdentifier = () => {
if (APP_VARIANT === "internal") {
return "de.democracy-deutschland.clientapp.internal";
}
return "de.democracy-deutschland.clientapp";
};
const getPackage = () => {
if (APP_VARIANT === "internal") {
return "de.democracydeutschland.app.internal";
}
return "de.democracydeutschland.app";
};
const getAppName = () => {
if (APP_VARIANT === "internal") {
return "DEMOCRACY (Internal)";
}
return "DEMOCRACY";
};
const getAppIcon = () => {
if (APP_VARIANT === "internal") {
return "./assets/icons/icon-internal.png";
}
return "./assets/icons/icon.png";
};
export default {
expo: {
name: getAppName(),
slug: "DEMOCRACY",
scheme: "democracy",
version: "1.5.11",
orientation: "portrait",
icon: getAppIcon(),
userInterfaceStyle: "light",
newArchEnabled: false,
splash: {
image: "./assets/bootsplash_logo.png",
resizeMode: "contain",
backgroundColor: "#4494d3",
imageWidth: 200,
dark: {
image: "./assets/bootsplash_logo.png",
resizeMode: "re",
backgroundColor: "#4494d3",
imageWidth: 200,
},
},
ios: {
supportsTablet: true,
bundleIdentifier: getBundleIdentifier(),
entitlements: {
"aps-environment": process.env.CI ? "production" : "development",
},
},
android: {
adaptiveIcon: {
foregroundImage: "./assets/adaptive-icon.png",
backgroundColor: "#4494d3",
},
package: getPackage(),
googleServicesFile: "./google-services.json",
},
plugins: [
"expo-router",
[
"expo-build-properties",
{
ios: {
deploymentTarget: "15.5",
},
},
],
[
"expo-notifications",
{
enableBackgroundRemoteNotifications: true,
},
],
],
experiments: {
typedRoutes: true,
},
},
};