diff --git a/Casks/android-studio-canary.rb b/Casks/android-studio-canary.rb index b22776a48..07cf684a1 100644 --- a/Casks/android-studio-canary.rb +++ b/Casks/android-studio-canary.rb @@ -8,18 +8,17 @@ cask 'android-studio-canary' do license :apache app 'Android Studio.app' - - caveats <<-EOS.undent - #{token} requires Java. You can install the latest version with - brew cask install java - EOS zap :delete => [ - '~/Library/Preferences/AndroidStudio*', - '~/Library/Preferences/com.google.android.studio.plist', - '~/Library/Application Support/AndroidStudio*', - '~/Library/Logs/AndroidStudio*', - '~/Library/Caches/AndroidStudio*', - ], - :rmdir => '~/AndroidStudioProjects' + '~/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