Class: Fastlane::Actions::AndroidGetValueFromBuildAction
- Inherits:
-
AndroidBaseAction
show all
- Defined in:
- lib/fastlane/plugin/android_version_manager/actions/android_get_value_from_build_action.rb
Class Method Summary
collapse
app_project_dir_action, authors, find_build_gradle, is_supported?
Class Method Details
.available_options ⇒ Object
14
15
16
17
18
19
20
21
|
# File 'lib/fastlane/plugin/android_version_manager/actions/android_get_value_from_build_action.rb', line 14
def self.available_options
[
app_project_dir_action,
FastlaneCore::ConfigItem.new(key: :key,
description: "The property key to retrieve the value from",
type: String),
]
end
|
.run(params) ⇒ Object
7
8
9
10
11
12
|
# File 'lib/fastlane/plugin/android_version_manager/actions/android_get_value_from_build_action.rb', line 7
def self.run(params)
app_project_dir ||= params[:app_project_dir]
file_path = find_build_gradle(app_project_dir)
value, _line, _line_index = Helper::AndroidVersionManagerHelper.get_key_from_gradle_file(file_path, params[:key])
return value
end
|