Sha256: cf2e197f510b507b997fc62ba19719f6664bbed86cd18bc1fdef1a778f08a725

Contents?: true

Size: 1.88 KB

Versions: 362

Compression:

Stored size: 1.88 KB

Contents

module Fastlane
  module Actions
    module SharedValues
      PRODUCE_APPLE_ID = :PRODUCE_APPLE_ID
    end

    class ProduceAction < Action
      def self.run(params)
        require 'produce'

        return if Helper.test?

        Produce.config = params # we alread have the finished config

        Dir.chdir(FastlaneCore::FastlaneFolder.path || Dir.pwd) do
          # This should be executed in the fastlane folder
          apple_id = Produce::Manager.start_producing.to_s

          Actions.lane_context[SharedValues::PRODUCE_APPLE_ID] = apple_id
          ENV['PRODUCE_APPLE_ID'] = apple_id
        end
      end

      def self.description
        "Creates the given application on iTC and the Dev Portal if necessary"
      end

      def details
        [
          'Create new apps on iTunes Connect and Apple Developer Portal. If the app already exists, `produce` will not do anything.',
          'For more information about produce, visit its GitHub page:',
          'https://github.com/fastlane/fastlane/tree/master/produce'
        ].join(' ')
      end

      def self.available_options
        require 'produce'
        Produce::Options.available_options
      end

      def self.output
        [
          ['PRODUCE_APPLE_ID', 'The Apple ID of the newly created app. You probably need it for `deliver`']
        ]
      end

      def self.author
        "KrauseFx"
      end

      def self.is_supported?(platform)
        platform == :ios
      end

      def self.example_code
        [
          'produce(
            username: "felix@krausefx.com",
            app_identifier: "com.krausefx.app",
            app_name: "MyApp",
            language: "English",
            app_version: "1.0",
            sku: "123",
            team_name: "SunApps GmbH" # Only necessary when in multiple teams.
          )'
        ]
      end

      def self.category
        :misc
      end
    end
  end
end

Version data entries

362 entries across 362 versions & 1 rubygems

Version Path
fastlane-2.68.0.beta.20171129010003 fastlane/lib/fastlane/actions/produce.rb
fastlane-2.67.0 fastlane/lib/fastlane/actions/produce.rb
fastlane-2.67.0.beta.20171128010003 fastlane/lib/fastlane/actions/produce.rb
fastlane-2.67.0.beta.20171127010003 fastlane/lib/fastlane/actions/produce.rb
fastlane-2.67.0.beta.20171126010003 fastlane/lib/fastlane/actions/produce.rb
fastlane-2.67.0.beta.20171125010004 fastlane/lib/fastlane/actions/produce.rb
fastlane-2.67.0.beta.20171124010004 fastlane/lib/fastlane/actions/produce.rb
fastlane-2.67.0.beta.20171123010003 fastlane/lib/fastlane/actions/produce.rb
fastlane-2.67.0.beta.20171122010004 fastlane/lib/fastlane/actions/produce.rb
fastlane-2.66.2 fastlane/lib/fastlane/actions/produce.rb
fastlane-2.66.1 fastlane/lib/fastlane/actions/produce.rb
fastlane-2.67.0.beta.20171121010003 fastlane/lib/fastlane/actions/produce.rb
fastlane-2.66.0 fastlane/lib/fastlane/actions/produce.rb
fastlane-2.65.0 fastlane/lib/fastlane/actions/produce.rb
fastlane-2.65.0.beta.20171120010003 fastlane/lib/fastlane/actions/produce.rb
fastlane-2.65.0.beta.20171119010004 fastlane/lib/fastlane/actions/produce.rb
fastlane-2.65.0.beta.20171118010003 fastlane/lib/fastlane/actions/produce.rb
fastlane-2.65.0.beta.20171117010003 fastlane/lib/fastlane/actions/produce.rb
fastlane-2.65.0.beta.20171116010004 fastlane/lib/fastlane/actions/produce.rb
fastlane-2.65.0.beta.20171115010004 fastlane/lib/fastlane/actions/produce.rb