Class: Fastlane::Actions::IosGetBuildNumberAction

Inherits:
Action
  • Object
show all
Defined in:
lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_get_build_number.rb

Documentation collapse

Class Method Summary collapse

Class Method Details

.authorsObject



44
45
46
47
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_get_build_number.rb', line 44

def self.authors
  # So no one will ever forget your contribution to fastlane :) You are awesome btw!
  ['Automattic']
end

.available_optionsObject



23
24
25
26
27
28
29
30
31
32
33
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_get_build_number.rb', line 23

def self.available_options
  [
    FastlaneCore::ConfigItem.new(
      key: :xcconfig_file_path,
      env_name: 'FL_IOS_XCCONFIG_FILE_PATH',
      description: 'Path to the .xcconfig file containing the build number',
      type: String,
      optional: false
    ),
  ]
end

.descriptionObject



15
16
17
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_get_build_number.rb', line 15

def self.description
  'Gets the build number of the app'
end

.detailsObject



19
20
21
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_get_build_number.rb', line 19

def self.details
  'Gets the build number of the app'
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


49
50
51
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_get_build_number.rb', line 49

def self.is_supported?(platform)
  %i[ios mac].include?(platform)
end

.outputObject



35
36
37
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_get_build_number.rb', line 35

def self.output
  # Define the shared values you are going to provide
end

.return_valueObject



39
40
41
42
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_get_build_number.rb', line 39

def self.return_value
  # If you method provides a return value, you can describe here what it does
  'Return the build number of the app'
end

.run(params) ⇒ Object



4
5
6
7
8
9
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_get_build_number.rb', line 4

def self.run(params)
  require_relative '../../helper/ios/ios_version_helper'

  xcconfig_file_path = params[:xcconfig_file_path]
  Fastlane::Helper::Ios::VersionHelper.read_build_number_from_config_file(xcconfig_file_path)
end