Skip to content

Commit f370732

Browse files
mCodexCopilot
andcommitted
docs: add ProGuard rule to README for Nitro class preservation
Co-authored-by: Copilot <copilot@github.com>
1 parent a38bbf7 commit f370732

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,14 @@ cd ios && pod install
7979

8080
Autolinking handles everything. No manual `MainApplication` edits required.
8181

82+
> [!NOTE]
83+
> If you have ProGuard/R8 enabled (release builds), add the following rule to `android/app/proguard-rules.pro` to prevent the native Nitro class from being stripped:
84+
> ```pro
85+
> # react-native-inappbrowser-nitro
86+
> -keep class com.inappbrowsernitro.** { *; }
87+
> ```
88+
> Without this, release builds may crash with `Couldn't find class 'com/inappbrowsernitro/HybridInappbrowserNitro'`.
89+
8290
---
8391
8492
## 🚀 Quick start

0 commit comments

Comments
 (0)