46 lines
2.0 KiB
Prolog
46 lines
2.0 KiB
Prolog
-dontwarn javax.annotation.Nullable
|
|
-dontwarn javax.annotation.ParametersAreNonnullByDefault
|
|
|
|
|
|
# Keep API interfaces
|
|
-keep class org.openapitools.** {
|
|
*;
|
|
}
|
|
|
|
-keep class ** extends me.him188.ani.datasources.api.subject.SubjectProvider {}
|
|
-keep class ** extends me.him188.ani.datasources.api.source.MediaSource {}
|
|
-keep class ** extends me.him188.ani.datasources.api.source.MediaSourceFactory {}
|
|
|
|
# Torrent4j
|
|
-keep class org.libtorrent4j.swig.libtorrent_jni {*;}
|
|
-keep class me.him188.ani.app.ui.settings.tabs.** {*;} # 否则设置页切换 tab 会 crash, #367
|
|
-keep class me.him188.ani.app.navigation.** {*;} # 否则启动 APP 时会 crash
|
|
-keep class me.him188.ani.app.ui.subject.cache.** {*;} # 否则点击缓存管理会 crash
|
|
|
|
|
|
# logback-android
|
|
-keepclassmembers class ch.qos.logback.classic.pattern.* { <init>(); }
|
|
# The following rules should only be used if you plan to keep
|
|
# the logging calls in your released app.
|
|
-keepclassmembers class ch.qos.logback.** { *; } #java.io.IOException: Failed to load asset path /data/app/~~2FXqiqIwzpvJbysP7TCLHQ==/me.him188.ani-fqpPfM4QmpABXA7iaUY_Cw==/base.apk
|
|
-keepclassmembers class org.slf4j.impl.** { *; }
|
|
# TODO 上面两条看起会少 optimize 非常多东西, 可以考虑优化下
|
|
-keep class ch.qos.logback.classic.android.LogcatAppender
|
|
-keep class ch.qos.logback.core.rolling.RollingFileAppender
|
|
-keep class ch.qos.logback.core.rolling.TimeBasedRollingPolicy
|
|
#-keepattributes *Annotation* # logback-android 推荐添加, 但测试可以不用添加这个
|
|
-dontwarn javax.mail.**
|
|
|
|
|
|
# anitorrent
|
|
-keep class org.openani.anitorrent.binding.** { *; }
|
|
|
|
# Android AIDL for torrent service.
|
|
-keepnames class me.him188.ani.app.domain.torrent.I* { *; }
|
|
-keepnames class me.him188.ani.app.domain.torrent.parcel.** { *; }
|
|
|
|
-keepattributes LineNumberTable,SourceFile
|
|
-renamesourcefileattribute SourceFile
|
|
-keepnames class me.him188.ani.** { *; }
|
|
-keepnames class ** { *; } # Keep all names as this only increases pacakge size by a few MBs, but significantly helps with debugging.
|