-
Notifications
You must be signed in to change notification settings - Fork 7
/
app.config.ts
63 lines (58 loc) · 1.75 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
import { ConfigContext, ExpoConfig } from "expo/config";
import warnOnce from "warn-once";
import appBuildNumbers from "./app.json";
const env = process.env as any;
const isDev = env.EXPO_ENV === "dev";
warnOnce(
isDev && !(process.env as any).EXPO_PUBLIC_DEV_API_URI,
"\n\n🚧 Running the app without EXPO_PUBLIC_DEV_API_URI setup\n\n"
);
const isPreview = env.EXPO_ENV === "preview";
const isProduction = !isDev && !isPreview;
export default ({ config }: ConfigContext): ExpoConfig => ({
...config,
name: isDev ? "Converse DEV" : isPreview ? "Converse PREVIEW" : "Converse",
scheme: isDev ? "converse-dev" : isPreview ? "converse-preview" : "converse",
slug: "converse",
orientation: "portrait",
icon: isProduction ? "./assets/icon.png" : "./assets/icon-preview.png",
userInterfaceStyle: "automatic",
splash: {
image: "./assets/splash.png",
resizeMode: "contain",
backgroundColor: "#ffffff",
},
updates: {
fallbackToCacheTimeout: 0,
url: "https://u.expo.dev/49a65fae-3895-4487-8e8a-5bd8bee3a401",
},
version: appBuildNumbers.expo.version,
assetBundlePatterns: ["**/*"],
ios: {
supportsTablet: true,
buildNumber: appBuildNumbers.expo.ios.buildNumber,
config: {
usesNonExemptEncryption: false,
},
},
android: {
adaptiveIcon: {
foregroundImage: "./assets/adaptive-icon.png",
backgroundColor: "#FFFFFF",
},
versionCode: appBuildNumbers.expo.android.versionCode,
},
web: {
favicon: "./assets/favicon.png",
bundler: "metro",
},
extra: {
eas: {
projectId: "49a65fae-3895-4487-8e8a-5bd8bee3a401",
},
ENV: isDev ? "dev" : isPreview ? "preview" : "prod",
},
runtimeVersion: appBuildNumbers.expo.version,
owner: "converse",
jsEngine: "hermes",
});