excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / a / android-studio-preview@canary.rb
blob3a3d1a5f3a3cabb909304817e4f2dfc8461fdc5d
1 cask "android-studio-preview@canary" do
2   arch arm: "mac_arm", intel: "mac"
4   version "2024.3.1.4"
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/"
14   livecheck do
15     url :homepage
16     regex(%r{href=.*?/android[._-]studio[._-]v?(\d+(?:\.\d+)+)[._-]#{arch}\.dmg}i)
17   end
19   auto_updates true
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"
25   zap trash: [
26         "~/.android",
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",
34       ],
35       rmdir: [
36         "~/AndroidStudioProjects",
37         "~/Library/Android",
38       ]
39 end