RustAssistant/app/proguard-rules.pro
Cold-Mint c2345e62ba
refactor(layout): 调整关于页面布局并优化代码
- 移除了 NestedScrollView 中不必要的 layout_above 属性
- 添加了多个 dontwarn 规则,以解决潜在的警告问题
- 保持了 OkHttp 和 BouncyCastle相关类,以确保应用的正常运行
2025-02-08 23:10:46 +08:00

81 lines
2.4 KiB
Prolog
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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
# 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
#--配置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 *;
}
#glide如果你的API级别<=Android API 27 则需要添加 4.6.1
-dontwarn com.bumptech.glide.load.resource.bitmap.VideoDecoder
-dontwarn me.iwf.photopicker.adapter.**
#保留dataBean防止Gson序列化出错
-keep class com.coldmint.rust.core.dataBean.** {
<fields>;
<methods>;
}
#保留dataBase防止Gson序列化出错
-keep class com.coldmint.rust.core.database.** {
<fields>;
<methods>;
}
#保留程序的dataBean
-keep class com.coldmint.rust.pro.databean.**{
<fields>;
<methods>;
}
-keepclassmembers class * {
public <init> (org.json.JSONObject);
}
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}
# Please add these rules to your existing keep rules in order to suppress warnings.
# This is generated automatically by the Android Gradle plugin.
-dontwarn org.bouncycastle.jsse.BCSSLParameters
-dontwarn org.bouncycastle.jsse.BCSSLSocket
-dontwarn org.bouncycastle.jsse.provider.BouncyCastleJsseProvider
-dontwarn org.conscrypt.Conscrypt$Version
-dontwarn org.conscrypt.Conscrypt
-dontwarn org.conscrypt.ConscryptHostnameVerifier
-dontwarn org.openjsse.javax.net.ssl.SSLParameters
-dontwarn org.openjsse.javax.net.ssl.SSLSocket
-dontwarn org.openjsse.net.ssl.OpenJSSE
# 保持 OkHttp 平台相关的类
-keep class okhttp3.internal.platform.** { *; }
# 保持 BouncyCastle 相关的类
-keep class org.bouncycastle.** { *; }