This commit is contained in:
Horis
2025-04-06 10:59:56 +08:00
parent 7520d1c0e2
commit 309b789244
2 changed files with 21 additions and 2 deletions

View File

@@ -74,6 +74,11 @@ android {
}
buildTypes {
release {
ndk {
//noinspection ChromeOsAbiSupport
abiFilters 'armeabi-v7a', 'arm64-v8a'
}
if (project.hasProperty("RELEASE_STORE_FILE")) {
signingConfig signingConfigs.myConfig
}
@@ -89,6 +94,11 @@ android {
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro', 'cronet-proguard-rules.pro'
}
debug {
ndk {
//noinspection ChromeOsAbiSupport
abiFilters 'armeabi-v7a', 'arm64-v8a'
}
if (project.hasProperty("RELEASE_STORE_FILE")) {
signingConfig signingConfigs.myConfig
}

View File

@@ -48,6 +48,7 @@
# 这个过滤器是谷歌推荐的算法,一般不做更改
-optimizations !code/simplification/cast,!field/*,!class/merging/*
-repackageclasses
#############################################
#
@@ -193,13 +194,11 @@ cn.hutool.core.**{*;}
-dontwarn com.hwangjr.rxbus.**
-dontwarn okhttp3.**
-dontwarn org.conscrypt.**
-dontwarn com.jeremyliao.liveeventbus.**
-dontwarn org.commonmark.ext.gfm.**
-keep,allowobfuscation,allowshrinking class com.google.gson.** { *; }
-keep,allowobfuscation,allowshrinking class com.ke.gson.** { *; }
-keep,allowobfuscation,allowshrinking class * extends com.google.gson.reflect.TypeToken
-keep class com.jeremyliao.liveeventbus.** { *; }
-keep class okhttp3.**{*;}
-keep class okio.**{*;}
-keep class com.hwangjr.rxbus.**{*;}
@@ -211,6 +210,16 @@ cn.hutool.core.**{*;}
-keep class freemarker.**{*;}
-keep class com.gyf.barlibrary.** {*;}
# LiveEventBus
-keep class androidx.lifecycle.LiveData {
*** mObservers;
*** mActiveCount;
}
-keep class androidx.arch.core.internal.SafeIterableMap {
*** size();
*** putIfAbsent(...);
}
## JSOUP
-keep class org.jsoup.**{*;}
-keep class **.xpath.**{*;}