class Fastlane::Actions::BminfoAction

Public Class Methods

authors() click to toggle source
# File lib/fastlane/plugin/testbm/actions/bminfo_action.rb, line 15
def self.authors
  ["Bemobile"]
end
available_options() click to toggle source
# File lib/fastlane/plugin/testbm/actions/bminfo_action.rb, line 27
def self.available_options
  [
    FastlaneCore::ConfigItem.new(key: :environment,
                             env_name: "ENVIRONMENT",
                          description: "The execution environment",
                             optional: false,
                                 type: String)
  ]
end
description() click to toggle source
# File lib/fastlane/plugin/testbm/actions/bminfo_action.rb, line 11
def self.description
  "TODO"
end
details() click to toggle source
# File lib/fastlane/plugin/testbm/actions/bminfo_action.rb, line 23
def self.details
  "TODO"
end
is_supported?(platform) click to toggle source
# File lib/fastlane/plugin/testbm/actions/bminfo_action.rb, line 37
def self.is_supported?(platform)
  true
end
project_func_get_information(environment, ios_sign_config_type= "") click to toggle source
# File lib/fastlane/plugin/testbm/actions/bminfo_action.rb, line 41
def self.project_func_get_information(environment, ios_sign_config_type= "") 

  #Get android info
  android_scheme_name = ENV["PRIVATE_ANDROID_SCHEME_NAME_DEV"]
  android_bundle_id = ENV["PRIVATE_ANDROID_APP_ID_DEV"]
  android_build_type = ENV["PRIVATE_ANDROID_BUILD_TYPE_DEV"]
  if environment == Helper::BmHelper::CONST_PROJECT_ENVIRONMENT__PROD
      android_scheme_name = ENV["PRIVATE_ANDROID_SCHEME_NAME_PROD"]
      android_bundle_id = ENV["PRIVATE_ANDROID_APP_ID_PROD"]
      android_build_type = ENV["PRIVATE_ANDROID_BUILD_TYPE_PROD"]
  end
    
  #Get ios scheme name
  ios_scheme_name = ENV["PRIVATE_IOS_SCHEME_NAME_DEV"]
  ios_bundle_id = ENV["PRIVATE_IOS_BUNDLE_ID_DEV"]
  if environment == Helper::BmHelper::CONST_PROJECT_ENVIRONMENT__PROD
      ios_scheme_name = ENV["PRIVATE_IOS_SCHEME_NAME_PROD"]
      ios_bundle_id = ENV["PRIVATE_IOS_BUNDLE_ID_PROD"]
  end
    
  information = {
      app_name: ENV["PRIVATE_APP_NAME"],
      environment: environment,
      changelog: ENV["PRIVATE_CHANGELOG"], 
    
      android: {
          scheme_name: android_scheme_name,
          bundle_id: android_bundle_id,
          build_type: android_build_type, #DevRelease
      },
      ios: {
          xcodeproj: ENV["PRIVATE_XCODEPROJ_NAME"],
          workspace: ENV["PRIVATE_XCWORKSPACE_NAME"],
          scheme_name: ios_scheme_name,
          bundle_id: ios_bundle_id,
          sign_config_type: ios_sign_config_type, # == match_type
      }
  }    
  information
end
return_value() click to toggle source
# File lib/fastlane/plugin/testbm/actions/bminfo_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/bminfo_action.rb, line 6
def self.run(params)
  environment = params[:environment]
  self.project_func_get_information(environment: environment)
end