class Fastlane::Actions::GetVersionCodeAction
Public Class Methods
available_options()
click to toggle source
@!group Documentation
# File lib/fastlane/plugin/android_versioning_plus/actions/get_version_code.rb, line 17 def self.available_options [ FastlaneCore::ConfigItem.new(key: :app_project_dir, env_name: "ANDROID_VERSIONING_APP_PROJECT_DIR", description: "The path to the application source folder in the Android project (default: android/app)", optional: true, type: String, default_value: "android/app"), FastlaneCore::ConfigItem.new(key: :flavor, env_name: "ANDROID_VERSIONING_FLAVOR", description: "The product flavor name (optional)", optional: true, type: String) ] end
description()
click to toggle source
# File lib/fastlane/plugin/android_versioning_plus/actions/get_version_code.rb, line 33 def self.description "Get the version code of your project" end
details()
click to toggle source
# File lib/fastlane/plugin/android_versioning_plus/actions/get_version_code.rb, line 37 def self.details [ "This action will return the current version code set on your project's build.gradle." ].join(' ') end
is_supported?(platform)
click to toggle source
# File lib/fastlane/plugin/android_versioning_plus/actions/get_version_code.rb, line 53 def self.is_supported?(platform) platform == :android end
output()
click to toggle source
# File lib/fastlane/plugin/android_versioning_plus/actions/get_version_code.rb, line 43 def self.output [ ['VERSION_CODE', 'The version code'] ] end
run(params)
click to toggle source
# File lib/fastlane/plugin/android_versioning_plus/actions/get_version_code.rb, line 6 def self.run(params) GetValueFromBuildAction.run( app_project_dir: params[:app_project_dir], flavor: params[:flavor], key: "versionCode" ) end