# Keep all methods annotated with @JavascriptInterface
#-keepclassmembers class * {
#    @android.webkit.JavascriptInterface <methods>;
#}
#
## Keep the annotation itself
#-keepattributes JavascriptInterface

# Keep all fields with SerializedName annotations
#-keepclassmembers class * {
#    @com.google.gson.annotations.SerializedName <fields>;
#}
#
## Keep all classes with @JavascriptInterface
#-keepclassmembers class * {
#    @android.webkit.JavascriptInterface <methods>;
#}

# Or keep your specific package

-keepclassmembers class co.youverify.yvLivenessTest.ui.components.WebAppInterface {
    @android.webkit.JavascriptInterface <methods>;
}

-keepclassmembers class co.youverify.yvLivenessTest.ui.components.WebAppInterface {
    *;
}

-keepattributes *Annotation*

-keep class co.youverify.yvLivenessTest.ui.components.WebAppInterface {
    <init>(...);
    *;
}