-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.config.js
96 lines (86 loc) · 3.15 KB
/
app.config.js
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
import configData from "./data/config.json";
// import settings from "./data/settings.json";
const appURL = new URL(process.env.TGCS_APP_BASE_URL ?? configData.APP_BASE_URL ?? "https://example.com");
const appPath = appURL.pathname.replace(/\/$/, "");
export default ({config}) => ({
...config,
"owner": process.env.TGCS_EXPO_OWNER || undefined,
"name": process.env.TGCS_APP_NAME || configData.APP_NAME || "Trail Guide App",
"slug": process.env.TGCS_APP_SLUG || configData.APP_SLUG || "trail-guide-app",
"version": process.env.TGCS_APP_VERSION || "1.0.0",
"scheme": process.env.TGCS_APP_URL_SCHEME || undefined,
"orientation": "portrait",
"icon": "./assets/icon.png",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"userInterfaceStyle": "light",
"jsEngine": "hermes",
"runtimeVersion": {
"policy": "sdkVersion",
},
"updates": {
...(process.env.TGCS_EXPO_PROJECT_ID
? {"url": `https://u.expo.dev/${process.env.TGCS_EXPO_PROJECT_ID}`}
: {}),
"fallbackToCacheTimeout": 0,
},
"assetBundlePatterns": [
"**/*"
],
"extra": {
"eas": {
"projectId": process.env.TGCS_EXPO_PROJECT_ID || undefined,
},
},
"ios": {
"bundleIdentifier": process.env.TGCS_IOS_BUNDLE_IDENTIFIER || undefined,
"buildNumber": process.env.TGCS_IOS_BUILD_NUMBER || process.env.TGCS_APP_VERSION || "1.0.0",
"supportsTablet": true,
"infoPlist": {
"NSLocationWhenInUseUsageDescription": "This app uses your location to display on the map."
},
"associatedDomains": [
`applinks:${appURL.host}`,
]
},
"android": {
"package": process.env.TGCS_ANDROID_PACKAGE || undefined,
"versionCode": process.env.TGCS_ANDROID_VERSION_CODE
? parseInt(process.env.TGCS_ANDROID_VERSION_CODE, 10)
: 1,
// "adaptiveIcon": {
// "foregroundImage": "./assets/adaptive-icon.png",
// "backgroundColor": "#FFFFFF"
// },
"intentFilters": [{
"action": "VIEW",
"autoVerify": true,
"data": [
{"scheme": "https", "host": appURL.host, "pathPrefix": `${appPath}/modals`},
{"scheme": "https", "host": appURL.host, "pathPrefix": `${appPath}/stations/detail`},
{"scheme": "https", "host": appURL.host, "pathPrefix": `${appPath}/pages`},
],
"category": [
"BROWSABLE",
"DEFAULT"
],
}],
"config": {
"googleMaps": {
"apiKey": process.env.TGCS_ANDROID_MAPS_API_KEY || undefined,
},
},
"blockedPermissions": [
// We don't need to record audio using expo-av, so don't request this permission.
"android.permission.RECORD_AUDIO",
// Don't need to write to external storage either.
"android.permission.WRITE_EXTERNAL_STORAGE",
],
},
"web": {
"favicon": "./assets/favicon.png"
},
});