1 cask "android-studio-preview@beta" do
2 arch arm: "mac_arm", intel: "mac"
5 sha256 arm: "2ca5a87554f3f97acefde7931793a9991ae32c261e8826b4e31b267089c7247e",
6 intel: "9913e8c7f2f6f1a2c150d632d671a7b21228027f061fef341730ccf0c8620778"
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 (Beta)"
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(.*\n*\s*.*)(Beta|RC)}i)
20 depends_on macos: ">= :high_sierra"
22 app "Android Studio Preview.app", target: "Android Studio Preview Beta.app"
23 binary "#{appdir}/Android Studio Preview Beta.app/Contents/MacOS/studio", target: "studio-beta"
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",