"A test that runs on a fixture only proves the fixture" is the line I'd put on the wall. A regex config plugin against a template that changes under you is exactly where that bites, and it never fails loudly.
The iOS side of an Expo app has the same trap, so if your starter kit grows an iOS check, the artifact-level version is short. Unzip the .ipa and ask the binary rather than the config:
The two things that bounce most often: get-task-allow still true (a development profile slipped into the release build) and aps-environment set to development when push is enabled. Both look fine in app.json and in a config plugin's unit test, and both only show up in the signed bundle, same as your debug key.
Thanks, this is useful. The kit is Android-only right now and I haven't built an .ipa from it yet, so I can't try these on a real bundle today. I've saved the commands for when I do.
The aps-environment one is a good catch. It would pass every config test I have, the same way the debug key did.
When get-task-allow is still true, does it fail at upload in App Store Connect, or later in review?
At upload, so you find out early rather than in review. App Store Connect validates the signature when the build is processed, and a binary with get-task-allow true means it was signed with a development profile. In my experience that fails during upload validation (the error mentions an invalid code signing entitlement), so it never reaches TestFlight, let alone review.
aps-environment is the sneakier one for exactly that reason: a development value can get through upload on some setups, and then push simply doesn't arrive in the production build. That's why I'd check the bundle instead of waiting for the store to complain.
Makes sense to keep them for when the kit gets an iOS target.
So aps-environment is the worse one. Upload passes, nothing errors, and push just never shows up for real users. At least a debug-signed bundle gets refused at upload.
Thanks for explaining it. When I add the iOS target, these go in next to the keytool check.
Android and mobile engineer writing about shipping AI-assisted Android and iOS code: release gates, maintainability, and the decisions that still need a human.
Running keytool on the bundle is the check that actually proves the signing, since the plugin test only proved the regex matched an old template. A fixture copied from the current template on each React Native bump would catch the next syntax change before release. I'd also make the plugin fail loudly when the pattern matches nothing, instead of quietly returning the file unchanged.
You're right, the unit test only proved my regex matched an old copy of the template. The silent no-match is the worst part, because the plugin just left the file as it was and nothing told me. I haven't added a fail-on-no-match yet, but if I do, it will throw an error instead of returning quietly. For now the real guard is the keytool check on the built .aab, which I put in expo-play-check so it exits 1 in CI.
Android and mobile engineer writing about shipping AI-assisted Android and iOS code: release gates, maintainability, and the decisions that still need a human.
Making the plugin throw on no match would turn that silent skip into a failed build, which is the signal you were missing. Until then, a keytool check that exits 1 in CI is a solid backstop because it reads the real .aab.
Agreed, a failed build is the signal I was missing. The plugin did the wrong thing and still looked fine, so only reading the real .aab caught it. One limit I should mention: with Play App Signing on, keytool shows the upload key, not the key Google signs the store build with. So the check proves the build used my key, and I still look at the final signing key on the app signing page in Play Console.
Worth knowing if Play App Signing is on (the default for new apps): the cert keytool prints is your upload key, while installs from Play are signed with Google's app signing key. So the bundle check proves Play will accept the upload, but SHA-1 fingerprints for Google Sign-In, Firebase or Maps API restrictions still have to come from the App signing page in Play Console, not from the .aab.
You are right. With Play App Signing on, keytool only shows the upload key. The key Google uses to sign installs from Play is not in the .aab, so expo-play-check can't see it. For Google Sign-In, Firebase or Maps restrictions, take the SHA-1 from the App signing page in Play Console. One small thing: the check only reads local files, so it doesn't promise that Play will accept the upload either.
This is the exact class of bug I find scariest — every test green, and the release still ships broken because the check looked at the template instead of the artifact. The keytool check for CN=Android Debug is such a cheap, decisive gate; I am adding a version of that to my own release flow. One thing I am curious about: does expo-play-check catch the AD_ID/BILLING manifest mismatch too, or is that still a manual step before you upload? And do you run it on every release branch in CI, or only when you prebuild?
Partly. It reads the merged release manifest and flags AD_ID and BILLING, but it never connects to Play Console. So matching that against your ads ID and data safety answers is still manual, and that mismatch is what got my app rejected in September. It exits 1 on failure, so it fits in CI. It reads the built .aab though, so run it after the release build, not only after prebuild.
We're a place where coders share, stay up-to-date and grow their careers.
"A test that runs on a fixture only proves the fixture" is the line I'd put on the wall. A regex config plugin against a template that changes under you is exactly where that bites, and it never fails loudly.
The iOS side of an Expo app has the same trap, so if your starter kit grows an iOS check, the artifact-level version is short. Unzip the .ipa and ask the binary rather than the config:
The two things that bounce most often:
get-task-allowstill true (a development profile slipped into the release build) andaps-environmentset to development when push is enabled. Both look fine in app.json and in a config plugin's unit test, and both only show up in the signed bundle, same as your debug key.Thanks, this is useful. The kit is Android-only right now and I haven't built an .ipa from it yet, so I can't try these on a real bundle today. I've saved the commands for when I do.
The aps-environment one is a good catch. It would pass every config test I have, the same way the debug key did.
When get-task-allow is still true, does it fail at upload in App Store Connect, or later in review?
At upload, so you find out early rather than in review. App Store Connect validates the signature when the build is processed, and a binary with get-task-allow true means it was signed with a development profile. In my experience that fails during upload validation (the error mentions an invalid code signing entitlement), so it never reaches TestFlight, let alone review.
aps-environment is the sneakier one for exactly that reason: a development value can get through upload on some setups, and then push simply doesn't arrive in the production build. That's why I'd check the bundle instead of waiting for the store to complain.
Makes sense to keep them for when the kit gets an iOS target.
So aps-environment is the worse one. Upload passes, nothing errors, and push just never shows up for real users. At least a debug-signed bundle gets refused at upload.
Thanks for explaining it. When I add the iOS target, these go in next to the keytool check.
Running keytool on the bundle is the check that actually proves the signing, since the plugin test only proved the regex matched an old template. A fixture copied from the current template on each React Native bump would catch the next syntax change before release. I'd also make the plugin fail loudly when the pattern matches nothing, instead of quietly returning the file unchanged.
You're right, the unit test only proved my regex matched an old copy of the template. The silent no-match is the worst part, because the plugin just left the file as it was and nothing told me. I haven't added a fail-on-no-match yet, but if I do, it will throw an error instead of returning quietly. For now the real guard is the keytool check on the built .aab, which I put in expo-play-check so it exits 1 in CI.
Making the plugin throw on no match would turn that silent skip into a failed build, which is the signal you were missing. Until then, a keytool check that exits 1 in CI is a solid backstop because it reads the real .aab.
Agreed, a failed build is the signal I was missing. The plugin did the wrong thing and still looked fine, so only reading the real .aab caught it. One limit I should mention: with Play App Signing on, keytool shows the upload key, not the key Google signs the store build with. So the check proves the build used my key, and I still look at the final signing key on the app signing page in Play Console.
Worth knowing if Play App Signing is on (the default for new apps): the cert keytool prints is your upload key, while installs from Play are signed with Google's app signing key. So the bundle check proves Play will accept the upload, but SHA-1 fingerprints for Google Sign-In, Firebase or Maps API restrictions still have to come from the App signing page in Play Console, not from the .aab.
You are right. With Play App Signing on, keytool only shows the upload key. The key Google uses to sign installs from Play is not in the .aab, so expo-play-check can't see it. For Google Sign-In, Firebase or Maps restrictions, take the SHA-1 from the App signing page in Play Console. One small thing: the check only reads local files, so it doesn't promise that Play will accept the upload either.
This is the exact class of bug I find scariest — every test green, and the release still ships broken because the check looked at the template instead of the artifact. The keytool check for CN=Android Debug is such a cheap, decisive gate; I am adding a version of that to my own release flow. One thing I am curious about: does expo-play-check catch the AD_ID/BILLING manifest mismatch too, or is that still a manual step before you upload? And do you run it on every release branch in CI, or only when you prebuild?
Partly. It reads the merged release manifest and flags AD_ID and BILLING, but it never connects to Play Console. So matching that against your ads ID and data safety answers is still manual, and that mismatch is what got my app rejected in September. It exits 1 on failure, so it fits in CI. It reads the built .aab though, so run it after the release build, not only after prebuild.