Skip to content

Commit b5e9f1e

Browse files
committed
Add: new theme & custom package name for dev
1 parent 4533d62 commit b5e9f1e

3 files changed

Lines changed: 19 additions & 17 deletions

File tree

app.config.js

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1+
let packageName = "com.sawyerf.castafiore"
2+
if (process.env.IS_DEV === "true") {
3+
packageName = "com.sawyerf.castafiore.dev"
4+
}
5+
16
module.exports = ({ config }) => {
27
return {
38
expo: {
4-
name: "Castafiore",
9+
name: "Castafiore" + (process.env.IS_DEV === "true" ? " (dev)" : ""),
510
slug: "Castafiore",
611
description: "Castafiore is a music player that support Navidrome and Subsonic API.",
712
version: config.version,
@@ -12,29 +17,20 @@ module.exports = ({ config }) => {
1217
assetBundlePatterns: [
1318
"**/*"
1419
],
15-
ios: {
16-
supportsTablet: true,
17-
infoPlist: {
18-
UIBackgroundModes: [
19-
"audio"
20-
]
21-
},
22-
bundleIdentifier: "com.sawyerf.castafiore"
23-
},
2420
android: {
25-
package: "com.sawyerf.castafiore",
21+
package: packageName,
2622
edgeToEdgeEnabled: true,
2723
permissions: [
2824
"CHANGE_WIFI_MULTICAST_STATE",
2925
],
3026
adaptiveIcon: {
3127
foregroundImage: "./assets/foreground-icon.png",
32-
backgroundColor: "#660000"
28+
backgroundColor: process.env.IS_DEV === "true" ? "#000000" : "#660000"
3329
},
3430
splash: {
3531
image: "./assets/foreground-icon.png",
3632
resizeMode: "contain",
37-
backgroundColor: "#660000"
33+
backgroundColor: process.env.IS_DEV === "true" ? "#000000" : "#660000"
3834
}
3935
},
4036
web: {

app/contexts/theme.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,14 @@ export const themesPlayer = {
212212
playerSecondaryText: '#000',
213213
playerButton: '#000'
214214
},
215+
pink: {
216+
playerBackground: '#ce8bac',
217+
playerPrimaryText: '#000',
218+
playerSecondaryText: '#000',
219+
playerButton: '#000'
220+
},
215221
orange: {
216-
playerBackground: '#FF2D55',
222+
playerBackground: '#FF7700',
217223
playerPrimaryText: '#FFFFFF',
218224
playerSecondaryText: '#FFFFFF',
219225
playerButton: '#FFFFFF'
@@ -225,7 +231,7 @@ export const themesPlayer = {
225231
playerButton: '#FFFFFF'
226232
},
227233
purple: {
228-
playerBackground: '#a238ff',
234+
playerBackground: '#9244d7',
229235
playerPrimaryText: '#FFFFFF',
230236
playerSecondaryText: '#FFFFFF',
231237
playerButton: '#FFFFFF'

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
"scripts": {
77
"export:android": "eas build --platform android --profile production --local",
88
"export:google": "eas build --platform android --profile google --local",
9-
"export:dev": "eas build --platform android --profile development --local",
9+
"export:dev": "cross-env IS_DEV=true eas build --platform android --profile development --local",
1010
"android": "expo start --android --dev-client",
11-
"web": "cross-env PLATFORM=web expo start --web",
11+
"web": "cross-env PLATFORM=web IS_DEV=true expo start --web",
1212
"export:web": "cross-env PLATFORM=web expo export -p web && workbox generateSW workbox-config.js",
1313
"eslint": "eslint app index.js App.js -c eslint.config.mjs",
1414
"postinstall": "patch-package"

0 commit comments

Comments
 (0)