History

Use variant-specific splash icons in mobile app (#3762)

Julius Marminge committed 4 months ago

Commit 0b62e2e1 parent f9727d03 files · +4 −0Browse files

Unified · Split

3 files
  1. apps/mobile/app.config.ts +6 −2
  2. apps/mobile/assets/splash-icon-dev.png +0 −0
  3. apps/mobile/assets/splash-icon-prod.png +0 −0
apps/mobile/app.config.ts+6−2
@@ -15,6 +15,7 @@ const VARIANT_CONFIG: Record< · 14 unmodified lines
1515 readonly appName: string;
1616 readonly scheme: string;
1717 readonly iosIcon: string;
18+ readonly splashIcon: string;
1819 readonly iosBundleIdentifier: string;
1920 readonly androidPackage: string;
2021 readonly relyingParty?: string;
@@ -24,6 +25,7 @@ const VARIANT_CONFIG: Record< · 3 unmodified lines
2425 appName: "T3 Code Dev",
2526 scheme: "t3code-dev",
2627 iosIcon: "./assets/icon-composer-dev.icon",
28+ splashIcon: "./assets/splash-icon-dev.png",
2729 iosBundleIdentifier: "com.t3tools.t3code.dev",
2830 androidPackage: "com.t3tools.t3code.dev",
2931 relyingParty: "clerk.t3.codes",
@@ -32,6 +34,7 @@ const VARIANT_CONFIG: Record< · 2 unmodified lines
3234 appName: "T3 Code Preview",
3335 scheme: "t3code-preview",
3436 iosIcon: "./assets/icon-composer-prod.icon",
37+ splashIcon: "./assets/splash-icon-prod.png",
3538 iosBundleIdentifier: "com.t3tools.t3code.preview",
3639 androidPackage: "com.t3tools.t3code.preview",
3740 relyingParty: "clerk.t3.codes",
@@ -40,6 +43,7 @@ const VARIANT_CONFIG: Record< · 2 unmodified lines
4043 appName: "T3 Code",
4144 scheme: "t3code",
4245 iosIcon: "./assets/icon-composer-prod.icon",
46+ splashIcon: "./assets/splash-icon-prod.png",
4347 iosBundleIdentifier: "com.t3tools.t3code",
4448 androidPackage: "com.t3tools.t3code",
4549 relyingParty: "clerk.t3.codes",
@@ -131,12 +135,12 @@ const config: ExpoConfig = { · 85 unmodified lines
131135 [
132136 "expo-splash-screen",
133137 {
134− image: "./assets/splash-icon.png",
138+ image: variant.splashIcon,
135139 resizeMode: "contain",
136140 backgroundColor: "#ffffff",
137141 imageWidth: 220,
138142 dark: {
139− image: "./assets/splash-icon.png",
143+ image: variant.splashIcon,
140144 backgroundColor: "#0a0a0a",
141145 },
142146 },
apps/mobile/assets/splash-icon-dev.pngrenamed from apps/mobile/assets/splash-icon.png+0−0

File renamed without changes.

apps/mobile/assets/splash-icon-prod.png+0−0

Binary file not shown.