cask "android-studio" do arch arm: "mac_arm", intel: "mac" version "2024.2.1.11" sha256 arm: "e72b838782c6b021d2a1ce6ae75e2668dbb7f9d245413a3b9fb6f246798fce34", intel: "9cb628c6b914e320570f5c54bb0e2adaa21757390233dce251e1fc4c21355035" url "https://redirector.gvt1.com/edgedl/android/studio/install/#{version}/android-studio-#{version}-#{arch}.dmg", verified: "redirector.gvt1.com/edgedl/android/studio/" name "Android Studio" desc "Tools for building Android applications" homepage "https://developer.android.com/studio/" livecheck do url :homepage regex(/android[._-]studio[._-]v?(\d+(?:\.\d+)+)[._-]#{arch}\.dmg/i) end auto_updates true depends_on macos: ">= :high_sierra" app "Android Studio.app" binary "#{appdir}/Android Studio.app/Contents/MacOS/studio" zap trash: [ "~/.android", "~/Library/Android/sdk", "~/Library/Application Support/Google/AndroidStudio#{version.major_minor}", "~/Library/Caches/Google/AndroidStudio#{version.major_minor}", "~/Library/Logs/Google/AndroidStudio#{version.major_minor}", "~/Library/Preferences/com.android.Emulator.plist", "~/Library/Preferences/com.google.android.studio.plist", "~/Library/Saved Application State/com.google.android.studio.savedState", ], rmdir: [ "~/AndroidStudioProjects", "~/Library/Android", ] end