Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

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

Julius Marminge0b62e2eb116a
diff --git a/apps/mobile/app.config.ts b/apps/mobile/app.config.ts
index d03e52e66..2b0bf7c8a 100644
--- a/apps/mobile/app.config.ts
+++ b/apps/mobile/app.config.ts
@@ -15,6 +15,7 @@ const VARIANT_CONFIG: Record<
readonly appName: string;
readonly scheme: string;
readonly iosIcon: string;
+ readonly splashIcon: string;
readonly iosBundleIdentifier: string;
readonly androidPackage: string;
readonly relyingParty?: string;
@@ -24,6 +25,7 @@ const VARIANT_CONFIG: Record<
appName: "T3 Code Dev",
scheme: "t3code-dev",
iosIcon: "./assets/icon-composer-dev.icon",
+ splashIcon: "./assets/splash-icon-dev.png",
iosBundleIdentifier: "com.t3tools.t3code.dev",
androidPackage: "com.t3tools.t3code.dev",
relyingParty: "clerk.t3.codes",
@@ -32,6 +34,7 @@ const VARIANT_CONFIG: Record<
appName: "T3 Code Preview",
scheme: "t3code-preview",
iosIcon: "./assets/icon-composer-prod.icon",
+ splashIcon: "./assets/splash-icon-prod.png",
iosBundleIdentifier: "com.t3tools.t3code.preview",
androidPackage: "com.t3tools.t3code.preview",
relyingParty: "clerk.t3.codes",
@@ -40,6 +43,7 @@ const VARIANT_CONFIG: Record<
appName: "T3 Code",
scheme: "t3code",
iosIcon: "./assets/icon-composer-prod.icon",
+ splashIcon: "./assets/splash-icon-prod.png",
iosBundleIdentifier: "com.t3tools.t3code",
androidPackage: "com.t3tools.t3code",
relyingParty: "clerk.t3.codes",
@@ -131,12 +135,12 @@ const config: ExpoConfig = {
[
"expo-splash-screen",
{
- image: "./assets/splash-icon.png",
+ image: variant.splashIcon,
resizeMode: "contain",
backgroundColor: "#ffffff",
imageWidth: 220,
dark: {
- image: "./assets/splash-icon.png",
+ image: variant.splashIcon,
backgroundColor: "#0a0a0a",
},
},
diff --git a/apps/mobile/assets/splash-icon.png b/apps/mobile/assets/splash-icon-dev.png
similarity index 100%
rename from apps/mobile/assets/splash-icon.png
rename to apps/mobile/assets/splash-icon-dev.png
diff --git a/apps/mobile/assets/splash-icon-prod.png b/apps/mobile/assets/splash-icon-prod.png
new file mode 100644
index 000000000..e910953fa
Binary files /dev/null and b/apps/mobile/assets/splash-icon-prod.png differ