Class: Fastlane::Actions::RustoredPublishApkAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::RustoredPublishApkAction
- Defined in:
- lib/fastlane/plugin/rustored/actions/rustored_publish_apk_action.rb
Class Method Summary collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .description ⇒ Object
- .details ⇒ Object
- .is_supported?(platform) ⇒ Boolean
- .run(params) ⇒ Object
Class Method Details
.authors ⇒ Object
26 27 28 |
# File 'lib/fastlane/plugin/rustored/actions/rustored_publish_apk_action.rb', line 26 def self. ["06ED"] end |
.available_options ⇒ Object
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/fastlane/plugin/rustored/actions/rustored_publish_apk_action.rb', line 34 def self. Fastlane::Helper::RustoredOptions. + [ FastlaneCore::ConfigItem.new( key: :apk_path, env_name: "RUSTORE_APK_PATH", description: "Path to the APK file you want to publish", optional: false, type: String ), FastlaneCore::ConfigItem.new( key: :services_type, env_name: "RUSTORE_SERVICES_TYPE", description: "The APK services type", optional: true, type: String, default_value: "Unknown", verify_block: proc do |value| UI.user_error!("services_type must be HMS or Unknown") unless %w[HMS Unknown].include?(value) end ), FastlaneCore::ConfigItem.new( key: :is_main_apk, env_name: "RUSTORE_IS_MAIN_APK", description: "Whether this APK is the main APK", optional: false, type: Boolean ) ] end |
.description ⇒ Object
22 23 24 |
# File 'lib/fastlane/plugin/rustored/actions/rustored_publish_apk_action.rb', line 22 def self.description "Upload an APK file to an existing RuStore draft version" end |
.details ⇒ Object
30 31 32 |
# File 'lib/fastlane/plugin/rustored/actions/rustored_publish_apk_action.rb', line 30 def self.details "Uploads an APK to an existing RuStore draft version." end |
.is_supported?(platform) ⇒ Boolean
64 65 66 |
# File 'lib/fastlane/plugin/rustored/actions/rustored_publish_apk_action.rb', line 64 def self.is_supported?(platform) [:android].include?(platform) end |
.run(params) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fastlane/plugin/rustored/actions/rustored_publish_apk_action.rb', line 10 def self.run(params) Fastlane::Helper::RustoredHelper.publish_apk( key_id: params[:key_id], private_key: params[:private_key], package_name: params[:package_name], version_id: params[:version_id], services_type: params[:services_type], is_main_apk: params[:is_main_apk], apk_path: params[:apk_path] ) end |