From 4d1c566afa6228ee3c842d70f7229eb09b5ba293 Mon Sep 17 00:00:00 2001 From: neodk2004 Date: Sun, 6 Sep 2026 20:20:28 +0200 Subject: [PATCH] fix(mobile): correct dark-mode config, pin native builds to production MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit userInterfaceStyle was hardcoded to "light" in app.json — since the app resolves its "Automatic" theme option via RN's useColorScheme(), which Expo only wires up to the OS when userInterfaceStyle is "automatic", the auto setting would have silently never followed the system theme in a real native build (only worked in the dev client, which isn't gated by this app.json field the same way). Also pin the preview/production EAS build profiles' EXPO_PUBLIC_* env vars explicitly in eas.json. .env is gitignored, so a cloud build has no guarantee of seeing it (or seeing the right values) — this makes the native build's API/Clerk/Supabase targets explicit and independent of whatever's in the local .env at build time. Values are non-secret (EXPO_PUBLIC_* is always inlined into the client bundle). --- mobile/app.json | 2 +- mobile/eas.json | 15 +++++++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/mobile/app.json b/mobile/app.json index 7671f2b..99b7a87 100644 --- a/mobile/app.json +++ b/mobile/app.json @@ -6,7 +6,7 @@ "version": "1.0.0", "orientation": "portrait", "icon": "./assets/icon.png", - "userInterfaceStyle": "light", + "userInterfaceStyle": "automatic", "newArchEnabled": true, "ios": { "supportsTablet": true, diff --git a/mobile/eas.json b/mobile/eas.json index 1a3081b..f753742 100644 --- a/mobile/eas.json +++ b/mobile/eas.json @@ -9,9 +9,20 @@ "distribution": "internal" }, "preview": { - "distribution": "internal" + "distribution": "internal", + "env": { + "EXPO_PUBLIC_API_URL": "https://pawfeed.org", + "EXPO_PUBLIC_CLERK_PUBLISHABLE_KEY": "pk_live_Y2xlcmsucGF3ZmVlZC5vcmck", + "EXPO_PUBLIC_SUPABASE_URL": "https://gqhsovpcfgffdtjxumyy.supabase.co" + } }, - "production": {} + "production": { + "env": { + "EXPO_PUBLIC_API_URL": "https://pawfeed.org", + "EXPO_PUBLIC_CLERK_PUBLISHABLE_KEY": "pk_live_Y2xlcmsucGF3ZmVlZC5vcmck", + "EXPO_PUBLIC_SUPABASE_URL": "https://gqhsovpcfgffdtjxumyy.supabase.co" + } + } }, "submit": { "production": {}