1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Adjust the build-tools path based on the version.

This commit is contained in:
Cedric Beust 2015-11-06 13:10:39 -08:00
parent 349a54d528
commit 7081645f4a

View file

@ -68,7 +68,11 @@ public class AndroidPlugin @Inject constructor(val javaCompiler: JavaCompiler) :
fun buildToolsVersion(project: Project) : String {
val version = configurations[project.name!!]?.buildToolsVersion
if (OperatingSystem.current().isWindows()) {
return "build-tools-$version"
if (version == "22.0.1" || version == "23.0.1") {
return version as String
} else {
return "build-tools-$version"
}
} else {
return version as String
}