-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathapp.config.js
More file actions
executable file
·81 lines (80 loc) · 1.88 KB
/
app.config.js
File metadata and controls
executable file
·81 lines (80 loc) · 1.88 KB
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
let packageName = "com.sawyerf.castafiore"
if (process.env.IS_DEV === "true") {
packageName = "com.sawyerf.castafiore.dev"
}
module.exports = ({ config }) => {
return {
expo: {
name: "Castafiore" + (process.env.IS_DEV === "true" ? " (dev)" : ""),
slug: "Castafiore",
description: "Castafiore is a music player that support Navidrome and Subsonic API.",
version: config.version,
orientation: "default",
icon: "./assets/icon.png",
userInterfaceStyle: "light",
newArchEnabled: false, // Disable New Architecture because react-native-track-player does not support it yet
assetBundlePatterns: [
"**/*"
],
android: {
package: packageName,
edgeToEdgeEnabled: true,
permissions: [
"CHANGE_WIFI_MULTICAST_STATE",
],
adaptiveIcon: {
foregroundImage: "./assets/foreground-icon.png",
backgroundColor: process.env.IS_DEV === "true" ? "#000000" : "#660000"
},
splash: {
image: "./assets/foreground-icon.png",
resizeMode: "contain",
backgroundColor: process.env.IS_DEV === "true" ? "#000000" : "#660000"
}
},
web: {
favicon: "./assets/icon.png",
shortName: "Castafiore",
startUrl: "./index.html",
backgroundColor: "#121212",
theme_color: "#121212"
},
extra: {
eas: {
projectId: "98d27f72-714e-415c-99f9-30f3f78d68e2"
}
},
experiments: {
baseUrl: process.env.PLATFORM === "web" ? "./" : undefined
},
plugins: [
[
"expo-build-properties",
{
android: {
usesCleartextTraffic: true
}
}
],
[
"react-native-edge-to-edge",
{
"android": {
"parentTheme": "Default",
"enforceNavigationBarContrast": false
}
}
],
[
'./plugins/asyncStorage.js'
],
[
"react-native-google-cast",
{
androidPlayServicesCastFrameworkVersion: "22.2.0",
},
],
]
}
}
}