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
./plugins
in the project root folder. - Place the
withProguardRules.js
andmy-proguard-rules.pro
in the folder - Add the config plugin to the
plugins
array of yourapp.config.js
(orapp.json
if 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.