Class: Fastlane::Actions::AndroidGetAlphaVersionAction

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

Documentation collapse

Class Method Summary collapse

Class Method Details

.authorsObject



52
53
54
55
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_get_alpha_version.rb', line 52

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

.available_optionsObject



28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_get_alpha_version.rb', line 28

def self.available_options
  [
    FastlaneCore::ConfigItem.new(key: :build_gradle_path,
                                 description: 'Path to the build.gradle file',
                                 type: String,
                                 optional: true,
                                 conflicting_options: [:version_properties_path]),
    FastlaneCore::ConfigItem.new(key: :version_properties_path,
                                 description: 'Path to the version.properties file',
                                 type: String,
                                 optional: true,
                                 conflicting_options: [:build_gradle_path]),
  ]
end

.descriptionObject



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

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

.detailsObject



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

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

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


57
58
59
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_get_alpha_version.rb', line 57

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

.outputObject



43
44
45
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_get_alpha_version.rb', line 43

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

.return_valueObject



47
48
49
50
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_get_alpha_version.rb', line 47

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

.run(params) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_get_alpha_version.rb', line 4

def self.run(params)
  require_relative '../../helper/android/android_version_helper'

  build_gradle_path = params[:build_gradle_path]
  version_properties_path = params[:version_properties_path]

  Fastlane::Helper::Android::VersionHelper.get_alpha_version(
    build_gradle_path: build_gradle_path,
    version_properties_path: version_properties_path
  )
end