feat: mobile staging and dev icons (#3375)
* feat: display mode in about * feat(mobile): staging and dev icons * update
This commit is contained in:
@@ -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
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user