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:
parent
349a54d528
commit
7081645f4a
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue