KwaiAppTeam / KOOM

KOOM is an OOM killer on mobile platform by Kwai.
Other
3.2k stars 426 forks source link

R8混淆,补到文档里吧 #270

Open CatJason opened 9 months ago

CatJason commented 9 months ago

尤其是这部分,./gradlew --debug 编译完log缺130多个类 -keep class com.squareup.javapoet. -keep class com.squareup.otto. -keep class com.ss.android.ugc.effectmanager. -keep class java.awt. -keep class javax.lang.model. -keep class org.springframework.

完整

Koom

-keep class kshark.internal.aosp. { *; } -keep class kshark.internal.hppc.* { ; } -keep class kshark.internal. { *; } -keep class kshark.* { ; }

-keep class com.kwai.koom.fastdump.* { ; }

-keep class com.kwai.koom.javaoom.hprof. { *; } -keep class com.kwai.koom.javaoom.monitor.* { ; } -keep class com.kwai.koom.javaoom.monitor.analysis. { *; } -keep class com.kwai.koom.javaoom.monitor.analysis. { *; } -keep class com.kwai.koom.javaoom.monitor.tracker.* { ; } -keep class com.kwai.koom.javaoom.monitor.tracker.model. { *; } -keep class com.kwai.koom.javaoom.monitor.utils.* { ; }

-keep class com.kwai.koom.base.* { ; } -keep class com.kwai.koom.base.loop.* { ; }

-keep class com.kwai.koom.nativeoom.leakmonitor.* { ; } -keep class com.kwai.koom.nativeoom.leakmonitor.allocationtag.* { ; }

-keep class com.kwai.koom.javaoom.hprof.* { ; } -keep class com.kwai.koom.javaoom.monitor.* { ; }

Koom 初始化

-keep class kshark.internal.aosp. { (...); } -keep class kshark.internal.hppc. { (...); } -keep class kshark.internal. { (...); } -keep class kshark. { (...); }

-keep class com.kwai.koom.fastdump.** { (...); }

-keep class com.kwai.koom.javaoom.hprof. { (...); } -keep class com.kwai.koom.javaoom.monitor. { (...); } -keep class com.kwai.koom.javaoom.monitor.analysis. { (...); } -keep class com.kwai.koom.javaoom.monitor.analysis. { (...); } -keep class com.kwai.koom.javaoom.monitor.tracker. { (...); } -keep class com.kwai.koom.javaoom.monitor.tracker.model. { (...); } -keep class com.kwai.koom.javaoom.monitor.utils.** { (...); }

-keep class com.kwai.koom.base. { (...); } -keep class com.kwai.koom.base.loop. { (...); }

-keep class com.kwai.koom.nativeoom.leakmonitor. { (...); } -keep class com.kwai.koom.nativeoom.leakmonitor.allocationtag. { (...); }

-keep class com.kwai.koom.javaoom.hprof. { (...); } -keep class com.kwai.koom.javaoom.monitor. { (...); }

-keep class com.squareup.javapoet. { *; } -keep class com.squareup.otto.* { ; } -keep class com.ss.android.ugc.effectmanager. { *; } -keep class java.awt. { *; } -keep class javax.lang.model.* { ; } -keep class org.springframework. { *; }

-keep class com.squareup.javapoet. { (...); } -keep class com.squareup.otto. { (...); } -keep class com.ss.android.ugc.effectmanager. { (...); } -keep class java.awt. { (...); } -keep class javax.lang.model. { (...); } -keep class org.springframework. { (...); }