-
Notifications
You must be signed in to change notification settings - Fork 6
/
app.config.ts
107 lines (103 loc) · 2.72 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
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 { ExpoConfig, ConfigContext } from "expo/config";
const IS_DEV = process.env.APP_VARIANT === "development";
const name = (() => {
if (IS_DEV) return "Goodweebs (Dev)";
if (process.env.EXPO_STAGING) return "Goodweebs (Staging)";
return "Goodweebs";
})();
const scheme = (() => {
if (IS_DEV) return "goodweebs-dev";
if (process.env.EXPO_STAGING) return "goodweebs-staging";
return "goodweebs";
})();
export default ({ config }: ConfigContext): ExpoConfig => ({
...config,
name,
version: "0.0.16",
slug: "goodweebs",
platforms: ["ios", "android", "web"],
orientation: "portrait",
icon: IS_DEV ? "./assets/launch/icon-dev.png" : "./assets/launch/icon.png",
scheme,
privacy: "unlisted",
backgroundColor: "#010209",
splash: {
image: "./assets/launch/splash.png",
resizeMode: "cover",
backgroundColor: "#010209",
},
owner: "fiberjw",
updates: {
fallbackToCacheTimeout: 30000,
url: process.env.EXPO_STAGING
? "https://staging-u.expo.dev/4678c342-b7f2-4911-ae87-0c5c0de6c188"
: "https://u.expo.dev/21cb2a71-d249-4289-abb6-3b9b39e3b0a3",
},
assetBundlePatterns: ["**/*"],
ios: {
entitlements: {
"aps-environment": "development",
},
supportsTablet: true,
bundleIdentifier: IS_DEV
? "com.fiberjw.goodweebs.dev"
: "com.fiberjw.goodweebs",
config: {
usesNonExemptEncryption: false,
},
requireFullScreen: false,
privacyManifests: {
NSPrivacyAccessedAPITypes: [
{
NSPrivacyAccessedAPIType: "NSPrivacyAccessedAPICategoryUserDefaults",
NSPrivacyAccessedAPITypeReasons: ["CA92.1"],
},
],
},
},
android: {
package: IS_DEV ? "com.fiberjw.goodweebs.dev" : "com.fiberjw.goodweebs",
permissions: [],
adaptiveIcon: {
backgroundColor: "#651FFF",
backgroundImage: "./assets/launch/android-background.png",
foregroundImage: IS_DEV
? "./assets/launch/android-foreground-dev.png"
: "./assets/launch/android-foreground.png",
},
},
web: {
favicon: "./assets/favicon.png",
output: "single",
bundler: "metro",
},
plugins: [
"expo-font",
process.env.EXPO_STAGING
? undefined
: [
"@sentry/react-native/expo",
{
project: "goodweebs",
organization: "juwan-wheatley",
},
],
[
"expo-updates",
{
username: "fiberjw",
},
],
// remove sentry plugin if staging
].filter(Boolean) as ExpoConfig["plugins"],
runtimeVersion: {
policy: "fingerprint",
},
extra: {
eas: {
projectId: process.env.EXPO_STAGING
? "4678c342-b7f2-4911-ae87-0c5c0de6c188"
: "21cb2a71-d249-4289-abb6-3b9b39e3b0a3",
},
},
});