build(servicing): 更新构建配置并升级版本号
-禁用 release 和 debug 构建类型的代码压缩 - 添加 publishNonDefault 配置项 -将版本号从 1.0.1.9.9.126 升级到 1.0.1.9.9.127
This commit is contained in:
106
servicing/proguard-rules.pro
vendored
106
servicing/proguard-rules.pro
vendored
@ -1,3 +1,5 @@
|
||||
-dontwarn java.lang.invoke.StringConcatFactory
|
||||
|
||||
# 保留行号用于调试
|
||||
-keepattributes SourceFile,LineNumberTable
|
||||
-renamesourcefileattribute SourceFile
|
||||
@ -8,19 +10,42 @@
|
||||
-keepattributes Exceptions
|
||||
-keepattributes InnerClasses
|
||||
|
||||
-dontwarn com.github.luben.zstd.BufferPool
|
||||
-dontwarn com.github.luben.zstd.ZstdInputStream
|
||||
-dontwarn com.github.luben.zstd.ZstdOutputStream
|
||||
-dontwarn org.brotli.dec.BrotliInputStream
|
||||
-dontwarn org.objectweb.asm.AnnotationVisitor
|
||||
-dontwarn org.objectweb.asm.Attribute
|
||||
-dontwarn org.objectweb.asm.ClassReader
|
||||
-dontwarn org.objectweb.asm.ClassVisitor
|
||||
-dontwarn org.objectweb.asm.FieldVisitor
|
||||
-dontwarn org.objectweb.asm.Label
|
||||
-dontwarn org.objectweb.asm.MethodVisitor
|
||||
-dontwarn org.objectweb.asm.Type
|
||||
|
||||
# 保留R文件
|
||||
-keepclassmembers class **.R$* {
|
||||
public static <fields>;
|
||||
}
|
||||
|
||||
# 保留servicing模块中的所有model类
|
||||
-keep class com.za.servicing.model.** { *; }
|
||||
-keep class com.za.bean.** { *; }
|
||||
-keep class com.za.bean.db.** { *; }
|
||||
-keep class com.za.bean.request.** { *; }
|
||||
|
||||
# 保留servicing模块中的所有接口
|
||||
-keep interface com.za.servicing.** { *; }
|
||||
-keep interface com.za.net.** { *; }
|
||||
|
||||
# 保留servicing模块中的所有枚举
|
||||
-keepclassmembers enum com.za.servicing.** { *; }
|
||||
-keepclassmembers enum com.za.** { *; }
|
||||
|
||||
# 保留Room数据库相关类
|
||||
-keep class com.za.room.** { *; }
|
||||
-keep class com.za.room.db.** { *; }
|
||||
-keep class * extends androidx.room.RoomDatabase
|
||||
-keep @androidx.room.Entity class *
|
||||
-keep @androidx.room.Dao interface *
|
||||
|
||||
# 保留Parcelable实现类
|
||||
-keep class * implements android.os.Parcelable {
|
||||
@ -58,6 +83,10 @@
|
||||
void set*(***); *** get*();
|
||||
}
|
||||
|
||||
# CameraX相关
|
||||
-keep class androidx.camera.** { *; }
|
||||
-dontwarn androidx.camera.**
|
||||
|
||||
# Coil图片加载库
|
||||
-keep class coil.** { *; }
|
||||
-dontwarn coil.**
|
||||
@ -75,7 +104,6 @@
|
||||
|
||||
# JPush相关
|
||||
-dontoptimize
|
||||
-dontpreverify
|
||||
-dontwarn cn.jpush.**
|
||||
-keep class cn.jpush.** { *; }
|
||||
-dontwarn cn.jcore.**
|
||||
@ -105,13 +133,12 @@
|
||||
long consumerIndex;
|
||||
}
|
||||
|
||||
#blankJ
|
||||
# BlankJ工具库
|
||||
-dontwarn com.blankj.utilcode.**
|
||||
|
||||
-keep class com.blankj.utilcode.** { *; }
|
||||
-keepclassmembers class * {
|
||||
@com.blankj.utilcode.util.BusUtils$Bus <methods>;
|
||||
}
|
||||
|
||||
-keep public class * extends com.blankj.utilcode.util.ApiUtils$BaseApi
|
||||
-keep,allowobfuscation @interface com.blankj.utilcode.util.ApiUtils$Api
|
||||
-keep @com.blankj.utilcode.util.ApiUtils$Api class *
|
||||
@ -122,41 +149,27 @@
|
||||
-keep public class * {
|
||||
public protected *;
|
||||
}
|
||||
# Preserve all .class method names.
|
||||
|
||||
# 保留所有类的方法名
|
||||
-keepclassmembernames class * {
|
||||
java.lang.Class class$(java.lang.String);
|
||||
java.lang.Class class$(java.lang.String, boolean);
|
||||
}
|
||||
|
||||
# Preserve all native method names and the names of their classes.
|
||||
|
||||
-keepclasseswithmembernames class * {
|
||||
native <methods>;
|
||||
}
|
||||
|
||||
# Preserve the special static methods that are required in all enumeration
|
||||
# classes.
|
||||
|
||||
# 保留枚举类中的特殊静态方法
|
||||
-keepclassmembers class * extends java.lang.Enum {
|
||||
public static **[] values();
|
||||
public static ** valueOf(java.lang.String);
|
||||
}
|
||||
|
||||
-keepclassmembers class * implements java.io.Serializable {
|
||||
static final long serialVersionUID;
|
||||
static final java.io.ObjectStreamField[] serialPersistentFields;
|
||||
private void writeObject(java.io.ObjectOutputStream);
|
||||
private void readObject(java.io.ObjectInputStream);
|
||||
java.lang.Object writeReplace();
|
||||
java.lang.Object readResolve();
|
||||
}
|
||||
# MQTT相关
|
||||
-keep class org.eclipse.paho.** { *; }
|
||||
-dontwarn org.eclipse.paho.**
|
||||
|
||||
# Gson
|
||||
-keep class com.google.gson.** { *; }
|
||||
-keepattributes Signature
|
||||
-keepattributes *Annotation*
|
||||
-keep class sun.misc.Unsafe { *; }
|
||||
-keep class * implements com.google.gson.TypeAdapterFactory
|
||||
-keep class * implements com.google.gson.JsonSerializer
|
||||
-keep class * implements com.google.gson.JsonDeserializer
|
||||
@ -192,7 +205,7 @@
|
||||
public ** component*();
|
||||
public ** copy(...);
|
||||
}
|
||||
|
||||
#
|
||||
# 保留Kotlin数据类的toString/hashCode/equals方法
|
||||
-keepclassmembers class ** {
|
||||
public java.lang.String toString();
|
||||
@ -200,4 +213,45 @@
|
||||
public boolean equals(java.lang.Object);
|
||||
}
|
||||
|
||||
# 保留Compose相关
|
||||
-keep class androidx.compose.** { *; }
|
||||
-dontwarn androidx.compose.**
|
||||
|
||||
# 保留自定义签名相关类
|
||||
-keep class com.za.signature.** { *; }
|
||||
|
||||
# 保留Face Detection相关
|
||||
-keep class com.google.mlkit.** { *; }
|
||||
-dontwarn com.google.mlkit.**
|
||||
|
||||
# 保留ZXing相关
|
||||
-keep class com.google.zxing.** { *; }
|
||||
-dontwarn com.google.zxing.**
|
||||
|
||||
# 保留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();
|
||||
}
|
||||
|
||||
# 保留FastJSON相关
|
||||
-keep class com.alibaba.fastjson.** { *; }
|
||||
-dontwarn com.alibaba.fastjson.**
|
||||
|
||||
# 保留Bugly相关
|
||||
-keep class com.tencent.bugly.** { *; }
|
||||
-dontwarn com.tencent.bugly.**
|
||||
#
|
||||
# 保留自定义UI组件
|
||||
-keep class com.za.ui.** { *; }
|
||||
-keep class com.za.base.** { *; }
|
||||
|
||||
# 保留Java 8 Lambda表达式
|
||||
-dontwarn java.lang.invoke.StringConcatFactory
|
Reference in New Issue
Block a user