Skip to content

混淆配置

Qu edited this page Apr 14, 2019 · 9 revisions

ComponentSDK 依赖 MVPFrames 因此需要添加以下混淆规则至 proguard-rules.pr 文件

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

同时项目引入 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

Clone this wiki locally