r/reactnative • u/harpreetkbadhan • 23m ago
5 release mistakes that pass code review but ship in your .ipa / .aab (and how to check the built file)
Code review looks at the repo, but what users get is the file your build produced. With env-switched app.config.ts, Expo prebuild and config plugins, the two drift apart. These are the mistakes I see most, and all of them are visible only in the built app:
1. A secret key in the JS bundle. Hermes bytecode stores strings as plain text, so anyone with the app file can read them. Publishable keys (Stripe pk_, Firebase, the Supabase anon key) are fine. Secret keys (Stripe sk_live_, AWS, OpenAI, a Supabase service_role key) belong on a server.
2. A staging or localhost API URL. EXPO_PUBLIC_API_URL set in the wrong EAS profile, a .env that wasn't swapped, or the emulator fallback http://10.0.2.2:3000 left in.
3. Staging domains in deep links. Associated domains (iOS) and App Links (Android) are often switched by APP_VARIANT. If the production build claims staging.example.com, universal links quietly break. On iOS, only the entitlements inside the signed executable show what really shipped.
4. A debuggable or development-signed build. android:debuggable="true", or an iOS build with get-task-allow (the App Store rejects it).
5. Source maps inside the app. A .map file or an inline sourceMappingURL gives away your original source.
Checking by hand: unzip the .aab / .ipa, then run strings on the bundle and grep for sk_live, localhost, staging, 10.0.2.2. For iOS deep links, run codesign -d --entitlements - Payload/YourApp.app.
I got tired of doing that by hand, so I wrote a small free, MIT-licensed CLI that does all of the above in about a second, with no upload and no dependencies. You can try it on a demo build with planted mistakes:
curl -LO https://github.com/harpreetkbadhan/release-lint-demo/releases/download/v1.0.0/release-lint-demo.aab
npx app-release-lint release-lint-demo.aabRepo: https://github.com/harpreetkbadhan/release-lint
What release mistakes have you shipped that I didn't list? I'd like to add checks for them.
