-
Notifications
You must be signed in to change notification settings - Fork 164
/
app.config.js
140 lines (131 loc) · 3.78 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
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
// Update this value to something unique in order to be able to build for a
// physical iOS device.
const APP_ID_PREFIX = "com.reactconf";
// These values are tied to EAS. If you would like to use EAS Build or Update
// on this project while playing with it, then remove these values and run
// `eas init` and `eas update:configure` to get new values for your account.
const EAS_UPDATE_URL =
"https://u.expo.dev/66251e1b-0290-4ef8-87a4-e533cac914dd";
const EAS_PROJECT_ID = "66251e1b-0290-4ef8-87a4-e533cac914dd";
const EAS_APP_OWNER = "expo";
const IS_DEV = process.env.APP_VARIANT === "development";
const IS_PREVIEW = process.env.APP_VARIANT === "preview";
const getName = () => {
if (IS_DEV) {
return "React Conf (Dev)";
}
if (IS_PREVIEW) {
return "React Conf (Prev)";
}
return "React Conf";
};
const getAppId = () => {
if (IS_DEV) {
return `${APP_ID_PREFIX}.dev`;
}
if (IS_PREVIEW) {
return `${APP_ID_PREFIX}.preview`;
}
return `${APP_ID_PREFIX}.app`;
};
export default {
expo: {
name: getName(),
slug: "react-conf-app",
version: "1.1.0",
orientation: "portrait",
icon: "./assets/icon.png",
userInterfaceStyle: "automatic",
scheme: "reactconfapp",
assetBundlePatterns: ["**/*"],
newArchEnabled: true,
ios: {
supportsTablet: true,
bundleIdentifier: getAppId(),
userInterfaceStyle: "automatic",
config: {
usesNonExemptEncryption: false,
},
},
android: {
adaptiveIcon: {
foregroundImage: "./assets/icon-android-foreground.png",
monochromeImage: "./assets/icon-android-foreground.png",
backgroundColor: "#051726",
},
userInterfaceStyle: "automatic",
package: getAppId(),
},
web: {
favicon: "./assets/favicon.png",
},
extra: {
eas: {
projectId: EAS_PROJECT_ID,
},
},
owner: EAS_APP_OWNER,
plugins: [
[
"expo-quick-actions",
{
androidIcons: {
gift: {
foregroundImage: "./assets/icons/gift.png",
backgroundColor: "#FFFFFF",
},
},
},
],
"expo-router",
[
"@config-plugins/react-native-dynamic-app-icon",
["./assets/icon.png", "./assets/icons/icon-desert.png"],
],
[
"expo-font",
{
fonts: [
"./assets/fonts/FreightSansProBlack-Italic.ttf",
"./assets/fonts/FreightSansProBlack-Regular.ttf",
"./assets/fonts/FreightSansProBold-Italic.ttf",
"./assets/fonts/FreightSansProBold-Regular.ttf",
"./assets/fonts/FreightSansProBook-Italic.ttf",
"./assets/fonts/FreightSansProBook-Regular.ttf",
"./assets/fonts/FreightSansProLight-Italic.ttf",
"./assets/fonts/FreightSansProLight-Regular.ttf",
"./assets/fonts/FreightSansProMedium-Italic.ttf",
"./assets/fonts/FreightSansProMedium-Regular.ttf",
"./assets/fonts/FreightSansProSemibold-Italic.ttf",
"./assets/fonts/FreightSansProSemibold-Regular.ttf",
],
},
],
[
"react-native-bootsplash",
{
android: {
parentTheme: "TransparentStatus",
darkContentBarsStyle: false,
},
},
],
],
updates: {
url: EAS_UPDATE_URL,
// Configure the channel to "local" for local development, if we
// compile/run locally EAS Build will configure this for us automatically
// based on the value provided in the build profile, and that will
// overwrite this value.
requestHeaders: {
"expo-channel-name": "local",
},
},
runtimeVersion: {
policy: "appVersion",
},
experiments: {
reactCompiler: true,
},
},
};