|
|
|
cask 'android-studio-preview' do
|
|
|
|
version '3.0.0.18,171.4408382'
|
|
|
|
sha256 'f75c99356259c42e00b05af1627bc06c74819850b02b95e7ff4c28e9b397120f'
|
|
|
|
|
|
|
|
# google.com/dl/android/studio was verified as official when first introduced to the cask
|
|
|
|
url "https://dl.google.com/dl/android/studio/ide-zips/#{version.before_comma}/android-studio-ide-#{version.after_comma}-mac.zip"
|
|
|
|
name 'Android Studio Preview'
|
|
|
|
homepage 'https://developer.android.com/studio/preview/'
|
|
|
|
|
|
|
|
# Renamed to avoid conflict with android-studio.
|
|
|
|
app 'Android Studio.app', target: 'Android Studio Preview.app'
|
|
|
|
|
|
|
|
zap delete: [
|
|
|
|
"~/Library/Application Support/AndroidStudioPreview#{version.major_minor}",
|
|
|
|
"~/Library/Caches/AndroidStudioPreview#{version.major_minor}",
|
|
|
|
"~/Library/Logs/AndroidStudioPreview#{version.major_minor}",
|
|
|
|
"~/Library/Preferences/AndroidStudioPreview#{version.major_minor}",
|
|
|
|
'~/Library/Preferences/com.google.android.studio.plist',
|
|
|
|
],
|
|
|
|
rmdir: '~/AndroidStudioProjects'
|
|
|
|
|
|
|
|
caveats do
|
|
|
|
depends_on_java
|
|
|
|
end
|
|
|
|
end
|