excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / a / android-studio.rb
blob86d01375d0645958fa43b2a8df6834ee903e73d1
1 cask "android-studio" do
2   arch arm: "mac_arm", intel: "mac"
4   version "2024.2.1.12"
5   sha256 arm:   "ca98c3227a196c51da87e642bd4055366eb4693e3dcb015ccd7372700c575bce",
6          intel: "42ce686921c400a0b453578e53ad2c0b5004d11cc9f7079330e7dcfed62d6033"
8   url "https://redirector.gvt1.com/edgedl/android/studio/install/#{version}/android-studio-#{version}-#{arch}.dmg",
9       verified: "redirector.gvt1.com/edgedl/android/studio/"
10   name "Android Studio"
11   desc "Tools for building Android applications"
12   homepage "https://developer.android.com/studio/"
14   livecheck do
15     url :homepage
16     regex(/android[._-]studio[._-]v?(\d+(?:\.\d+)+)[._-]#{arch}\.dmg/i)
17   end
19   auto_updates true
20   depends_on macos: ">= :high_sierra"
22   app "Android Studio.app"
23   binary "#{appdir}/Android Studio.app/Contents/MacOS/studio"
25   zap trash: [
26         "~/.android",
27         "~/Library/Android/sdk",
28         "~/Library/Application Support/Google/AndroidStudio#{version.major_minor}",
29         "~/Library/Caches/Google/AndroidStudio#{version.major_minor}",
30         "~/Library/Logs/Google/AndroidStudio#{version.major_minor}",
31         "~/Library/Preferences/com.android.Emulator.plist",
32         "~/Library/Preferences/com.google.android.studio.plist",
33         "~/Library/Saved Application State/com.google.android.studio.savedState",
34       ],
35       rmdir: [
36         "~/AndroidStudioProjects",
37         "~/Library/Android",
38       ]
39 end