Skip to content

Commit

Permalink
+android-commandlinetools-9477386
Browse files Browse the repository at this point in the history
  • Loading branch information
quad committed Jul 18, 2023
1 parent cd1ccba commit 4074b64
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions android-commandlinetools.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
description = "Android SDK Command-line Tools"
homepage = "https://developer.android.com/tools#tools-sdk"
test = "sdkmanager --version"
binaries = [
"bin/apkanalyzer",
"bin/avdmanager",
"bin/lint",
"bin/retrace",
"bin/sdkmanager",
]
strip = 1

// avdmanager respects com.android.sdkmanager.toolsdir
// sdkmanager respects com.android.sdklib.toolsdir
// ANDROID_SDK_ROOT is deprecated. Don't even try it.
// ... and everyone respects ANDROID_HOME
env = {
"AVDMANAGER_OPTS": "'-Dcom.android.sdkmanager.toolsdir=${ANDROID_HOME}/cmdline-tools'",
"SDKMANAGER_OPTS": "'-Dcom.android.sdklib.toolsdir=${ANDROID_HOME}/cmdline-tools/latest'",
"ANDROID_HOME": "${HERMIT_ENV}/.hermit/android/sdk"
}

on "unpack" {
mkdir {
dir = "${HERMIT_ENV}/.hermit/android/sdk/cmdline-tools"
}

symlink {
from = "${root}"
to = "${HERMIT_ENV}/.hermit/android/sdk/cmdline-tools/latest"
}
}

darwin {
source = "https://dl.google.com/android/repository/commandlinetools-mac-${version}_latest.zip"
}

linux {
source = "https://dl.google.com/android/repository/commandlinetools-linux-${version}_latest.zip"
}

version "9477386" {}

0 comments on commit 4074b64

Please sign in to comment.