-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.config.ts
115 lines (110 loc) · 2.68 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
import { ExpoConfig, ConfigContext } from "expo/config";
const nameMap = {
preview: "BrimApp (Preview)",
development: "BrimApp (Dev)",
production: "BrimApp",
};
const schemeMap = {
preview: "brim-preview",
development: "brim-dev",
production: "brim",
};
const bundleIdentifierMap = {
preview: "com.stringsaeed.brim.preview",
development: "com.stringsaeed.brim.dev",
production: "com.stringsaeed.brim",
};
const name = nameMap[process.env.APP_VARIANT || "production"];
const scheme = schemeMap[process.env.APP_VARIANT || "production"];
const bundleIdentifier =
bundleIdentifierMap[process.env.APP_VARIANT || "production"];
export default ({ config }: ConfigContext): ExpoConfig => {
return {
...config,
plugins: [
[
"expo-build-properties",
{
ios: {
deploymentTarget: "14.0",
useFrameworks: "static",
},
},
],
[
"expo-local-authentication",
{
faceIDPermission: "Allow $(PRODUCT_NAME) to use Face ID.",
},
],
"expo-localization",
"expo-notifications",
"expo-font",
[
"@sentry/react-native/expo",
{
authToken: process.env.SENTRY_AUTH_TOKEN,
organization: process.env.SENTRY_ORG,
project: process.env.SENTRY_PROJECT,
},
],
"expo-apple-authentication",
"expo-router",
],
android: {
adaptiveIcon: {
foregroundImage: "./assets/adaptive-icon.png",
backgroundColor: "#F7F6E4",
},
userInterfaceStyle: "automatic",
package: bundleIdentifier,
versionCode: 45,
},
ios: {
config: { usesNonExemptEncryption: false },
userInterfaceStyle: "automatic",
usesAppleSignIn: true,
supportsTablet: true,
buildNumber: "45",
bundleIdentifier,
},
splash: {
image: "./assets/splash.png",
backgroundColor: "#F7F6E4",
resizeMode: "contain",
},
extra: {
eas: {
projectId: "e630d577-becd-41a6-ad64-226cac9be574",
},
},
androidStatusBar: {
backgroundColor: "#F7F6E400",
translucent: true,
},
updates: {
url: "https://u.expo.dev/e630d577-becd-41a6-ad64-226cac9be574",
},
experiments: {
tsconfigPaths: true,
typedRoutes: true,
},
web: {
bundler: "metro",
output: "static",
},
runtimeVersion: {
policy: "appVersion",
},
userInterfaceStyle: "automatic",
assetBundlePatterns: ["**/*"],
icon: "./assets/icon.png",
orientation: "portrait",
owner: "stringsaeed",
jsEngine: "hermes",
version: "1.0.0",
slug: "BrimApp",
scheme,
name,
};
};