Class: Fastlane::Actions::IosGetAppVersionAction

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

Documentation collapse

Class Method Summary collapse

Class Method Details

.authorsObject



37
38
39
40
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_get_app_version.rb', line 37

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

.available_optionsObject



24
25
26
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_get_app_version.rb', line 24

def self.available_options
  # Define all options your action supports.
end

.descriptionObject



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

def self.description
  'Gets the public version of the app'
end

.detailsObject



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

def self.details
  'Gets the public version of the app'
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


42
43
44
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_get_app_version.rb', line 42

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

.outputObject



28
29
30
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_get_app_version.rb', line 28

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

.return_valueObject



32
33
34
35
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_get_app_version.rb', line 32

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

.run(params) ⇒ Object



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

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

  UI.user_error!('You need to set at least the PUBLIC_CONFIG_FILE env var to the path to the public xcconfig file') unless ENV['PUBLIC_CONFIG_FILE']

  Fastlane::Helper::Ios::VersionHelper.get_public_version
end