-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.config.ts
More file actions
28 lines (26 loc) · 723 Bytes
/
app.config.ts
File metadata and controls
28 lines (26 loc) · 723 Bytes
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
import { ConfigContext, ExpoConfig } from "@expo/config";
export default ({ config }: ConfigContext): ExpoConfig => {
const projectId = config.extra?.eas?.projectId;
const { APP_ENV } = process.env;
return {
name: APP_ENV === "production" ? "Life Routine" : "Life Routine (DEV)",
slug: APP_ENV === "production" ? "life-routine" : "life-routine-dev",
ios: {
bundleIdentifier:
APP_ENV === "production"
? "me.ph7.liferoutine"
: "dev.ph7.liferoutine-dev",
},
android: {
package:
APP_ENV === "production"
? "me.ph7.liferoutine"
: "me.ph7.liferoutine.dev",
},
extra: {
eas: {
projectId,
},
},
};
};