Sha256: 2c649753e7f28430767e4eab42af6576a5b8d24f84a6381f858ccdae05a2a07e

Contents?: true

Size: 758 Bytes

Versions: 353

Compression:

Stored size: 758 Bytes

Contents

require_relative 'module'

module Deliver
  class UploadAssets
    SUPPORTED_ICON_EXTENSIONS = [".png", ".jpg", ".jpeg"]
    def upload(options)
      return unless options[:app_icon] || options[:apple_watch_app_icon]
      return if options[:edit_live]
      app = options[:app]

      v = app.edit_version(platform: options[:platform])
      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

353 entries across 353 versions & 2 rubygems

Version Path
fastlane-2.130.0.beta.20190826200016 deliver/lib/deliver/upload_assets.rb
fastlane-2.130.0.beta.20190825200030 deliver/lib/deliver/upload_assets.rb
fastlane-2.130.0.beta.20190824200021 deliver/lib/deliver/upload_assets.rb
fastlane-2.130.0.beta.20190823200017 deliver/lib/deliver/upload_assets.rb
fastlane-2.130.0.beta.20190822200101 deliver/lib/deliver/upload_assets.rb
fastlane-2.130.0.beta.20190821200034 deliver/lib/deliver/upload_assets.rb
fastlane-2.130.0.beta.20190820200024 deliver/lib/deliver/upload_assets.rb
fastlane-2.130.0.beta.20190819200109 deliver/lib/deliver/upload_assets.rb
fastlane-2.130.0.beta.20190818200034 deliver/lib/deliver/upload_assets.rb
fastlane-2.130.0.beta.20190817200018 deliver/lib/deliver/upload_assets.rb
fastlane-2.130.0.beta.20190816200015 deliver/lib/deliver/upload_assets.rb
fastlane-2.130.0.beta.20190815200057 deliver/lib/deliver/upload_assets.rb
fastlane-2.130.0.beta.20190814200010 deliver/lib/deliver/upload_assets.rb
fastlane-2.129.0 deliver/lib/deliver/upload_assets.rb
fastlane-2.129.0.beta.20190813200016 deliver/lib/deliver/upload_assets.rb
fastlane-2.129.0.beta.20190811200106 deliver/lib/deliver/upload_assets.rb
fastlane-2.129.0.beta.20190810200059 deliver/lib/deliver/upload_assets.rb
fastlane-2.129.0.beta.20190809200051 deliver/lib/deliver/upload_assets.rb
fastlane-2.129.0.beta.20190808200013 deliver/lib/deliver/upload_assets.rb
fastlane-2.129.0.beta.20190807200122 deliver/lib/deliver/upload_assets.rb