How may the compiled Jar file for an Android app built with Android Studio be accessed?
Use case - MockK for JUnit 5 local unit testing in Kotlin, viewing the output of Kotlin compiled to Java.
Android Studio version - 3.5
@oleksiyp, outlines here, how top-level functions are compiled into Java in this Medium series and in this StackOverflow post.
Examining how the Kotlin files are compiled into Java will allow for mocking more advanced top-level functions where the output is not as straightforward as the below.
For instance, the following example:
// Code.kt source file package pkg fun lowercase(str: String): String {...}
translates to:
package pkg; class CodeKt { public static String lowercase(String str) {...} }