Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
253f3c72b1 |
No files matched your search
@@ -18,8 +18,8 @@ android {
|
||||
applicationId = "com.lzxnone.openloc"
|
||||
minSdk = 28
|
||||
targetSdk = 36
|
||||
versionCode = 5
|
||||
versionName = "1.2.2"
|
||||
versionCode = 6
|
||||
versionName = "1.2.3"
|
||||
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
@@ -60,7 +60,8 @@ android {
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
isMinifyEnabled = false
|
||||
isMinifyEnabled = true
|
||||
isShrinkResources = true
|
||||
signingConfig = signingConfigs.getByName("release")
|
||||
proguardFiles(
|
||||
getDefaultProguardFile("proguard-android-optimize.txt"),
|
||||
|
||||
Vendored
+22
-18
@@ -1,21 +1,25 @@
|
||||
# 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
|
||||
# 仅代码裁剪(Tree Shaking),完全禁用重命名混淆
|
||||
-dontobfuscate
|
||||
-dontoptimize
|
||||
|
||||
# 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 SourceFile,LineNumberTable,InnerClasses,EnclosingMethod,Exceptions,Signature
|
||||
|
||||
# Uncomment this to preserve the line number information for
|
||||
# debugging stack traces.
|
||||
#-keepattributes SourceFile,LineNumberTable
|
||||
# 保持 Android 基础组件(Activity, Provider 等)
|
||||
-keep public class * extends android.app.Activity
|
||||
-keep public class * extends android.app.Application
|
||||
-keep public class * extends android.app.Service
|
||||
-keep public class * extends android.content.BroadcastReceiver
|
||||
-keep public class * extends android.content.ContentProvider
|
||||
|
||||
# If you keep the line number information, uncomment this to
|
||||
# hide the original source file name.
|
||||
#-renamesourcefileattribute SourceFile
|
||||
# 保持 Xposed / LSPosed 钩子入口及所有 Hook 类(在目标进程反射加载)
|
||||
-keep class com.lzxnone.openloc.hook.** { *; }
|
||||
|
||||
# 保持数据模型与配置实体
|
||||
-keep class com.lzxnone.openloc.data.model.** { *; }
|
||||
-keep class com.lzxnone.openloc.hook.model.** { *; }
|
||||
-keep class com.lzxnone.openloc.core.provider.** { *; }
|
||||
|
||||
# 保持 osmdroid 地图库必须的反射类与组件
|
||||
-keep class org.osmdroid.** { *; }
|
||||
-dontwarn org.osmdroid.**
|
||||
Reference in new issue
Block a user