-
Notifications
You must be signed in to change notification settings - Fork 4
/
app.config.js
56 lines (54 loc) · 1.63 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
import packageJson from "./package.json";
const IS_DEV = process.env.APP_VARIANT === "development";
module.exports = () => {
return {
expo: {
name: IS_DEV ? "NativeVision (Dev)" : "NativeVision",
slug: "native-vision-demo" + (IS_DEV ? "-dev" : ""),
version: packageJson.version,
orientation: "portrait",
icon: `./assets/images/icon${IS_DEV ? "-dev" : ""}.png`,
scheme: "myapp",
userInterfaceStyle: "automatic",
splash: {
image: `./assets/images/splash${IS_DEV ? "-dev" : ""}.png`,
resizeMode: "contain",
backgroundColor: "#ffffff",
},
updates: {
fallbackToCacheTimeout: 0,
},
assetBundlePatterns: ["**/*"],
plugins: [
["@viro-community/react-viro", { android: { xRMode: ["GVR", "AR"] } }],
],
ios: {
supportsTablet: true,
bundleIdentifier: IS_DEV
? "com.rc04.nativevision.dev"
: "com.rc04.nativevision",
buildNumber: `${Math.floor(Number(Date.now() / 1000))}`,
config: {
usesNonExemptEncryption: false,
},
},
android: {
adaptiveIcon: {
foregroundImage: `./assets/images/adaptive-icon${
IS_DEV ? "-dev" : ""
}.png`,
backgroundColor: "#ffffff",
},
package: IS_DEV ? "com.rc04.nativevision.dev" : "com.rc04.nativevision",
versionCode: Math.floor(Number(Date.now() / 1000)),
},
extra: {
eas: {
projectId: IS_DEV
? "d41a896a-20cd-401c-a998-2718e4ce7305"
: "eef69c9f-ddbe-45f2-933a-51ff4f8948b9",
},
},
},
};
};