Skip to content

混淆配置

Qu edited this page Apr 15, 2019 · 9 revisions

项目需要引入 ARouter 所以需要添加以下混淆规则

-keep public class com.alibaba.android.arouter.routes.**{*;}
-keep public class com.alibaba.android.arouter.facade.**{*;}
-keep class * implements com.alibaba.android.arouter.facade.template.ISyringe{*;}
-keep interface * implements com.alibaba.android.arouter.facade.template.IProvider
-keep class * implements com.alibaba.android.arouter.facade.template.IProvider

基础组件 ComponentSDK 依赖 MVPFrames 基础库,因此需要添加以下混淆规则至 proguard-rules.pro 文件

-keep public class * implements me.mvp.frame.integration.ConfigModule
-keep class * implements me.mvp.frame.frame.IModel {
    <methods>;
    <fields>;
}

其他混淆规则详见 → proguard-rules.pro

Clone this wiki locally