添加防混淆配置文件后 上架google play aab的体积比release apk大3MB左右
Closed this issue · 3 comments
liwei49699 commented
-ignorewarnings
-keepattributes Annotation
-keepattributes Exceptions
-keepattributes InnerClasses
-keepattributes Signature
-keepattributes SourceFile,LineNumberTable
-keep class com.huawei.hianalytics.{*;}
-keep class com.huawei.updatesdk.{;}
-keep class com.huawei.hms.**{;}
上面的几个配置是必须的吗 这样会导致aab 体积增大
liwei49699 commented
Xuejiao-Shi commented
您好,需要添加混淆,不配置混淆可能会出现找不到类等错误。
liwei49699 commented
-keep class com.huawei.hianalytics.{*;}
-keep class com.huawei.updatesdk.{;}
-keep class com.huawei.hms.**{;}
这些应该是必须的吧
-ignorewarnings
-keepattributes Annotation
-keepattributes Exceptions
-keepattributes InnerClasses
-keepattributes Signature
-keepattributes SourceFile,LineNumberTable
这些也是必须的吗
奇怪的是打的aab 比 已添加防混淆配置的release apk 要再大3M 就是引入后大了6M
然后就是mapping从3.5M变成了25M