-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.config.js
More file actions
87 lines (83 loc) · 2.24 KB
/
Copy pathapp.config.js
File metadata and controls
87 lines (83 loc) · 2.24 KB
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
const webOutputHandler = () => {
// let's use server mode for production
if (process.env.NODE_ENV === "production") return "server";
// add SERVER_ENABLED flag to enable server mode
// for developing api router (api routes still experimental)
const SERVER_ENABLED = process.env.SERVER_ENABLED === "1";
if (SERVER_ENABLED) {
return "server";
}
// use single for web development
// for faster build time
return "single";
};
const EXPO_UPDATES_KEY = process.env.EXPO_UPDATES_KEY || "";
module.exports = {
expo: {
name: "ExpoApp",
slug: "ExpoApp",
scheme: "expoapp",
version: "1.0.0",
orientation: "portrait",
icon: "./src/assets/icon.png",
userInterfaceStyle: "light",
splash: {
image: "./src/assets/splash.png",
resizeMode: "contain",
backgroundColor: "#ffffff",
},
assetBundlePatterns: ["**/*"],
updates: {
url: "https://sample-expo-up-server.vercel.app/api/expo-up/manifest",
enabled: true,
fallbackToCacheTimeout: 30000,
requestHeaders: {
"x-expo-updates-key": EXPO_UPDATES_KEY,
},
},
runtimeVersion: { policy: "appVersion" },
ios: {
supportsTablet: true,
bundleIdentifier: "com.example.ExpoApp",
googleServicesFile: "./src/credentials/GoogleService-Info.plist",
},
android: {
package: "com.example.ExpoApp",
adaptiveIcon: {
foregroundImage: "./src/assets/adaptive-icon.png",
backgroundColor: "#ffffff",
},
googleServicesFile: "./src/credentials/google-services.json",
permissions: ["android.permission.ACCESS_NETWORK_STATE"],
},
web: {
favicon: "./src/assets/favicon.png",
output: webOutputHandler(),
},
experiments: {
tsconfigPaths: true,
typedRoutes: true,
},
extra: {
storybookEnabled: process.env.STORYBOOK_ENABLED,
},
plugins: [
"expo-font",
[
"expo-build-properties",
{
android: {
extraMavenRepos: [
"../../node_modules/@notifee/react-native/android/libs",
],
},
ios: {
useFrameworks: "static",
},
},
],
"@react-native-firebase/app",
"expo-router",
],
},
};