cask "android-studio-preview@beta" do arch arm: "mac_arm", intel: "mac" version "2024.2.1.8" sha256 arm: "76c3bc0b47c2151a4d219ccc6203979309c65750b33b506a7043e8c4d68e6cfb", intel: "b03571c6bb4ebb2fc3358f8e4401640a79cc27496dd0da63d45dac8bac1fd4ea" url "https://redirector.gvt1.com/edgedl/android/studio/install/#{version}/android-studio-#{version}-#{arch}.dmg", verified: "redirector.gvt1.com/edgedl/android/studio/install/" name "Android Studio Preview (Beta)" desc "Tools for building Android applications" homepage "https://developer.android.com/studio/preview/" livecheck do url :homepage regex(%r{href=.*?/android[._-]studio[._-]v?(\d+(?:\.\d+)+)[._-]#{arch}\.dmg(.*\n*\s*.*)(Beta|RC)}i) end auto_updates true depends_on macos: ">= :high_sierra" app "Android Studio.app", target: "Android Studio Preview Beta.app" binary "#{appdir}/Android Studio Preview Beta.app/Contents/MacOS/studio", target: "studio-beta" zap trash: [ "~/.android", "~/Library/Android/sdk", "~/Library/Application Support/Google/AndroidStudioPreview#{version.major_minor}", "~/Library/Caches/Google/AndroidStudioPreview#{version.major_minor}", "~/Library/Logs/Google/AndroidStudioPreview#{version.major_minor}", "~/Library/Preferences/com.android.Emulator.plist", "~/Library/Preferences/com.google.android.studio-EAP.plist", "~/Library/Saved Application State/com.google.android.studio-EAP.savedState", ], rmdir: [ "~/AndroidStudioProjects", "~/Library/Android", ] end