Skip to content

Commit

Permalink
docs: add section about proguard android
Browse files Browse the repository at this point in the history
  • Loading branch information
jpudysz committed Mar 1, 2024
1 parent 0cba775 commit bba3e9f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/src/content/docs/reference/faq.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,13 @@ If you encounter any issues with `array.prototype.at`, please consider using a [

Yes, Unistyles supports both macOS with `react-native-macos` and Windows with `react-native-windows` packages.

### My release app is crashing on startup (Android) with ProGuard enabled

It's essential to keep the Unistyles code from being obfuscated. Unistyles is using JNI with reflection, and ProGuard can break it.
To fix this, add the following line to your `proguard-rules.pro` file:

```proguard
-keep class com.unistyles.** { *; }
```

</Seo>

0 comments on commit bba3e9f

Please sign in to comment.