# Add project specific ProGuard rules here. # You can control the set of applied configuration files using the # proguardFiles setting in build.gradle.kts. # # 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 # Room # Room instantiates its generated *_Impl classes reflectively; R8 full mode # (AGP 9 default) strips the no-arg constructor unless explicitly kept. -keep class * extends androidx.room.RoomDatabase { (); } -dontwarn androidx.room.paging.** -keep @androidx.room.Entity class * -keep class * { @androidx.room.PrimaryKey ; } # Gson reflection: BackupManager serializes these models and the field names # are the on-disk JSON schema of backup files. Without keeps R8 renames the # fields and backups silently change format between build types. -keep class cn.airnan.a2fair.data.entity.Token { ; } -keep class cn.airnan.a2fair.core.backup.BackupData { ; } # JNI -keepclasseswithmembernames class * { native ; } -keep class cn.airnan.a2fair.core.NativeLib { *; } # Base32 and algorithms (in case of reflection or specific needs) -keep class cn.airnan.a2fair.core.algorithm.** { *; } # Optional compile-time-only references in Tink (androidx.security-crypto): # google-http-client / joda-time paths and JSR-305 annotations that are absent # at runtime. Generated by AGP in app/build/outputs/mapping/release/missing_rules.txt -dontwarn com.google.api.client.http.GenericUrl -dontwarn com.google.api.client.http.HttpHeaders -dontwarn com.google.api.client.http.HttpRequest -dontwarn com.google.api.client.http.HttpRequestFactory -dontwarn com.google.api.client.http.HttpResponse -dontwarn com.google.api.client.http.HttpTransport -dontwarn com.google.api.client.http.javanet.NetHttpTransport$Builder -dontwarn com.google.api.client.http.javanet.NetHttpTransport -dontwarn javax.annotation.Nullable -dontwarn javax.annotation.concurrent.GuardedBy -dontwarn javax.annotation.concurrent.ThreadSafe -dontwarn org.joda.time.Instant