homebrew-core/Formula/android-platform-tools.rb
2016-11-21 09:15:52 -08:00

25 lines
679 B
Ruby

class AndroidPlatformTools < Formula
desc "Tools for the Android SDK"
homepage "https://developer.android.com/sdk"
# the url is from:
# https://dl.google.com/android/repository/repository-12.xml
url "https://dl.google.com/android/repository/platform-tools_r25-macosx.zip"
version "25"
sha256 "33030a8ecbc419fcd80b01d274e7869417524b1f06b005a0f6d9a7f69e95ebec"
bottle :unneeded
depends_on :macos => :mountain_lion
conflicts_with "android-sdk",
:because => "the Android Platform-tools are part of the Android SDK"
def install
bin.install "adb", "fastboot"
end
test do
system bin/"fastboot --version"
system bin/"adb version"
end
end