1.移除ACCESS_MOCK_LOCATION 权限
2.MMKV启用AES-256加密保存 3.修复导出组件和 Deep Links的处理建议 4.加入混淆代码 5.删除蓝牙透传RAW TCP(socket)
This commit is contained in:
84
baselibrary/proguard-rules.pro
vendored
84
baselibrary/proguard-rules.pro
vendored
@@ -1,21 +1,69 @@
|
||||
# Add project specific ProGuard rules here.
|
||||
# You can control the set of applied configuration files using the
|
||||
# proguardFiles setting in build.gradle.
|
||||
#
|
||||
# For more details, see
|
||||
# http://developer.android.com/guide/developing/tools/proguard.html
|
||||
# ============================================================
|
||||
# baselibrary 库模块自身的混淆规则(仅当 baselibrary 的 minifyEnabled=true 时生效)
|
||||
# 注意:对 App 模块生效的规则写在 consumer-rules.pro 中
|
||||
# ============================================================
|
||||
|
||||
# If your project uses WebView with JS, uncomment the following
|
||||
# and specify the fully qualified class name to the JavaScript interface
|
||||
# class:
|
||||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
||||
# public *;
|
||||
#}
|
||||
# 保留注解、泛型签名、运行时注解(网络层反射核心属性)
|
||||
-keepattributes Signature,*Annotation*,AnnotationDefault,RuntimeVisibleAnnotations,RuntimeVisibleParameterAnnotations,InnerClasses,EnclosingMethod
|
||||
|
||||
# Uncomment this to preserve the line number information for
|
||||
# debugging stack traces.
|
||||
#-keepattributes SourceFile,LineNumberTable
|
||||
# BaseNetworkApi 反射泛型基类
|
||||
-keep class com.abbidot.baselibrary.network.base.BaseNetworkApi { *; }
|
||||
-keep class * extends com.abbidot.baselibrary.network.base.BaseNetworkApi { *; }
|
||||
-keep interface com.abbidot.baselibrary.network.base.IService { *; }
|
||||
|
||||
# If you keep the line number information, uncomment this to
|
||||
# hide the original source file name.
|
||||
#-renamesourcefileattribute SourceFile
|
||||
# BaseResponse<T> 网络响应泛型基类
|
||||
-keep class com.abbidot.baselibrary.network.base.BaseResponse { *; }
|
||||
|
||||
# Gson TypeAdapter
|
||||
-keep class com.abbidot.baselibrary.network.interceptor.StringNullAdapter { *; }
|
||||
-keep class com.abbidot.baselibrary.network.interceptor.DoubleDefault0Adapter { *; }
|
||||
|
||||
# OkHttp Interceptor
|
||||
-keep class com.abbidot.baselibrary.network.interceptor.CommonRequestInterceptor { *; }
|
||||
-keep class com.abbidot.baselibrary.network.interceptor.CommonResponseInterceptor { *; }
|
||||
|
||||
# 异常类
|
||||
-keep class com.abbidot.baselibrary.network.exception.** { *; }
|
||||
|
||||
# 公共工具类(反射用到的保留)
|
||||
-keep class com.abbidot.baselibrary.util.** { *; }
|
||||
-keep class com.abbidot.baselibrary.constant.** { *; }
|
||||
|
||||
# EventBus
|
||||
-keep class com.abbidot.baselibrary.eventbus.** { *; }
|
||||
|
||||
# RecyclerView 公共基类
|
||||
-keep class com.abbidot.baselibrary.list.** { *; }
|
||||
|
||||
# Retrofit + Gson + OkHttp
|
||||
-keep,allowobfuscation,allowshrinking interface retrofit2.Call
|
||||
-keep,allowobfuscation,allowshrinking class retrofit2.Response
|
||||
-keep,allowobfuscation,allowshrinking class kotlin.coroutines.Continuation
|
||||
-if interface * { @retrofit2.http.* <methods>; }
|
||||
-keep,allowobfuscation interface * { <methods>; }
|
||||
-keep class com.google.gson.** { *; }
|
||||
-keep class com.google.gson.reflect.TypeToken { *; }
|
||||
-keep class * extends com.google.gson.reflect.TypeToken { *; }
|
||||
-dontwarn okhttp3.internal.platform.**
|
||||
-dontwarn org.conscrypt.**
|
||||
-dontwarn org.bouncycastle.**
|
||||
-dontwarn org.openjsse.**
|
||||
-dontwarn org.codehaus.mojo.animal_sniffer.*
|
||||
-dontwarn com.google.gson.**
|
||||
|
||||
# ==============================
|
||||
# 自定义 View / LayoutInflater 反射构造函数保留
|
||||
# ==============================
|
||||
-keepclassmembers class * extends android.view.View {
|
||||
public <init>(android.content.Context, android.util.AttributeSet);
|
||||
public <init>(android.content.Context, android.util.AttributeSet, int);
|
||||
public <init>(android.content.Context, android.util.AttributeSet, int, int);
|
||||
void set*(***);
|
||||
*** get*();
|
||||
}
|
||||
-keepclassmembers class * extends android.view.ViewGroup {
|
||||
public <init>(android.content.Context, android.util.AttributeSet);
|
||||
public <init>(android.content.Context, android.util.AttributeSet, int);
|
||||
public <init>(android.content.Context, android.util.AttributeSet, int, int);
|
||||
}
|
||||
-keep class com.abbidot.baselibrary.widget.** { *; }
|
||||
|
||||
Reference in New Issue
Block a user