diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index c872c8b..a36db37 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -17,6 +17,11 @@ ; } +# Keep SerialName annotation +-keepclassmembers class * { + @kotlinx.serialization.SerialName ; +} + # Uncomment this to preserve the line number information for # debugging stack traces. #-keepattributes SourceFile,LineNumberTable diff --git a/app/src/main/kotlin/top/fatweb/oxygen/toolbox/di/NetworkModule.kt b/app/src/main/kotlin/top/fatweb/oxygen/toolbox/di/NetworkModule.kt index 16ca519..9368989 100644 --- a/app/src/main/kotlin/top/fatweb/oxygen/toolbox/di/NetworkModule.kt +++ b/app/src/main/kotlin/top/fatweb/oxygen/toolbox/di/NetworkModule.kt @@ -30,7 +30,7 @@ internal object NetworkModule { HttpLoggingInterceptor() .apply { if (BuildConfig.DEBUG) { - setLevel(HttpLoggingInterceptor.Level.BODY) + level = HttpLoggingInterceptor.Level.BODY } } )