[BTAPP-59] Add flag to build-apk.sh to build an APK with the settings view hidden #88
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/BTAPP-59"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Ticket
BTAPP-59 Add flag to build-apk.sh to build an APK with the settings view hidden
Summary
Config.HideSettings(readsEXPO_PUBLIC_HIDE_SETTINGS) toapp/lib/config/index.ts, following the app's single-source-of-truth env pattern.app/app/(tabs)/_layout.tsxsetshref: nullon the Settings tab whenConfig.HideSettingsis true (Expo Router's standard way to deregister a route from the tab bar without removing it). The layout body and its test now live atapp/lib/screens/tabs-layout/— a co-located_layout.test.tsxinapp/app/collided with the route's own module slot (Expo Router'srequire.contexttreats.testas a stripped platform extension there).build-apk.shgets a new--hide-settingsflag that setsEXPO_PUBLIC_HIDE_SETTINGS=1on the gradle build step. It requires--release(a debug build loads its JS from the long-running Metro service, which never sees the env var) and force-invalidates Gradle's JS-bundling task output on every release build, so toggling the flag between builds can't reuse a stale cached bundle in either direction.EXPO_PUBLIC_HIDE_SETTINGSinapp/.env.exampleandapp/CLAUDE.md's env var table.