Sha256: 7636062a17a62675f89c9de40e0d0c7696789fc05700dbaf5c83e5ce443f5fc4

Contents?: true

Size: 757 Bytes

Versions: 267

Compression:

Stored size: 757 Bytes

Contents

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

      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])
        app_modified = true
      end

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

      v.save! if app_modified
    end
  end
end

Version data entries

267 entries across 267 versions & 1 rubygems

Version Path
fastlane-2.57.0.beta.20170918010003 deliver/lib/deliver/upload_assets.rb
fastlane-2.57.0.beta.20170917010003 deliver/lib/deliver/upload_assets.rb
fastlane-2.57.0.beta.20170916010003 deliver/lib/deliver/upload_assets.rb
fastlane-2.57.0.beta.20170915010002 deliver/lib/deliver/upload_assets.rb
fastlane-2.57.0.beta.20170914010003 deliver/lib/deliver/upload_assets.rb
fastlane-2.57.0.beta.20170913010002 deliver/lib/deliver/upload_assets.rb
fastlane-2.56.0 deliver/lib/deliver/upload_assets.rb
fastlane-2.56.0.beta.20170912010003 deliver/lib/deliver/upload_assets.rb
fastlane-2.56.0.beta.20170911010003 deliver/lib/deliver/upload_assets.rb
fastlane-2.56.0.beta.20170910010002 deliver/lib/deliver/upload_assets.rb
fastlane-2.56.0.beta.20170909010003 deliver/lib/deliver/upload_assets.rb
fastlane-2.56.0.beta.20170908010003 deliver/lib/deliver/upload_assets.rb
fastlane-2.56.0.beta.20170907010003 deliver/lib/deliver/upload_assets.rb
fastlane-2.56.0.beta.20170906010003 deliver/lib/deliver/upload_assets.rb
fastlane-2.56.0.beta.20170905010003 deliver/lib/deliver/upload_assets.rb
fastlane-2.56.0.beta.20170904010003 deliver/lib/deliver/upload_assets.rb
fastlane-2.56.0.beta.20170903010003 deliver/lib/deliver/upload_assets.rb
fastlane-2.56.0.beta.20170902010003 deliver/lib/deliver/upload_assets.rb
fastlane-2.56.0.beta.20170901010002 deliver/lib/deliver/upload_assets.rb
fastlane-2.55.0 deliver/lib/deliver/upload_assets.rb