-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathapp.config.ts
71 lines (66 loc) · 1.76 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
require('dotenv/config');
const {
EXPO_OWNER,
EXPO_SLUG,
BUNDLE_IDENTIFIER,
ENDPOINTS_URL,
CLIENT_ID,
} = process.env;
if (!(EXPO_OWNER && EXPO_SLUG && BUNDLE_IDENTIFIER && ENDPOINTS_URL && CLIENT_ID)) {
console.log(' EXPO_OWNER exists: ', !!EXPO_OWNER);
console.log(' EXPO_SLUG exists: ', !!EXPO_SLUG);
console.log(' BUNDLE_IDENTIFIER exists: ', !!BUNDLE_IDENTIFIER);
console.log(' ENDPOINTS_URL exists: ', !!ENDPOINTS_URL);
console.log(' CLIENT_ID exists: ', !!CLIENT_ID);
throw new Error('EXPO_OWNER, EXPO_SLUG, BUNDLE_IDENTIFIER, ENDPOINTS_URL, and CLIENT_ID must be defined.');
}
// https://docs.expo.dev/versions/latest/config/app/
const VERSION = '0.3.9';
module.exports = {
expo: {
name: 'Sync for Science Discovery',
slug: EXPO_SLUG,
owner: EXPO_OWNER,
version: VERSION,
icon: './assets/icon.png',
scheme: BUNDLE_IDENTIFIER,
extra: {
EXPO_OWNER,
EXPO_SLUG,
ENDPOINTS_URL,
CLIENT_ID,
},
orientation: 'portrait',
userInterfaceStyle: 'automatic', // light vs dark mode
splash: {
image: './assets/splash.png',
resizeMode: 'contain',
backgroundColor: '#ffffff',
},
updates: {
fallbackToCacheTimeout: 0,
},
assetBundlePatterns: [
'**/*',
],
ios: {
bundleIdentifier: BUNDLE_IDENTIFIER,
buildNumber: VERSION,
supportsTablet: true,
config: {
usesNonExemptEncryption: false,
},
},
android: {
package: BUNDLE_IDENTIFIER,
versionCode: 5,
adaptiveIcon: {
foregroundImage: './assets/adaptive-icon.png',
backgroundColor: '#ffffff',
},
},
web: {
favicon: './assets/favicon.png', // TODO: update this with S4S icon
},
},
};