class Fastlane::Actions::GetGradleDataAction
Public Class Methods
available_options()
click to toggle source
# File lib/fastlane/plugin/gradle_manager/actions/get_gradle_data_action.rb, line 36 def self.available_options [ FastlaneCore::ConfigItem.new(key: :module_name, env_name: 'GRADLE_MANAGER_MODULE_NAME', description: 'The name of the application source folder in the Android project (default: app)', optional: true, type: String, default_value: 'app'), FastlaneCore::ConfigItem.new(key: :gradle_file_path, env_name: 'GRADLE_MANAGER_GRADLE_FILE_PATH', description: 'The relative path to the gradle file (default:app/build.gradle)', optional: true, type: String, default_value: nil) ] end
description()
click to toggle source
# File lib/fastlane/plugin/gradle_manager/actions/get_gradle_data_action.rb, line 17 def self.description 'Get the parsed Gradle file of an Android project.' end
details()
click to toggle source
# File lib/fastlane/plugin/gradle_manager/actions/get_gradle_data_action.rb, line 29 def self.details [ 'Get the parsed Gradle file of an Android project.', 'This action will return the parsed Gradle file based on the path you\'ve specified.' ].join('\n') end
is_supported?(platform)
click to toggle source
# File lib/fastlane/plugin/gradle_manager/actions/get_gradle_data_action.rb, line 53 def self.is_supported?(platform) [:android].include?(platform) end
return_value()
click to toggle source
# File lib/fastlane/plugin/gradle_manager/actions/get_gradle_data_action.rb, line 25 def self.return_value 'Returns the parsed Gradle file.' end
run(params)
click to toggle source
# File lib/fastlane/plugin/gradle_manager/actions/get_gradle_data_action.rb, line 4 def self.run(params) gradle_file_path = Helper::GradleFileFinderHelper.find_file(params) begin gradle_data = Helper::GradleParserHelper.parse(gradle_file_path) Actions.lane_context[SharedValues::GM_RAW_DATA] = gradle_data UI.success('👍 gradle data successfully parsed') return gradle_data rescue => err UI.error("An exception occurred while parsing the gradle file: #{err}") end end