Skip to content

Commit

Permalink
Update docs to include Dexguard keep resource rule
Browse files Browse the repository at this point in the history
  • Loading branch information
brandons authored and luancurti committed Apr 21, 2020
1 parent e5bd633 commit b1e1876
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@ When Proguard is enabled (which it is by default for Android release builds), it

`com.mypackage` should match the `package` value in your `app/src/main/AndroidManifest.xml` file.

If using Dexguard, the shrinking phase will remove resources it thinks are unused. It is necessary to add an exception to preserve the build config package name.

-keepresources string/build_config_package

## Testing

Since `react-native-config` contains native code, it cannot be run in a node.js environment (Jest, Mocha). [react-native-config-node](https://github.com/CureApp/react-native-config-node) provides a way to mock `react-native-config` for use in test runners - exactly as it is used in the actual app.
Expand Down

0 comments on commit b1e1876

Please # to comment.