Hello there, I'm moving all my gradle files to kot...
# gradle
j
Hello there, I'm moving all my gradle files to kotlin dsl but I dont know how to move
android {}
from individual modules to
subprojects {}
(root gradle.kts) to share configuration between modules. In gradle I use something like this:
Copy code
subprojects {
  afterEvaluate {
if(project.plugins.findPlugin("com.android.application") != null ||         project.plugins.findPlugin("com.android.library") != null) {
            android{ 
               ...
}
e
Copy code
kotlin
subprojects {
  afterEvaluate {
    (project.extensions.findByName("android") as? com.android.build.gradle.BaseExtension)?.run {
      ...
j
Nice!!!, thank you