I shipped Becoming on Google Play this month: an Expo app (SDK 57, React Native 0.86) that lines up photos taken weeks apart into one steady timelapse, all on the phone. My CI runs expo prebuild --clean on every build, so android/ is thrown away each time and every native change has to live in a config plugin. These are the six I ended up writing, each one for a real failure:
1. R8 ran out of memory. The first release build with R8 on died after twelve minutes of garbage collection: `OutOfMemoryError: Java heap space`. Expo's template gives Gradle 2 GB, and ML Kit + Skia + Expo come to about 34,000 classes. The plugin sets -Xmx4g and compiles Kotlin in-process, so it's one 4 GB JVM on GitHub's 7 GB runner instead of two.
2. The same class twice. A widget library asks for work-runtime:2.8.1, something else drags in `work-runtime-ktx:2.7.0`. At 2.8 AndroidX moved the ktx classes into work-runtime, so 2.7 next to 2.8 ships them twice and checkReleaseDuplicateClasses fails. The plugin pins both to 2.8.1. Nothing upgraded, nothing excluded.
3. A photo in the Recents switcher. The home screen shows your newest photo, often a face or a body, and Android keeps a screenshot of it on the app's card in the switcher. FLAG_SECURE would fix that but also block your own screenshots, which people take on purpose here. setRecentsScreenshotEnabled(false)(API 33+) shows the icon instead.
4. Uninstall deleted everything. Photos live only in the app's private storage, with backup off. android:hasFragileUserData (Android 10+) adds a "Keep app data" box to the system's uninstall dialog.
5. Play wanted native debug symbols. There's no crash SDK in the app, so Android Vitals is the only crash report I get. Setting ndk.debugSymbolLevel to SYMBOL_TABLE puts the symbol tables in the bundle, so a native crash in Hermes or Skia shows function names instead of addresses.
6. A storage permission I didn't need. expo-media-library declares write access through API 32; my saver uses scoped MediaStore from API 29, so the plugin caps WRITE_EXTERNAL_STORAGE at API 28.
Most of them are a plain function I can unit test without prebuilding, and the release workflow fails if the heap, WorkManager or symbols plugin didn't apply: a plugin that silently does nothing is worse than none.
What's the config plugin you had to write that you wish Expo shipped by default?