Lukasz Kalnik
05/25/2023, 1:56 PMkotlin srcDirs like this:
android.sourceSets[flavor].kotlin.srcDirs
However there is no such property.
This on the other hand works:
android.sourceSets[flavor].java.srcDirsLukasz Kalnik
05/25/2023, 2:03 PMkotlin and java properties return a different type. In each case it has the same name, AndroidSourceDirectorySet but is in different packages - for kotlin it's in com.android.build.api.dsl but for java it's in com.android.build.gradle.api and it's deprecated.Lukasz Kalnik
05/25/2023, 2:04 PMhfhbd
05/25/2023, 2:15 PMandroid.sourceSets starting from AGP 8, but they returns a AndroidSourceDirectorySet and a AndroidSourceDirectory.Lukasz Kalnik
05/25/2023, 2:20 PM