cask 'android-studio-canary' do version '2.0.0.9-143.2571730' sha256 '5d5b2ef9ee201fb6cb9738193729b02896b92483d7896d9296c88dd9ef30d248' url "https://dl.google.com/dl/android/studio/ide-zips/#{version.sub(%r{-.*}, '')}/android-studio-ide-#{version.sub(%r{.*?-}, '')}-mac.zip" name 'Android Studio Canary' homepage 'https://sites.google.com/a/android.com/tools/download/studio/canary' license :apache app 'Android Studio.app' zap delete: [ '~/Library/Preferences/AndroidStudio*', '~/Library/Preferences/com.google.android.studio.plist', '~/Library/Application Support/AndroidStudio*', '~/Library/Logs/AndroidStudio*', '~/Library/Caches/AndroidStudio*', ], rmdir: '~/AndroidStudioProjects' caveats do depends_on_java end end