feat: mobile staging and dev icons (#3375)

* feat: display mode in about

* feat(mobile): staging and dev icons

* update
This commit is contained in:
DIYgod
2025-03-31 21:42:40 +08:00
committed by GitHub
parent b95237f22e
commit 5dfd70ff20
7 changed files with 30 additions and 9 deletions
+9 -1
View File
@@ -6,8 +6,16 @@ import PKG from "./package.json"
const isCI = process.env.CI === "true"
// const roundedIconPath = resolve(__dirname, "../../resources/icon.png")
const iconPath = resolve(__dirname, "./assets/icon.png")
const iconPathMap = {
production: resolve(__dirname, "./assets/icon.png"),
development: resolve(__dirname, "./assets/icon-dev.png"),
"ios-simulator": resolve(__dirname, "./assets/icon-dev.png"),
preview: resolve(__dirname, "./assets/icon-staging.png"),
} as Record<string, string>
const iconPath = iconPathMap[process.env.PROFILE || "production"] || iconPathMap.production
const adaptiveIconPath = resolve(__dirname, "./assets/adaptive-icon.png")
export default ({ config }: ConfigContext): ExpoConfig => ({
...config,
Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

+15 -3
View File
@@ -7,21 +7,33 @@
"development": {
"developmentClient": true,
"distribution": "internal",
"channel": "development"
"channel": "development",
"env": {
"PROFILE": "development"
}
},
"ios-simulator": {
"extends": "development",
"ios": {
"simulator": true
},
"env": {
"PROFILE": "ios-simulator"
}
},
"preview": {
"distribution": "internal",
"channel": "preview"
"channel": "preview",
"env": {
"PROFILE": "preview"
}
},
"production": {
"autoIncrement": true,
"channel": "production"
"channel": "production",
"env": {
"PROFILE": "production"
}
}
},
"submit": {