refactor(layout): 调整关于页面布局并优化代码

- 移除了 NestedScrollView 中不必要的 layout_above 属性
- 添加了多个 dontwarn 规则,以解决潜在的警告问题
- 保持了 OkHttp 和 BouncyCastle相关类,以确保应用的正常运行
This commit is contained in:
Cold-Mint 2025-02-08 23:10:46 +08:00
parent 31084d4793
commit c2345e62ba
Signed by: Cold-Mint
GPG Key ID: C5A9BF8A98E0CE99
2 changed files with 19 additions and 2 deletions

View File

@ -61,3 +61,21 @@
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.** { *; }

View File

@ -72,7 +72,6 @@
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@id/action_divider"
android:layout_alignParentTop="true"
android:layout_marginBottom="8dp">