-
Notifications
You must be signed in to change notification settings - Fork 16
/
app4.config.ts
127 lines (120 loc) · 4.07 KB
/
app4.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
// Experimental dark splash screen: https://expo.canny.io/feature-requests/p/dark-mode-splash-screen
const splash = {
"image": "./app4/assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#000000",
"dark": {
"image": "./app4/assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#121212",
},
};
const sentryConfigPlugin = [
"@sentry/react-native/expo",
{
"url": "https://sentry.io/",
"organization": "aoe2companion",
"project": "aoe4companion",
}
];
const version = '17.0.0';
const versionParts = version.split('.');
const runtimeVersion = versionParts[0] + '.' + versionParts[1] + '.0';
const runtimeVersionParts = runtimeVersion.split('.');
const runtimeVersionCode = runtimeVersionParts[0] + runtimeVersionParts[1].padStart(2, '0') + runtimeVersionParts[2].padStart(2, '0');
// console.log('Version: ' + version);
// console.log('Runtime version: ' + runtimeVersion);
// console.log('Runtime version code: ' + runtimeVersionCode);
const isProdBuild = process.env.EAS_BUILD_PROFILE?.includes('production');
const isRunningInEasCI = process.env.EAS_BUILD_RUNNER === 'eas-build';
const sentryConfigPlugins = isProdBuild && isRunningInEasCI ? [sentryConfigPlugin] : [];
export default {
"expo": {
"name": "AoE IV Companion",
"description": "Track your AoE IV matches. This app fetches information about your matches so you are always up-to-date.",
"slug": "aoe4companion",
"scheme": "aoe4companion",
"owner": "aoecompanion",
"platforms": [
"ios",
"android",
"web"
],
"extra": {
"website": "aoe4companion.com",
"experienceId": "@denniske1001/aoe4companion",
"eas": {
"projectId": "d8d79ec3-2477-4026-8c8a-456f79fc2f20",
}
},
"userInterfaceStyle": "automatic",
"jsEngine": "hermes",
"runtimeVersion": runtimeVersion,
"version": version,
"orientation": "portrait",
"githubUrl": "https://github.com/denniske/aoe2companion",
"icon": "./app4/assets/icon.png",
"splash": splash,
"updates": {
"fallbackToCacheTimeout": 0,
"url": "https://u.expo.dev/d8d79ec3-2477-4026-8c8a-456f79fc2f20"
},
"assetBundlePatterns": [
"node_modules/**",
"app/assets/font/**",
"app/assets/legal/**",
"app/assets/translations/**",
"app4/assets/civilizations/**",
"app4/assets/*"
],
"plugins": [
[
"expo-router",
{
"root": "./app/src/app",
"sitemap": false,
}
],
[
"expo-notifications",
{
"icon": "./app4/assets/notification.png"
}
],
...sentryConfigPlugins,
[
"expo-build-properties",
{
"ios": {
"deploymentTarget": "15.1"
}
}
],
"expo-localization",
],
"android": {
"userInterfaceStyle": "automatic",
"package": "com.aoe4companion",
"versionCode": runtimeVersionCode,
"permissions": [],
"googleServicesFile": "./google-services4.json",
"splash": splash,
},
"ios": {
"userInterfaceStyle": "automatic",
"icon": "./app4/assets/icon-no-alpha.png",
"bundleIdentifier": "com.aoe4companion",
"buildNumber": runtimeVersion,
"supportsTablet": false,
"config": {
"usesNonExemptEncryption": false
},
"infoPlist": {
"LSApplicationQueriesSchemes": ["itms-apps"],
"UIBackgroundModes": ["remote-notification"]
},
"appleTeamId": "HAFGZBHF9M",
"splash": splash,
},
}
};