1 cask "android-studio-preview@canary" do
2 arch arm: "mac_arm", intel: "mac"
5 sha256 arm: "f3e3e696ef3ea054b46c5fe1c55dff90c4c8b070cc22109ed6421e9b051dd63b",
6 intel: "0279676d00e230ec7d868577af6a9dda72793d729053c075a359d0643382ae99"
8 url "https://redirector.gvt1.com/edgedl/android/studio/install/#{version}/android-studio-#{version}-#{arch}.dmg",
9 verified: "redirector.gvt1.com/edgedl/android/studio/install/"
10 name "Android Studio Preview (Canary)"
11 desc "Tools for building Android applications"
12 homepage "https://developer.android.com/studio/preview/"
16 regex(%r{href=.*?/android[._-]studio[._-]v?(\d+(?:\.\d+)+)[._-]#{arch}\.dmg}i)
20 depends_on macos: ">= :high_sierra"
22 app "Android Studio Preview.app", target: "Android Studio Preview Canary.app"
23 binary "#{appdir}/Android Studio Preview Canary.app/Contents/MacOS/studio", target: "studio-canary"
27 "~/Library/Android/sdk",
28 "~/Library/Application Support/Google/AndroidStudioPreview#{version.major_minor}",
29 "~/Library/Caches/Google/AndroidStudioPreview#{version.major_minor}",
30 "~/Library/Logs/Google/AndroidStudioPreview#{version.major_minor}",
31 "~/Library/Preferences/com.android.Emulator.plist",
32 "~/Library/Preferences/com.google.android.studio-EAP.plist",
33 "~/Library/Saved Application State/com.google.android.studio-EAP.savedState",
36 "~/AndroidStudioProjects",