Refactored JmapApi to ensure session is initialized before API calls, reducing potential errors. Updated LoginViewModel to remove all whitespace from tokens before login. MaskedEmailDetailViewModel now consistently resets isUpdating flag on data load and error, improving UI state accuracy. Added ProGuard rules to suppress warnings for Google Error Prone annotations.
45 lines
1.5 KiB
Prolog
45 lines
1.5 KiB
Prolog
# Add project specific ProGuard rules here.
|
|
# You can control the set of applied configuration files using the
|
|
# proguardFiles setting in build.gradle.kts.
|
|
|
|
# Keep Kotlin serialization
|
|
-keepattributes *Annotation*, InnerClasses
|
|
-dontnote kotlinx.serialization.AnnotationsKt
|
|
|
|
-keepclassmembers class kotlinx.serialization.json.** {
|
|
*** Companion;
|
|
}
|
|
-keepclasseswithmembers class kotlinx.serialization.json.** {
|
|
kotlinx.serialization.KSerializer serializer(...);
|
|
}
|
|
|
|
# Keep JMAP models
|
|
-keep,includedescriptorclasses class com.fastmask.data.api.**$$serializer { *; }
|
|
-keepclassmembers class com.fastmask.data.api.** {
|
|
*** Companion;
|
|
}
|
|
-keepclasseswithmembers class com.fastmask.data.api.** {
|
|
kotlinx.serialization.KSerializer serializer(...);
|
|
}
|
|
|
|
# Retrofit
|
|
-keepattributes Signature, InnerClasses, EnclosingMethod
|
|
-keepattributes RuntimeVisibleAnnotations, RuntimeVisibleParameterAnnotations
|
|
-keepclassmembers,allowshrinking,allowobfuscation interface * {
|
|
@retrofit2.http.* <methods>;
|
|
}
|
|
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
|
|
-dontwarn javax.annotation.**
|
|
-dontwarn kotlin.Unit
|
|
-dontwarn retrofit2.KotlinExtensions
|
|
-dontwarn retrofit2.KotlinExtensions$*
|
|
|
|
# OkHttp
|
|
-dontwarn okhttp3.**
|
|
-dontwarn okio.**
|
|
|
|
# Google Tink / Error Prone annotations
|
|
-dontwarn com.google.errorprone.annotations.CanIgnoreReturnValue
|
|
-dontwarn com.google.errorprone.annotations.CheckReturnValue
|
|
-dontwarn com.google.errorprone.annotations.Immutable
|
|
-dontwarn com.google.errorprone.annotations.RestrictedApi
|