My signing plugin had unit tests. They passed. The release bundle it produced was still signed with the Android debug key, and I only found out by accident.
How it happened
A bare Expo project gets its android/ folder from expo prebuild . In that generated build.gradle , the release build type points at the debug signing config. Play Console refuses a debug-signed upload, so you have to change that line. Since expo prebuild --clean throws the folder away, I change it from a config plugin that rewrites the file on every prebuild.
The plugin looked for the old form of the line. Recent React Native templates (I noticed it on 0.81) add an equals sign:
- signingConfig signingConfigs.debug + signingConfig = signingConfigs.debug
Enter fullscreen mode
Exit fullscreen mode
My regex didn't match, so the plugin quietly did nothing. The build succeeded.…