You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
1.9 KiB
74 lines
1.9 KiB
# 忽略警告 |
|
#-ignorewarning |
|
|
|
# 混淆保护自己项目的部分代码以及引用的第三方jar包 |
|
#-libraryjars libs/xxxxxxxxx.jar |
|
|
|
# 屏蔽打包提示第三方库内部缺少引用,由于第三方库内部有一些都是采用动态引用类 |
|
-dontwarn com.sun.** |
|
-dontwarn com.umeng.** |
|
-dontwarn java.lang.** |
|
-dontwarn javax.lang.** |
|
-dontwarn javax.tools.** |
|
-dontwarn lombok.** |
|
-dontwarn org.apache.tools.** |
|
-dontwarn org.bouncycastle.** |
|
-dontwarn org.conscrypt.** |
|
-dontwarn org.eclipse.** |
|
-dontwarn org.mapstruct.** |
|
-dontwarn org.openjsse.** |
|
-dontwarn org.openjsse.** |
|
|
|
|
|
# 第三方依赖 |
|
# Glide |
|
-keep public class * implements com.bumptech.glide.module.GlideModule |
|
-keep class * extends com.bumptech.glide.module.AppGlideModule { |
|
<init>(...); |
|
} |
|
-keep public enum com.bumptech.glide.load.ImageHeaderParser$** { |
|
**[] $VALUES; |
|
public *; |
|
} |
|
-keep class com.bumptech.glide.load.data.ParcelFileDescriptorRewinder$InternalRewinder { |
|
*** rewind(); |
|
} |
|
|
|
# Bugly |
|
-dontwarn com.tencent.bugly.** |
|
-keep public class com.tencent.bugly.**{*;} |
|
|
|
# OkHttp3 |
|
-keepattributes Signature |
|
-keepattributes *Annotation* |
|
-keep class okhttp3.** { *; } |
|
-keep interface okhttp3.** { *; } |
|
-dontwarn okhttp3.** |
|
-dontwarn okio.** |
|
-dontwarn org.conscrypt.** |
|
|
|
# PictureSelector |
|
-keep class com.luck.picture.lib.** { *; } |
|
|
|
#glide |
|
-keep public class * implements com.bumptech.glide.module.GlideModule |
|
-keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$** { |
|
**[] $VALUES; |
|
public *; |
|
} |
|
|
|
#huawei-push |
|
-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.**{*;} |
|
|
|
# 禁止类名混淆,否则通过类名称找不到类 |
|
-keep class com.kanglai.push.entity.**{*;} |
|
-keep class com.kanglai.push.ui.activity.**{*;} |
|
-keep class com.kanglai.push.ui.fragment.**{*;} |