Fix(Tool): Fixed the bug of being unable to load stores and tools after compiling to release

This commit is contained in:
2024-08-15 17:17:52 +08:00
parent 35a421472d
commit 0c6baba099
2 changed files with 6 additions and 1 deletions

View File

@@ -17,6 +17,11 @@
<fields>; <fields>;
} }
# Keep SerialName annotation
-keepclassmembers class * {
@kotlinx.serialization.SerialName <fields>;
}
# Uncomment this to preserve the line number information for # Uncomment this to preserve the line number information for
# debugging stack traces. # debugging stack traces.
#-keepattributes SourceFile,LineNumberTable #-keepattributes SourceFile,LineNumberTable

View File

@@ -30,7 +30,7 @@ internal object NetworkModule {
HttpLoggingInterceptor() HttpLoggingInterceptor()
.apply { .apply {
if (BuildConfig.DEBUG) { if (BuildConfig.DEBUG) {
setLevel(HttpLoggingInterceptor.Level.BODY) level = HttpLoggingInterceptor.Level.BODY
} }
} }
) )