Skip to content

Commit 3a0b348

Browse files
committed
🧑‍💻: Add ProGuard rules
1 parent e69b5a7 commit 3a0b348

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,16 @@ For hooks like `useRequest`, its return value can deconstruct many objects and f
144144

145145
Editor - Inlay Hints - Types - Kotlin
146146

147+
## ProGuard
148+
If you are using ProGuard you might need to add the following option:
149+
150+
```
151+
-keep class xyz.junerver.composehooks.** { *; }
152+
-keepclassmembers class xyz.junerver.composehooks.** { *; }
153+
-dontwarn xyz.junerver.composehooks.**
154+
```
155+
156+
147157
## Documentation
148158

149159
- [Easily manage network requests with useRequest](https://junerver.xyz/2024/03/06/%E5%9C%A8Compose%E4%B8%AD%E4%BD%BF%E7%94%A8useRequest%E8%BD%BB%E6%9D%BE%E7%AE%A1%E7%90%86%E7%BD%91%E7%BB%9C%E8%AF%B7%E6%B1%82/)

README.zh-CN.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,15 @@ implementation("xyz.junerver.compose:hooks:<latest_release>")
143143

144144
Editor - Inlay Hints - Types - Kotlin
145145

146+
## 混淆
147+
如果你的项目需要使用 ProGuard,请加入下面的混淆规则:
148+
149+
```
150+
-keep class xyz.junerver.composehooks.** { *; }
151+
-keepclassmembers class xyz.junerver.composehooks.** { *; }
152+
-dontwarn xyz.junerver.composehooks.**
153+
```
154+
146155
## 文档
147156

148157
- [在Compose中使用useRequest轻松管理网络请求](https://junerver.xyz/2024/03/06/%E5%9C%A8Compose%E4%B8%AD%E4%BD%BF%E7%94%A8useRequest%E8%BD%BB%E6%9D%BE%E7%AE%A1%E7%90%86%E7%BD%91%E7%BB%9C%E8%AF%B7%E6%B1%82/)

0 commit comments

Comments
 (0)