11import type { ExpoConfig } from "expo/config" ;
22
3+ import { BRAND_ASSET_PATHS } from "../../scripts/lib/brand-assets.ts" ;
34import { loadRepoEnv } from "../../scripts/lib/public-config.ts" ;
45
56type AppVariant = "development" | "preview" | "production" ;
@@ -13,6 +14,8 @@ const isIosPersonalTeamBuild = repoEnv.T3CODE_IOS_PERSONAL_TEAM === "1";
1314const personalTeamBundleIdentifier = repoEnv . T3CODE_IOS_PERSONAL_TEAM_BUNDLE_ID ?. trim ( ) ;
1415const IOS_BUNDLE_IDENTIFIER_PATTERN = / ^ [ A - Z a - z 0 - 9 - ] + (?: \. [ A - Z a - z 0 - 9 - ] + ) + $ / ;
1516
17+ const fromRepoRoot = ( relativePath : string ) => `../../${ relativePath } ` ;
18+
1619if (
1720 isIosPersonalTeamBuild &&
1821 ( ! personalTeamBundleIdentifier ||
2427}
2528
2629const DEVELOPMENT_ASSETS = {
27- appIcon : "./assets/splash-icon-dev.png" ,
28- iosIcon : "./assets/icon-composer-dev.icon" ,
29- splashIcon : "./assets/splash-icon-dev.png" ,
30- androidAdaptiveForeground : "./assets/android-icon-dev-foreground.png" ,
30+ appIcon : fromRepoRoot ( BRAND_ASSET_PATHS . developmentIosIconPng ) ,
31+ iosIcon : fromRepoRoot ( BRAND_ASSET_PATHS . developmentIconComposerProject ) ,
32+ splashIcon : fromRepoRoot ( BRAND_ASSET_PATHS . developmentIosIconPng ) ,
33+ androidAdaptiveForeground : fromRepoRoot ( BRAND_ASSET_PATHS . developmentUniversalIconPng ) ,
3134 androidAdaptiveBackgroundColor : "#00639B" ,
3235 androidMonochromeIcon : "./assets/android-icon-mark.png" ,
3336 androidNotificationIcon : "./assets/android-notification-icon.png" ,
3437 androidNotificationColor : "#00639B" ,
3538} as const ;
3639
40+ const PREVIEW_ASSETS = {
41+ appIcon : fromRepoRoot ( BRAND_ASSET_PATHS . nightlyIosIconPng ) ,
42+ iosIcon : fromRepoRoot ( BRAND_ASSET_PATHS . nightlyIconComposerProject ) ,
43+ splashIcon : fromRepoRoot ( BRAND_ASSET_PATHS . nightlyIosIconPng ) ,
44+ androidAdaptiveForeground : fromRepoRoot ( BRAND_ASSET_PATHS . nightlyLinuxIconPng ) ,
45+ androidAdaptiveBackgroundColor : "#111533" ,
46+ androidMonochromeIcon : "./assets/android-icon-mark.png" ,
47+ androidNotificationIcon : "./assets/android-notification-icon.png" ,
48+ androidNotificationColor : "#7565C7" ,
49+ } as const ;
50+
3751const RELEASE_ASSETS = {
38- appIcon : "./assets/splash-icon-prod.png" ,
39- iosIcon : "./assets/icon-composer-prod.icon" ,
40- splashIcon : "./assets/splash-icon-prod.png" ,
52+ appIcon : fromRepoRoot ( BRAND_ASSET_PATHS . productionIosIconPng ) ,
53+ iosIcon : fromRepoRoot ( BRAND_ASSET_PATHS . productionIconComposerProject ) ,
54+ splashIcon : fromRepoRoot ( BRAND_ASSET_PATHS . productionIosIconPng ) ,
4155 androidAdaptiveForeground : "./assets/android-icon-mark.png" ,
4256 androidAdaptiveBackgroundColor : "#000000" ,
4357 androidMonochromeIcon : "./assets/android-icon-mark.png" ,
@@ -60,7 +74,7 @@ const VARIANT_CONFIG = {
6074 iosBundleIdentifier : "com.t3tools.t3code.preview" ,
6175 androidPackage : "com.t3tools.t3code.preview" ,
6276 relyingParty : "clerk.t3.codes" ,
63- assets : RELEASE_ASSETS ,
77+ assets : PREVIEW_ASSETS ,
6478 } ,
6579 production : {
6680 appName : "T3 Code" ,
0 commit comments