Sha256: a3579d64b96f79d44e6ab59806211e46a3a3d397c2bca39e60123f9dc2903c0a

Contents?: true

Size: 534 Bytes

Versions: 23

Compression:

Stored size: 534 Bytes

Contents

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

      v = app.edit_version
      UI.user_error!("Could not find a version to edit for app '#{app.name}'") unless v

      if options[:app_icon]
        UI.message("Uploading app icon...")
        v.upload_large_icon!(options[:app_icon])
      end

      if options[:apple_watch_app_icon]
        UI.message("Uploading apple watchapp icon...")
        v.upload_watch_icon!(options[:apple_watch_app_icon])
      end

      v.save!
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
deliver-1.15.1 lib/deliver/upload_assets.rb
deliver-1.15.0 lib/deliver/upload_assets.rb
deliver-1.14.5 lib/deliver/upload_assets.rb
deliver-1.14.4 lib/deliver/upload_assets.rb
deliver-1.14.3 lib/deliver/upload_assets.rb
deliver-1.14.2 lib/deliver/upload_assets.rb
deliver-1.14.1 lib/deliver/upload_assets.rb
deliver-1.14.0 lib/deliver/upload_assets.rb
deliver-1.13.3 lib/deliver/upload_assets.rb
deliver-1.13.2 lib/deliver/upload_assets.rb
deliver-1.13.1 lib/deliver/upload_assets.rb
deliver-1.13.0 lib/deliver/upload_assets.rb
deliver-1.12.0 lib/deliver/upload_assets.rb
deliver-1.11.3 lib/deliver/upload_assets.rb
deliver-1.11.2 lib/deliver/upload_assets.rb
deliver-1.11.1 lib/deliver/upload_assets.rb
deliver-1.11.0 lib/deliver/upload_assets.rb
deliver-1.10.5 lib/deliver/upload_assets.rb
deliver-1.10.4 lib/deliver/upload_assets.rb
deliver-1.10.3 lib/deliver/upload_assets.rb