X-posting here since maybe it's more appropriate
I’m near the end of creating a KMP gradle convention plugin and ran into some issues that I think may be because I’m configuring things too late (generated sources aren’t being picked up). Android Gradle Plugin has a hook that makes it easy to configure at the right time. Is there something similar to the AGP version but for KMP? Android has the
finalizeDsl
hook.
plugins.withId("com.android.application") {
val androidComponents = extensions.getByType(ApplicationAndroidComponentsExtension::class.java)
androidComponents.finalizeDsl {
it.configureAndroid(extension)
}
}