Class: Fastlane::Actions::RustoredPublishApkAction

Inherits:
Action
  • Object
show all
Defined in:
lib/fastlane/plugin/rustored/actions/rustored_publish_apk_action.rb

Class Method Summary collapse

Class Method Details

.authorsObject



25
26
27
# File 'lib/fastlane/plugin/rustored/actions/rustored_publish_apk_action.rb', line 25

def self.authors
  ["06ED"]
end

.available_optionsObject



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/fastlane/plugin/rustored/actions/rustored_publish_apk_action.rb', line 33

def self.available_options
  Fastlane::Helper::RustoredOptions.common_options + [
    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
    ),
    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

.descriptionObject



21
22
23
# File 'lib/fastlane/plugin/rustored/actions/rustored_publish_apk_action.rb', line 21

def self.description
  "Publish an APK file to RuStore"
end

.detailsObject



29
30
31
# File 'lib/fastlane/plugin/rustored/actions/rustored_publish_apk_action.rb', line 29

def self.details
  "Uploads an APK to an existing RuStore app version."
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


59
60
61
# File 'lib/fastlane/plugin/rustored/actions/rustored_publish_apk_action.rb', line 59

def self.is_supported?(platform)
  [:android].include?(platform)
end

.run(params) ⇒ Object



10
11
12
13
14
15
16
17
18
19
# File 'lib/fastlane/plugin/rustored/actions/rustored_publish_apk_action.rb', line 10

def self.run(params)
  Fastlane::Helper::RustoredHelper.publish_apk(
    token: params[:token],
    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