Setting R8/Proguard Rules
If you are using R8/proguard in release build, you need to add the following to the proguard-rules.pro file.
proguard-rules.pro:
-keep class com.finotes.android.finotescore.* { *; }
-keepclassmembers class * {
@com.finotes.android.finotescore.annotation.Observe *;
}
Add below line to keep the exact line number and source file name in the stacktrace.
proguard-rules.pro:
-keepattributes SourceFile,LineNumberTable
Please make sure that the mapping file of production build (each build) is backed up, in-order to deobfuscate the stacktrace from Finotes dashboard.
Location of mapping file: project-folder/app/build/outputs/proguard/release/mapping.txt