forked from xingguangcuican6666/ABK
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproguard-rules.pro
More file actions
23 lines (19 loc) · 1 KB
/
Copy pathproguard-rules.pro
File metadata and controls
23 lines (19 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Keep Retrofit/Gson model metadata used by GitHub API responses.
-keepattributes Signature
-keepattributes *Annotation*
-keep class com.abk.kernel.data.model.** { *; }
# libsu uses reflection internally.
-keep class com.topjohnwu.superuser.** { *; }
-dontwarn com.topjohnwu.superuser.**
# Native KernelSU bridge resolves this class and profile fields by JNI name.
-keep class com.abk.kernel.utils.AbkKsuNative { *; }
-keep class com.abk.kernel.utils.AbkKsuNative$Profile { *; }
# Module WebUI JavaScript bridge methods are called by name from WebView.
-keepclassmembers class com.abk.kernel.ui.webui.ModuleWebUiActivity$ModuleWebBridge {
@android.webkit.JavascriptInterface <methods>;
}
# WorkManager initializes its Room database through reflection during app startup.
# Keep the generated database and DAO implementations intact in minified release builds.
-keep class * extends androidx.room.RoomDatabase { *; }
-keep class androidx.work.impl.WorkDatabase_Impl { *; }
-keep class androidx.work.impl.model.** { *; }