We had explicitly disabled R8 using directive
android.enableR8=false.
But when I take that directive out of my gradle.properties I am finding that R8 is removing lot of application specific classes.
Only way I am able to compile and run the app successfully is by including following statement in my config/proguard/proguard-project.txt
-keep class com.myapppackage.** { *; }
My gradle.properties looks like this:
kotlin.incremental.usePreciseJavaTracking=true
android.useAndroidX=true
android.enableJetifier=true
android.uniquePackageNames=true
In google's document ( https://developer.android.com/studio/build/shrink-code ) there is no mention that I need to explicitly have keep directive.