1.移除ACCESS_MOCK_LOCATION 权限

2.MMKV启用AES-256加密保存
3.修复导出组件和 Deep Links的处理建议
4.加入混淆代码
5.删除蓝牙透传RAW TCP(socket)
This commit is contained in:
2026-07-14 11:08:43 +08:00
parent 4f77f25be4
commit a25e4a093d
22 changed files with 1000 additions and 173 deletions

View File

@@ -12,6 +12,14 @@ android {
minSdkVersion 15
targetSdkVersion 33
vectorDrawables.useSupportLibrary = true
// 库模块自身不开启混淆,输出的规则传递给依赖本库的 App
consumerProguardFiles "consumer-rules.pro"
}
buildTypes {
release {
// 库模块自身不混淆:产出的 AAR 必须是原始类
minifyEnabled false
}
}
namespace 'com.huantansheng.easyphotos'
}

View File

@@ -1,25 +1,24 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in C:\androidSpace\android\sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# ============================================================
# easyPhotos 自身的混淆规则(仅当本模块 minifyEnabled=true 时生效,当前默认 false
# 实际包名com.huantansheng.easyphotos
# ============================================================
# Add any project specific keep options here:
# 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 *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
# 完全不混淆主包
-keep class com.huantansheng.easyphotos.** { *; }
-keepclassmembers class com.huantansheng.easyphotos.** {
public <init>(...);
<fields>;
<methods>;
}
# 依赖库也不混淆
-keep class com.davemorrissey.labs.subscaleview.** { *; }
-keep class com.github.chrisbanes.photoview.** { *; }
-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);
}
-keepattributes Signature,*Annotation*,InnerClasses,EnclosingMethod,RuntimeVisibleAnnotations,SourceFile,LineNumberTable
-dontwarn com.huantansheng.easyphotos.**
-dontwarn com.davemorrissey.labs.subscaleview.**
-dontwarn com.github.chrisbanes.photoview.**