From 0d1fc1dc913c87c75d7106ea667a0832288123e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B8=A1=E4=BD=A0=E5=A4=AA=E7=BE=8E?= <824868922@qq.com> Date: Mon, 7 Jun 2021 13:39:04 +0800 Subject: [PATCH] Update README.md --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 42adae2..d4043b5 100644 --- a/README.md +++ b/README.md @@ -444,6 +444,20 @@ private val mainViewModel by lazy { getAppViewModel()} 的包中看,反正你也可以自己写,按照自己的喜好与需求来 ``` +## 7.混淆 + +``` +-keep class me.hgj.jetpackmvvm.**{*;} +-keep class com.google.android.material.** {*;} +-keep class androidx.** {*;} +-keep public class * extends androidx.** +-keep interface androidx.** {*;} +-dontwarn com.google.android.material.** +-dontnote com.google.android.material.** +-dontwarn androidx.** +``` + + ## 感谢 - [Jetpack-MVVM-Best-Practice](https://github.com/KunMinX/Jetpack-MVVM-Best-Practice) - [重学安卓](https://xiaozhuanlan.com/kunminx?rel=8184827882)