class Fastlane::Actions::HuaweiAppgalleryConnectGetAppInfoAction
Public Class Methods
available_options()
click to toggle source
# File lib/fastlane/plugin/huawei_appgallery_connect/actions/huawei_appgallery_connect_get_app_info.rb, line 40 def self.available_options [ FastlaneCore::ConfigItem.new(key: :client_id, env_name: "HUAWEI_APPGALLERY_CONNECT_CLIENT_ID", description: "Huawei AppGallery Connect Client ID", optional: false, type: String), FastlaneCore::ConfigItem.new(key: :client_secret, env_name: "HUAWEI_APPGALLERY_CONNECT_CLIENT_SECRET", description: "Huawei AppGallery Connect Client Secret", optional: false, type: String), FastlaneCore::ConfigItem.new(key: :app_id, env_name: "HUAWEI_APPGALLERY_CONNECT_APP_ID", description: "Huawei AppGallery Connect App ID", optional: false, type: String), ] end
description()
click to toggle source
# File lib/fastlane/plugin/huawei_appgallery_connect/actions/huawei_appgallery_connect_get_app_info.rb, line 23 def self.description "Huawei AppGallery Connect Plugin" end
details()
click to toggle source
# File lib/fastlane/plugin/huawei_appgallery_connect/actions/huawei_appgallery_connect_get_app_info.rb, line 35 def self.details # Optional: "Fastlane plugin to get Android app to Huawei AppGallery Connect information" end
example_code()
click to toggle source
# File lib/fastlane/plugin/huawei_appgallery_connect/actions/huawei_appgallery_connect_get_app_info.rb, line 68 def self.example_code [ 'app_info = huawei_appgallery_connect_get_app_info' ] end
is_supported?(platform)
click to toggle source
# File lib/fastlane/plugin/huawei_appgallery_connect/actions/huawei_appgallery_connect_get_app_info.rb, line 63 def self.is_supported?(platform) [:android].include?(platform) true end
return_value()
click to toggle source
# File lib/fastlane/plugin/huawei_appgallery_connect/actions/huawei_appgallery_connect_get_app_info.rb, line 31 def self.return_value # 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/huawei_appgallery_connect/actions/huawei_appgallery_connect_get_app_info.rb, line 11 def self.run(params) token = Helper::HuaweiAppgalleryConnectHelper.get_token(params[:client_id], params[:client_secret]) if token.nil? UI.message("Cannot retrieve token, please check your client ID and client secret") else appInfo = Helper::HuaweiAppgalleryConnectHelper.get_app_info(token, params[:client_id],params[:app_id]) Actions.lane_context[SharedValues::ANDROID_APPGALLERY_APP_INFO] = appInfo return appInfo end end