-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.config.js
66 lines (66 loc) · 1.92 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
module.exports = ({config}) => {
const IS_DEV = process.env.APP_VARIANT === 'development';
const IS_STAGING = process.env.APP_VARIANT === 'staging';
return {
name: IS_DEV || IS_STAGING ? 'BearSweeper (Fluffy)' : 'BearSweeper',
owner: 'kyaroru',
slug: 'bearsweeper',
version: config.version,
orientation: 'portrait',
icon: './assets/icon.png',
splash: {
resizeMode: 'contain',
backgroundColor: '#FFFFFF',
},
assetBundlePatterns: ['**/*'],
ios: {
buildNumber: config.ios.buildNumber,
supportsTablet: true,
bundleIdentifier:
IS_DEV || IS_STAGING
? 'com.kyaroru.bearsweeper.dev'
: 'com.kyaroru.BearSweeper',
},
android: {
versionCode: parseInt(config.android.versionCode, 10),
icon: './assets/adaptive-icon.png',
backgroundColor: '#FFFFFF',
splash: {
resizeMode: 'contain',
backgroundColor: '#FFFFFF',
},
permissions: ['android.permission.ACCESS_NETWORK_STATE'],
package:
IS_DEV || IS_STAGING
? 'com.kyaroru.bearsweeper.dev'
: 'com.bearsweeper',
},
plugins: [
[
'./plugins/with-release-cert',
{
keystorePassword: process.env.KEYSTORE_PASSWORD,
keyPassword: process.env.KEY_PASSWORD,
},
],
],
extra: {
eas: {
projectId: 'dfc51e92-18bd-46d5-9345-3f75f71ed965',
},
// used_ci is used to determine which CI is used to build the app
// if it is expo, then let eas handle the keystore injection, otherwise use the with-release-cert plugin
used_ci: process.env.USED_CI || 'expo',
},
updates: {
url: 'https://u.expo.dev/dfc51e92-18bd-46d5-9345-3f75f71ed965',
requestHeaders: {
'expo-channel-name':
IS_DEV || IS_STAGING ? 'development' : 'production',
},
},
runtimeVersion: {
policy: 'appVersion',
},
};
};