fastlane/lib/fastlane/actions/badge.rb in fastlane-2.2.0 vs fastlane/lib/fastlane/actions/badge.rb in fastlane-2.3.0

- old
+ new

@@ -1,11 +1,10 @@ module Fastlane module Actions class BadgeAction < Action def self.run(params) Actions.verify_gem!('badge') - check_imagemagick! require 'badge' options = { dark: params[:dark], custom: params[:custom], no_badge: params[:no_badge], @@ -139,22 +138,8 @@ end def self.is_supported?(platform) [:ios, :mac, :android].include?(platform) end - - def self.check_imagemagick! - return if `which convert`.include?('convert') - - UI.error("You have to install ImageMagick to use `badge`") - UI.error("") - UI.error("Install it using:") - UI.command("brew update && brew install imagemagick") - UI.error("") - UI.error("If you don't have homebrew, visit http://brew.sh") - - UI.user_error!("Install ImageMagick and start your lane again!") - end - private_class_method :check_imagemagick! end end end