11import type { ExpoConfig } from "expo/config" ;
22
33import { BRAND_ASSET_PATHS } from "../../scripts/lib/brand-assets.ts" ;
4- import {
5- resolveMobileDistroIdentity ,
6- resolveMobileDistroRaw ,
7- resolveMobileUpdatesUrl ,
8- } from "../../scripts/lib/mobile-distro.ts" ;
94import { loadRepoEnv } from "../../scripts/lib/public-config.ts" ;
105
116type AppVariant = "development" | "preview" | "production" ;
@@ -14,8 +9,7 @@ const repoEnv = loadRepoEnv();
149Object . assign ( process . env , repoEnv ) ;
1510
1611const APP_VARIANT = resolveAppVariant ( repoEnv . APP_VARIANT ) ;
17- const mobileDistro = resolveMobileDistroIdentity ( resolveMobileDistroRaw ( repoEnv ) ) ;
18- const brandName = mobileDistro . productName ;
12+ const brandName = "T3 Code" ;
1913const isIosPersonalTeamBuild = repoEnv . T3CODE_IOS_PERSONAL_TEAM === "1" ;
2014const runtimeVersionPolicy =
2115 process . env . MOBILE_VERSION_POLICY ??
@@ -81,49 +75,30 @@ const RELEASE_ASSETS = {
8175 androidNotificationColor : "#FFFFFF" ,
8276} as const ;
8377
84- const MUNIM_RELEASE_ASSETS = {
85- appIcon : fromRepoRoot ( BRAND_ASSET_PATHS . munimUniversalIconPng ) ,
86- iosIcon : fromRepoRoot ( BRAND_ASSET_PATHS . munimIconComposerProject ) ,
87- splashIcon : fromRepoRoot ( BRAND_ASSET_PATHS . munimIosIconPng ) ,
88- splashIconDark : fromRepoRoot ( BRAND_ASSET_PATHS . munimIosIconLightPng ) ,
89- androidAdaptiveForeground : fromRepoRoot ( BRAND_ASSET_PATHS . munimUniversalIconPng ) ,
90- androidAdaptiveBackgroundColor : "#000000" ,
91- // The Munim mark is already full-bleed on black, so it needs no separate
92- // adaptive background layer and doubles as the Android splash image.
93- androidAdaptiveBackgroundImage : undefined ,
94- androidSplashIcon : fromRepoRoot ( BRAND_ASSET_PATHS . munimUniversalIconPng ) ,
95- androidMonochromeIcon : fromRepoRoot ( BRAND_ASSET_PATHS . munimUniversalIconPng ) ,
96- androidNotificationIcon : fromRepoRoot ( BRAND_ASSET_PATHS . munimUniversalIconPng ) ,
97- androidNotificationColor : "#FFFFFF" ,
98- } as const ;
99-
10078const VARIANT_CONFIG = {
10179 development : {
10280 appName : `${ brandName } Dev` ,
103- scheme : mobileDistro . schemeDev ,
104- iosBundleIdentifier : mobileDistro . iosBundleIdentifierDev ,
105- androidPackage : mobileDistro . androidPackageDev ,
106- relyingParty : mobileDistro . clerkRelyingParty ,
107- hostedAppDomain : mobileDistro . hostedAppDomain ,
81+ scheme : "t3code-dev" ,
82+ iosBundleIdentifier : "com.t3tools.t3code.dev" ,
83+ androidPackage : "com.t3tools.t3code.dev" ,
84+ relyingParty : "clerk.t3.codes" ,
10885 assets : DEVELOPMENT_ASSETS ,
10986 } ,
11087 preview : {
11188 appName : `${ brandName } Preview` ,
112- scheme : mobileDistro . schemePreview ,
113- iosBundleIdentifier : mobileDistro . iosBundleIdentifierPreview ,
114- androidPackage : mobileDistro . androidPackagePreview ,
115- relyingParty : mobileDistro . clerkRelyingParty ,
116- hostedAppDomain : mobileDistro . hostedAppDomain ,
89+ scheme : "t3code-preview" ,
90+ iosBundleIdentifier : "com.t3tools.t3code.preview" ,
91+ androidPackage : "com.t3tools.t3code.preview" ,
92+ relyingParty : "clerk.t3.codes" ,
11793 assets : PREVIEW_ASSETS ,
11894 } ,
11995 production : {
12096 appName : brandName ,
121- scheme : mobileDistro . scheme ,
122- iosBundleIdentifier : mobileDistro . iosBundleIdentifier ,
123- androidPackage : mobileDistro . androidPackage ,
124- relyingParty : mobileDistro . clerkRelyingParty ,
125- hostedAppDomain : mobileDistro . hostedAppDomain ,
126- assets : mobileDistro . id === "munim" ? MUNIM_RELEASE_ASSETS : RELEASE_ASSETS ,
97+ scheme : "t3code" ,
98+ iosBundleIdentifier : "com.t3tools.t3code" ,
99+ androidPackage : "com.t3tools.t3code" ,
100+ relyingParty : "clerk.t3.codes" ,
101+ assets : RELEASE_ASSETS ,
127102 } ,
128103} as const ;
129104
@@ -142,11 +117,9 @@ const variant = VARIANT_CONFIG[APP_VARIANT];
142117const iosBundleIdentifier = isIosPersonalTeamBuild
143118 ? personalTeamBundleIdentifier !
144119 : variant . iosBundleIdentifier ;
145- const mobileUpdatesUrl = resolveMobileUpdatesUrl ( mobileDistro ) ;
146120const associatedDomains = [
147121 `applinks:${ variant . relyingParty } ` ,
148122 `webcredentials:${ variant . relyingParty } ` ,
149- ...( variant . hostedAppDomain ? [ `applinks:${ variant . hostedAppDomain } ` ] : [ ] ) ,
150123] ;
151124
152125const dmSansFonts = {
@@ -207,7 +180,7 @@ const sharingPlugin: NonNullable<ExpoConfig["plugins"]>[number] = [
207180
208181const config : ExpoConfig = {
209182 name : variant . appName ,
210- slug : mobileDistro . slug ,
183+ slug : "t3-code" ,
211184 platforms : [ "ios" , "android" ] ,
212185 scheme : variant . scheme ,
213186 version : "1.1.1" ,
@@ -220,16 +193,12 @@ const config: ExpoConfig = {
220193 orientation : "portrait" ,
221194 icon : variant . assets . appIcon ,
222195 userInterfaceStyle : "automatic" ,
223- updates : mobileUpdatesUrl
224- ? {
225- enabled : repoEnv . T3CODE_MOBILE_UPDATES_ENABLED !== "0" ,
226- url : mobileUpdatesUrl ,
227- checkAutomatically : "ON_LOAD" ,
228- fallbackToCacheTimeout : 0 ,
229- }
230- : {
231- enabled : false ,
232- } ,
196+ updates : {
197+ enabled : repoEnv . T3CODE_MOBILE_UPDATES_ENABLED !== "0" ,
198+ url : "https://u.expo.dev/d763fcb8-d37c-41ea-a773-b54a0ab4a454" ,
199+ checkAutomatically : "ON_LOAD" ,
200+ fallbackToCacheTimeout : 0 ,
201+ } ,
233202 ios : {
234203 icon : variant . assets . iosIcon ,
235204 supportsTablet : true ,
@@ -240,7 +209,7 @@ const config: ExpoConfig = {
240209 // Pin code signing to the T3 Tools team so non-interactive `expo run:ios`
241210 // does not fall back to a personal team (which cannot sign app groups,
242211 // Sign in with Apple, or push notification entitlements).
243- appleTeamId : mobileDistro . appleTeamId ,
212+ appleTeamId : "ARK85ZXQ4Z" ,
244213 associatedDomains,
245214 entitlements : {
246215 "keychain-access-groups" : [ `$(AppIdentifierPrefix)${ variant . iosBundleIdentifier } ` ] ,
@@ -435,18 +404,12 @@ const config: ExpoConfig = {
435404 appVariant : APP_VARIANT ,
436405 iosPersonalTeamBuild : isIosPersonalTeamBuild ,
437406 branding : {
438- distroId : mobileDistro . id ,
439- productName : mobileDistro . productName ,
440- // The Connect name follows the baked identity, not the distro: MT Code
441- // ships with T3 Connect (T3's relay) as its sync backend.
442- connectProductName :
443- repoEnv . EXPO_PUBLIC_CLERK_PUBLISHABLE_KEY === "pk_live_Y2xlcmsudDMuY29kZXMk" ||
444- mobileDistro . id !== "munim"
445- ? "T3 Connect"
446- : "MT Connect" ,
447- scheme : mobileDistro . scheme ,
448- schemeDev : mobileDistro . schemeDev ,
449- schemePreview : mobileDistro . schemePreview ,
407+ distroId : "default" ,
408+ productName : brandName ,
409+ connectProductName : "T3 Connect" ,
410+ scheme : "t3code" ,
411+ schemeDev : "t3code-dev" ,
412+ schemePreview : "t3code-preview" ,
450413 } ,
451414 relay : {
452415 url : repoEnv . T3CODE_RELAY_URL ?? null ,
@@ -469,15 +432,11 @@ const config: ExpoConfig = {
469432 tracesDataset : repoEnv . EXPO_PUBLIC_OTLP_TRACES_DATASET ?? null ,
470433 tracesToken : repoEnv . EXPO_PUBLIC_OTLP_TRACES_TOKEN ?? null ,
471434 } ,
472- ...( mobileDistro . easProjectId
473- ? {
474- eas : {
475- projectId : mobileDistro . easProjectId ,
476- } ,
477- }
478- : { } ) ,
435+ eas : {
436+ projectId : "d763fcb8-d37c-41ea-a773-b54a0ab4a454" ,
437+ } ,
479438 } ,
480- ... ( mobileDistro . expoOwner ? { owner : mobileDistro . expoOwner } : { } ) ,
439+ owner : "pingdotgg" ,
481440} ;
482441
483442export default config ;
0 commit comments