heya,
I’m migrating groovy files to kotlin script. i have the following block defined in a seaprate groovy file, which I can’t figure how to use in kotlin
Copy code
ext.flavorConfig = {
flavorDimensions(*dimensions)
productFlavors {
with flavors
}
sourceSets {
with sources
}
}
so far in groovy I used it like:
with flavorConfig
. How would that look like in Kotlin?
s
Sam
12/21/2022, 1:55 PM
Something like this?
Copy code
val flavorConfig: Closure<*> by ext
apply(flavorConfig)