cask 'android-studio-canary' do version '2.3.0.1,162.3508619' sha256 '39d621a7f5f9233a98edc94e82500f11e84e548c9366c466846fe4dccf0a1850' url "https://dl.google.com/dl/android/studio/ide-zips/#{version.before_comma}/android-studio-ide-#{version.after_comma}-mac.zip" name 'Android Studio Canary' homepage 'https://sites.google.com/a/android.com/tools/download/studio/canary' app 'Android Studio.app' zap delete: [ "~/Library/Preferences/AndroidStudio#{version.major_minor}", '~/Library/Preferences/com.google.android.studio.plist', "~/Library/Application Support/AndroidStudio#{version.major_minor}", "~/Library/Logs/AndroidStudio#{version.major_minor}", "~/Library/Caches/AndroidStudio#{version.major_minor}", ], rmdir: '~/AndroidStudioProjects' caveats do depends_on_java end end