class Fastlane::Actions::BmversionAction

Public Class Methods

authors() click to toggle source
# File lib/fastlane/plugin/testbm/actions/bmversion_action.rb, line 15
def self.authors
  ["Bemobile"]
end
available_options() click to toggle source
# File lib/fastlane/plugin/testbm/actions/bmversion_action.rb, line 27
def self.available_options
  [
    FastlaneCore::ConfigItem.new(key: :platform_type,
                             env_name: "PLATFORM_TYPE",
                          description: "The platform, can be Android or iOS",
                             optional: false,
                                 type: String)
  ]
end
description() click to toggle source
# File lib/fastlane/plugin/testbm/actions/bmversion_action.rb, line 11
def self.description
  "TODO"
end
details() click to toggle source
# File lib/fastlane/plugin/testbm/actions/bmversion_action.rb, line 23
def self.details
  "TODO"
end
is_supported?(platform) click to toggle source
# File lib/fastlane/plugin/testbm/actions/bmversion_action.rb, line 37
def self.is_supported?(platform)
  true
end
return_value() click to toggle source
# File lib/fastlane/plugin/testbm/actions/bmversion_action.rb, line 19
def self.return_value
  "TODO. If your method provides a return value, you can describe here what it does"
end
run(params) click to toggle source
# File lib/fastlane/plugin/testbm/actions/bmversion_action.rb, line 6
def self.run(params)
  platform_type = params[:platform_type]
  self.version_func_get_version(platform_type)
end
version_func_get_version(platform_type) click to toggle source
# File lib/fastlane/plugin/testbm/actions/bmversion_action.rb, line 41
def self.version_func_get_version(platform_type)
  build_number = ""
  version_number = ""
    
  if platform_type == Helper::BmHelper::CONST_PROJECT_TYPE__IOS
      version_number = Actions.lane_context[Actions::SharedValues::VERSION_NUMBER]
      build_number = Actions.lane_context[Actions::SharedValues::BUILD_NUMBER]
  elsif
      version_number = File.read("version.name").to_s  
      build_number = File.read("version.number").to_s  
  end
    
  {build_number: build_number, version_number: version_number}
end