From bba3e9fc5f894b552a768079d945bda9f101b1d0 Mon Sep 17 00:00:00 2001 From: Jacek Pudysz Date: Fri, 1 Mar 2024 16:35:11 +0100 Subject: [PATCH] docs: add section about proguard android --- docs/src/content/docs/reference/faq.mdx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/src/content/docs/reference/faq.mdx b/docs/src/content/docs/reference/faq.mdx index 573528f7..85f5b2f6 100644 --- a/docs/src/content/docs/reference/faq.mdx +++ b/docs/src/content/docs/reference/faq.mdx @@ -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.** { *; } +``` +