excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / a / android-studio-preview@beta.rb
blob1e5fe83125ef41fb85da87193a1d46ea84399354
1 cask "android-studio-preview@beta" do
2   arch arm: "mac_arm", intel: "mac"
4   version "2024.2.2.10"
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/"
14   livecheck do
15     url :homepage
16     regex(%r{href=.*?/android[._-]studio[._-]v?(\d+(?:\.\d+)+)[._-]#{arch}\.dmg(.*\n*\s*.*)(Beta|RC)}i)
17   end
19   auto_updates true
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"
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