-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.config.js
120 lines (115 loc) · 2.94 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
const variant = process.env.APP_VARIANT;
let packageName;
switch (variant) {
case 'development':
packageName = 'com.wyne.scorepad.dev';
break;
case 'preview':
packageName = 'com.wyne.scorepad.preview';
break;
default:
packageName = 'com.wyne.scorepad';
break;
}
let name;
switch (variant) {
case 'development':
name = 'ScorePad with Rounds (dev)';
break;
case 'preview':
name = 'ScorePad with Rounds (preview)';
break;
default:
name = 'ScorePad with Rounds';
break;
}
let icon;
switch (variant) {
case 'development':
icon = './assets/icon-dev.png';
break;
case 'preview':
icon = './assets/icon-preview.png';
break;
default:
icon = './assets/icon.png';
break;
}
let androidIcon;
let androidIconBg;
switch (variant) {
case 'development':
androidIcon = './assets/adaptive-icon-dev.png';
androidIconBg = './assets/adaptive-icon-bg-dev.png';
break;
case 'preview':
androidIcon = './assets/adaptive-icon-preview.png';
androidIconBg = './assets/adaptive-icon-bg-preview.png';
break;
default:
androidIcon = './assets/adaptive-icon.png';
androidIconBg = './assets/adaptive-icon-bg.png';
break;
}
export default {
name: name,
slug: 'scorepad',
version: '2.5.10',
orientation: 'default',
icon: icon,
assetBundlePatterns: ['assets/*'],
backgroundColor: '#000000',
ios: {
bundleIdentifier: packageName,
supportsTablet: true,
requireFullScreen: false,
buildNumber: '86',
infoPlist: {
RCTAsyncStorageExcludeFromBackup: false,
},
googleServicesFile: './GoogleService-Info.plist',
},
android: {
icon: androidIcon,
adaptiveIcon: {
foregroundImage: './assets/adaptive-icon-fg.png',
backgroundImage: androidIconBg,
},
package: packageName,
permissions: [],
blockedPermissions: ['android.permission.ACTIVITY_RECOGNITION'],
versionCode: 86,
googleServicesFile: './google-services.json',
},
userInterfaceStyle: 'dark',
web: {
favicon: './assets/favicon.png',
},
extra: {
eas: {
projectId: 'fc8859ea-b320-41cd-a091-36b3ec7f9b1f',
},
},
updates: {
fallbackToCacheTimeout: 0,
url: 'https://u.expo.dev/fc8859ea-b320-41cd-a091-36b3ec7f9b1f',
},
runtimeVersion: {
policy: 'sdkVersion',
},
description: '',
githubUrl: 'https://github.com/wyne/scorepad-react-native',
owner: 'wyne',
plugins: [
'@react-native-firebase/app',
'@react-native-firebase/crashlytics',
[
'expo-build-properties',
{
ios: {
useFrameworks: 'static',
},
},
],
]
};