If you ever need to modify the proguard rules for the Android-part of your Expo managed workflow, you can achieve this by using a config plugin.
- Make a folder for config-plugins called
./pluginsin the project root folder. - Place the
withProguardRules.jsandmy-proguard-rules.proin the folder - Add the config plugin to the
pluginsarray of yourapp.config.js(orapp.jsonif you're using that instead).
NOTE: if you rename your .pro file, don't forget to change the two occurrences of my-proguard-rules in withProguardRules.js as well.
This solution was inspired by the detox config-plugin
[ "expo-build-properties", { "android": { "enableProguardInReleaseBuilds": true, "extraProguardRules": " - keep single string only" } } ]