Brendan Weinstein
02/13/2020, 10:17 PMbuildSrc
sourceSet, but I could not find an example of how to do this. I am playing around with buildSrc
sourceSets right now, but would appreciate it if anyone has some code I could reference to save a few cyclesBrendan Weinstein
02/13/2020, 10:29 PMsourceSets {
val main by getting
println("currentDir: ${File(".").absolutePath}")
main.java.srcDirs += File("../mobile/src/main/java/com/theathletic/analytics/newarch")
main.java.srcDirs += File("../mobile/src/main/java")
}
I am going to try just copying the two files I need into buildSrc. Open to any thoughts on best practices hereBrendan Weinstein
02/14/2020, 2:01 AMBrendan Weinstein
02/14/2020, 9:34 AMsettings.gradle.kts
within buildSrc as an opportunity to run a script before buildSrc or anything else is compiled. This works fine from CLI, but Android Studio freaks out if you try to access anything hereBrendan Weinstein
02/14/2020, 9:40 AM