Vincent Williams
11/17/2019, 6:13 PMsubprojects
section in the root gradle file. I cant seem to be able to use the android
block inside the subprojects
block when I use kts gradle filesgildor
11/17/2019, 10:52 PMVincent Williams
11/17/2019, 11:04 PMVincent Williams
11/17/2019, 11:04 PMVincent Williams
11/17/2019, 11:05 PMsubprojects {
apply(plugin = "com.android.library")
android {}
}
Vincent Williams
11/17/2019, 11:05 PMgildor
11/17/2019, 11:47 PMplugins{}
block onlygildor
11/17/2019, 11:48 PMgildor
11/17/2019, 11:49 PMconfigure
block) in this case, or apply this shared config as function on every moduleVincent Williams
11/17/2019, 11:51 PMVincent Williams
11/17/2019, 11:55 PMandroid {}
block leading to a lot of boilerplate.Vincent Williams
11/17/2019, 11:56 PMgildor
11/18/2019, 11:03 AMgildor
11/18/2019, 11:06 AMgildor
11/18/2019, 11:07 AMgildor
11/18/2019, 11:12 AMVincent Williams
11/21/2019, 8:13 PMVincent Williams
11/23/2019, 4:44 AMconfigure<com.android.build.gradle.LibraryExtension> {
in its own file to try to separate some of the duplicated module build scripts, however im running into the same issue. It says Unresolved Reference: Android
gildor
11/23/2019, 4:45 AMAndroid
, like that capitalized? Are you sure that it complains on this configure block?Vincent Williams
11/23/2019, 4:54 AMVincent Williams
11/23/2019, 4:54 AMVincent Williams
11/23/2019, 4:54 AMVincent Williams
11/23/2019, 4:55 AMsubprojects
block in the root build fileVincent Williams
11/23/2019, 4:56 AMLibraryConfig.gradle.kts
that I could then use in each module build file using
apply(from = "LibraryConfig.gradle.kts")