You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
private class AgpImpl(private val project: Project): Agp {
override fun configureCompileJavaTasks(javaVersion: JavaVersion) {
val android = project.extensions.findByName("android") as CommonExtension<*,*,*,*,*>?
if (android != null) {
android.compileOptions.apply {
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
}
} else {
/**
* There is androidComponents {} but not android {} => This is the `com.android.kotlin.multiplatform.library` plugin
* do nothing here, there is no compileJava task
*/
}
}
override fun isAndroidJavaCompileTask(name: String): Boolean {
// See https://cs.android.com/android-studio/platform/tools/base/+/da94db5fa35cdf1d97a02e705bf99fa4bf4676d4:build-system/gradle-core/src/main/java/com/android/build/gradle/tasks/JavaCompile.kt;l=67