Menu

1 / 5

My signing plugin's tests passed. The release bundle was still debug-signed.

DEV Community: reactnative·Yuji Numata·7 days ago
#qp5YP4SR
#devtoreactnative#devto#dev#android#build
Long article (462 words) — no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.