Skip to content
This repository was archived by the owner on Apr 19, 2018. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ enum SdkDownload {

/** Download the SDK to {@code temp} and extract to {@code dest}. */
void download(File dest) {
def url = "http://dl.google.com/android/android-sdk_r$SDK_VERSION_MAJOR-$suffix.$ext"
def url = "https://dl.google.com/android/android-sdk_r$SDK_VERSION_MAJOR-$suffix.$ext"
if ( System.properties.'android.preferHttp' == 'y') {
url = "http://dl.google.com/android/android-sdk_r$SDK_VERSION_MAJOR-$suffix.$ext"
}
log.debug "Downloading SDK from $url."

File temp = new File(dest.getParentFile(), 'android-sdk.temp')
Expand Down