Class: Fastlane::Actions::HuaweiAppgalleryConnectGetAppIdAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::HuaweiAppgalleryConnectGetAppIdAction
- Defined in:
- lib/fastlane/plugin/huawei_appgallery_connect/actions/huawei_appgallery_connect_get_app_id.rb
Class Method Summary collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .description ⇒ Object
- .details ⇒ Object
- .example_code ⇒ Object
- .is_supported?(platform) ⇒ Boolean
- .return_value ⇒ Object
- .run(params) ⇒ Object
Class Method Details
.authors ⇒ Object
27 28 29 |
# File 'lib/fastlane/plugin/huawei_appgallery_connect/actions/huawei_appgallery_connect_get_app_id.rb', line 27 def self. ["Shreejan Shrestha", "Kirill Mandrygin"] end |
.available_options ⇒ Object
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/fastlane/plugin/huawei_appgallery_connect/actions/huawei_appgallery_connect_get_app_id.rb', line 40 def self. [ 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: :package_id, env_name: "HUAWEI_APPGALLERY_CONNECT_PACKAGE_ID", description: "Huawei AppGallery Connect Package ID", optional: false, type: String), ] end |
.description ⇒ Object
23 24 25 |
# File 'lib/fastlane/plugin/huawei_appgallery_connect/actions/huawei_appgallery_connect_get_app_id.rb', line 23 def self.description "Huawei AppGallery Connect Plugin" end |
.details ⇒ Object
35 36 37 38 |
# File 'lib/fastlane/plugin/huawei_appgallery_connect/actions/huawei_appgallery_connect_get_app_id.rb', line 35 def self.details # Optional: "Fastlane plugin to get Android app to Huawei AppGallery Connect information" end |
.example_code ⇒ Object
68 69 70 71 72 |
# File 'lib/fastlane/plugin/huawei_appgallery_connect/actions/huawei_appgallery_connect_get_app_id.rb', line 68 def self.example_code [ 'app_id = huawei_appgallery_connect_get_app_id' ] end |
.is_supported?(platform) ⇒ Boolean
63 64 65 66 |
# File 'lib/fastlane/plugin/huawei_appgallery_connect/actions/huawei_appgallery_connect_get_app_id.rb', line 63 def self.is_supported?(platform) [:android].include?(platform) true end |
.return_value ⇒ Object
31 32 33 |
# File 'lib/fastlane/plugin/huawei_appgallery_connect/actions/huawei_appgallery_connect_get_app_id.rb', line 31 def self.return_value # If your method provides a return value, you can describe here what it does end |
.run(params) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fastlane/plugin/huawei_appgallery_connect/actions/huawei_appgallery_connect_get_app_id.rb', line 11 def self.run(params) token = Helper::HuaweiAppgalleryConnectHelper.get_token(params[:client_id], params[:client_secret]) if token.nil? UI.("Cannot retrieve token, please check your client ID and client secret") else appID = Helper::HuaweiAppgalleryConnectHelper.get_app_id(token, params[:client_id],params[:package_id]) Actions.lane_context[SharedValues::ANDROID_APPGALLERY_APP_ID] = appID return appID end end |