-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.config.ts
More file actions
107 lines (93 loc) · 2.48 KB
/
app.config.ts
File metadata and controls
107 lines (93 loc) · 2.48 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
import { ConfigContext, ExpoConfig } from "expo/config";
const APP_VARIANT = process.env.APP_VARIANT || "development";
const IS_PRODUCTION = APP_VARIANT === "production";
const EAS_PROJECT_ID = "4a220b17-d746-48f1-9f46-d83a0a933b40";
const BUNDLE_ID = IS_PRODUCTION
? "com.mrdemonwolf.OfficialApp"
: "com.mrdemonwolf.OfficialApp.dev";
const APP_NAME = IS_PRODUCTION ? "MrDemonWolf" : "MDW (Dev)";
export default ({ config }: ConfigContext): ExpoConfig => ({
...config,
owner: "mrdemonwolf-org",
name: APP_NAME,
slug: "official-app",
version: "1.0.0",
orientation: "portrait",
icon: "./src/assets/images/icon.png",
scheme: "mrdemonwolf",
userInterfaceStyle: "automatic",
updates: {
url: `https://u.expo.dev/${EAS_PROJECT_ID}`,
},
runtimeVersion: {
policy: "appVersion",
},
ios: {
supportsTablet: true,
bundleIdentifier: BUNDLE_ID,
appleTeamId: process.env.APPLE_TEAM_ID,
googleServicesFile: "./GoogleService-Info.plist",
config: {
usesNonExemptEncryption: false,
},
infoPlist: {
NSMotionUsageDescription:
"This app uses haptic feedback to enhance your experience.",
UIBackgroundModes: ["remote-notification"],
},
},
android: {
package: BUNDLE_ID,
googleServicesFile: "./google-services.json",
adaptiveIcon: {
backgroundColor: "#E6F4FE",
foregroundImage: "./src/assets/images/android-icon-foreground.png",
backgroundImage: "./src/assets/images/android-icon-background.png",
monochromeImage: "./src/assets/images/android-icon-monochrome.png",
},
},
web: {
output: "static",
favicon: "./src/assets/images/favicon.png",
},
plugins: [
"expo-router",
"expo-font",
"expo-image",
"expo-sqlite",
"expo-web-browser",
"./src/plugins/modular-headers",
[
"expo-splash-screen",
{
image: "./src/assets/images/splash-icon.png",
imageWidth: 200,
resizeMode: "contain",
backgroundColor: "#ffffff",
dark: {
backgroundColor: "#000000",
},
},
],
[
"expo-notifications",
{
icon: "./src/assets/images/icon.png",
color: "#3b82f6",
},
],
"@bacons/apple-targets",
"@react-native-firebase/app",
"@react-native-firebase/app-check",
],
extra: {
eas: {
projectId: EAS_PROJECT_ID,
},
},
developmentClient: IS_PRODUCTION ? undefined : {},
experiments: {
typedRoutes: true,
reactCompiler: true,
},
});