Sha256: f2cdea7b1ae5bd0d14a57c6b80df7a2c6aeb13ec15a796da208eb9f23b341894

Contents?: true

Size: 536 Bytes

Versions: 27

Compression:

Stored size: 536 Bytes

Contents

module Deliver
  class UploadAssets
    def upload(options)
      app = options[:app]

      v = app.edit_version
      raise "Could not find a version to edit for app '#{app.name}'".red unless v

      if options[:app_icon]
        Helper.log.info "Uploading app icon..."
        v.upload_large_icon!(options[:app_icon])
      end

      if options[:apple_watch_app_icon]
        Helper.log.info "Uploading apple watchapp icon..."
        v.upload_watch_icon!(options[:apple_watch_app_icon])
      end

      v.save!
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
deliver-1.9.0 lib/deliver/upload_assets.rb
deliver-1.8.1 lib/deliver/upload_assets.rb
deliver-1.8.0 lib/deliver/upload_assets.rb
deliver-1.7.0 lib/deliver/upload_assets.rb
deliver-1.6.6 lib/deliver/upload_assets.rb
deliver-1.6.5 lib/deliver/upload_assets.rb
deliver-1.6.4 lib/deliver/upload_assets.rb
deliver-1.6.3 lib/deliver/upload_assets.rb
deliver-1.6.2 lib/deliver/upload_assets.rb
deliver-1.6.0 lib/deliver/upload_assets.rb
deliver-1.5.2 lib/deliver/upload_assets.rb
deliver-1.5.1 lib/deliver/upload_assets.rb
deliver-1.5.0 lib/deliver/upload_assets.rb
deliver-1.4.0 lib/deliver/upload_assets.rb
deliver-1.3.3 lib/deliver/upload_assets.rb
deliver-1.3.2 lib/deliver/upload_assets.rb
deliver-1.3.1 lib/deliver/upload_assets.rb
deliver-1.3.0 lib/deliver/upload_assets.rb
deliver-1.2.0 lib/deliver/upload_assets.rb
deliver-1.1.3 lib/deliver/upload_assets.rb