1 cask "android-studio" do
2 arch arm: "mac_arm", intel: "mac"
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/"
11 desc "Tools for building Android applications"
12 homepage "https://developer.android.com/studio/"
16 regex(/android[._-]studio[._-]v?(\d+(?:\.\d+)+)[._-]#{arch}\.dmg/i)
20 depends_on macos: ">= :high_sierra"
22 app "Android Studio.app"
23 binary "#{appdir}/Android Studio.app/Contents/MacOS/studio"
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",
36 "~/AndroidStudioProjects",