Sha256: 86bcd6d2794bba89213e8494928598f4a3a5140a8ffd52c4b923a1c065c5a1d1

Contents?: true

Size: 1.34 KB

Versions: 40

Compression:

Stored size: 1.34 KB

Contents

module Fastlane
  module Actions
    module SharedValues
    end

    class SetBuildNumberRepositoryAction < Action
      def self.is_supported?(platform)
        [:ios, :mac].include? platform
      end

      def self.run(params)
        build_number = Fastlane::Actions::GetBuildNumberRepositoryAction.run(
          use_hg_revision_number: params[:use_hg_revision_number]
        )

        Fastlane::Actions::IncrementBuildNumberAction.run(build_number: build_number)
      end

      #####################################################
      # @!group Documentation
      #####################################################

      def self.description
        "Set the build number from the current repository"
      end

      def self.available_options
        [
          FastlaneCore::ConfigItem.new(key: :use_hg_revision_number,
                                       env_name: "USE_HG_REVISION_NUMBER",
                                       description: "Use hg revision number instead of hash (ignored for non-hg repos)",
                                       optional: true,
                                       is_string: false,
                                       default_value: false)
        ]
      end

      def self.output
        [
        ]
      end

      def self.authors
        ["pbrooks", "armadsen"]
      end
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
fastlane-1.90.0 lib/fastlane/actions/set_build_number_repository.rb
fastlane-1.89.0 lib/fastlane/actions/set_build_number_repository.rb
fastlane-1.88.0 lib/fastlane/actions/set_build_number_repository.rb
fastlane-1.87.1 lib/fastlane/actions/set_build_number_repository.rb
fastlane-1.87.0 lib/fastlane/actions/set_build_number_repository.rb
fastlane-1.86.1 lib/fastlane/actions/set_build_number_repository.rb
fastlane-1.86.0 lib/fastlane/actions/set_build_number_repository.rb
fastlane-1.85.0 lib/fastlane/actions/set_build_number_repository.rb
fastlane-1.84.0 lib/fastlane/actions/set_build_number_repository.rb
fastlane-1.83.0 lib/fastlane/actions/set_build_number_repository.rb
fastlane-1.82.0 lib/fastlane/actions/set_build_number_repository.rb
fastlane-1.81.0 lib/fastlane/actions/set_build_number_repository.rb
fastlane-1.80.0 lib/fastlane/actions/set_build_number_repository.rb
fastlane-1.70.0 lib/fastlane/actions/set_build_number_repository.rb
fastlane-1.69.0 lib/fastlane/actions/set_build_number_repository.rb
fastlane-1.68.0 lib/fastlane/actions/set_build_number_repository.rb
fastlane-1.67.0 lib/fastlane/actions/set_build_number_repository.rb
fastlane-1.66.0 lib/fastlane/actions/set_build_number_repository.rb
fastlane-1.65.0 lib/fastlane/actions/set_build_number_repository.rb
fastlane-1.64.0 lib/fastlane/actions/set_build_number_repository.rb