-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.config.js
66 lines (60 loc) · 1.77 KB
/
app.config.js
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
// https://docs.expo.dev/build-reference/variants/
const IS_DEV = process.env.APP_VARIANT === "develop";
export default ({ config }) => {
const LIGHT_SPLASH = {
backgroundColor: "#fffbff",
resizeMode: "contain",
image: "./assets/splash.png",
};
const DARK_SPLASH = {
backgroundColor: "#1e1a1d",
resizeMode: "contain",
image: "./assets/splash.png",
};
const SHARED_SPLASH = {
splash: {
...LIGHT_SPLASH,
dark: {
...DARK_SPLASH,
},
},
};
let backendUrl = "https://pushme.tgxn.net";
if (process.env.BACKEND_URL) {
backendUrl = process.env.BACKEND_URL;
}
return {
...config,
name: IS_DEV ? "PushMe (Dev)" : "PushMe",
extra: {
BACKEND_URL: backendUrl,
eas: {
projectId: "dc94d550-9538-48ff-b051-43562cdcf34e",
},
},
splash: LIGHT_SPLASH,
ios: {
...config.ios,
...SHARED_SPLASH,
bundleIdentifier: IS_DEV ? "net.tgxn.pushme.dev" : "net.tgxn.pushme",
googleServicesFile: process.env.GOOGLE_SERVICES_JSON,
},
android: {
...config.android,
...SHARED_SPLASH,
package: IS_DEV ? "net.tgxn.pushme.dev" : "net.tgxn.pushme",
googleServicesFile: process.env.GOOGLE_SERVICES_JSON,
},
updates: {
url: "https://u.expo.dev/dc94d550-9538-48ff-b051-43562cdcf34e",
fallbackToCacheTimeout: 0,
},
runtimeVersion: {
policy: "sdkVersion",
},
developmentClient: {
silentLaunch: true,
},
// userInterfaceStyle: "light", // force for testing
};
};