support different platforms

This commit is contained in:
Dmitry Avdeev
2017-04-21 17:22:43 +03:00
parent 16e582a112
commit 07fbaa5768
+3 -2
View File
@@ -18,14 +18,15 @@ task setupAndroidSdk {
return
}
def archivePath = "$project.buildDir/android-sdk/linux.zip"
def zipFile = org.gradle.internal.os.OperatingSystem.current().familyName + ".zip"
def archivePath = "$project.buildDir/android-sdk/" + zipFile
def outputDir ="$project.buildDir/android-sdk/prebuilts/studio/sdk"
outputs.dir(outputDir)
outputs.file(archivePath)
doFirst {
download {
src "http://repo.labs.intellij.net/thirdparty/android-sdk/linux.zip"
src "http://repo.labs.intellij.net/thirdparty/android-sdk/" + zipFile
dest archivePath
onlyIfNewer true
}