cask 'android-studio-canary' do version '2.4.0.6,171.3934896' sha256 '66d82f8aaa8124a9420f15faf22e58f573961e0f2314bb40bfe51867772810c9' 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 #{version.major_minor} 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