Class: Fastlane::Actions::UploadToPlayStoreAction
Constant Summary
Fastlane::Action::AVAILABLE_CATEGORIES, Fastlane::Action::RETURN_TYPES
Class Method Summary
collapse
action_name, author, deprecated_notes, lane_context, method_missing, other_action, return_type, sample_return_value, shell_out_should_use_bundle_exec?, step_text
Class Method Details
.authors ⇒ Object
60
61
62
|
# File 'fastlane/lib/fastlane/actions/upload_to_play_store.rb', line 60
def self.authors
["KrauseFx"]
end
|
.available_options ⇒ Object
48
49
50
51
52
|
# File 'fastlane/lib/fastlane/actions/upload_to_play_store.rb', line 48
def self.available_options
require 'supply'
require 'supply/options'
Supply::Options.available_options
end
|
.category ⇒ Object
75
76
77
|
# File 'fastlane/lib/fastlane/actions/upload_to_play_store.rb', line 75
def self.category
:production
end
|
.description ⇒ Object
40
41
42
|
# File 'fastlane/lib/fastlane/actions/upload_to_play_store.rb', line 40
def self.description
"Upload metadata, screenshots and binaries to Google Play (via _supply_)"
end
|
.details ⇒ Object
44
45
46
|
# File 'fastlane/lib/fastlane/actions/upload_to_play_store.rb', line 44
def self.details
"More information: https://docs.fastlane.tools/actions/supply/"
end
|
.example_code ⇒ Object
68
69
70
71
72
73
|
# File 'fastlane/lib/fastlane/actions/upload_to_play_store.rb', line 68
def self.example_code
[
'upload_to_play_store',
'supply # alias for "upload_to_play_store"'
]
end
|
.is_supported?(platform) ⇒ Boolean
64
65
66
|
# File 'fastlane/lib/fastlane/actions/upload_to_play_store.rb', line 64
def self.is_supported?(platform)
platform == :android
end
|
.output ⇒ Object
54
55
|
# File 'fastlane/lib/fastlane/actions/upload_to_play_store.rb', line 54
def self.output
end
|
.return_value ⇒ Object
57
58
|
# File 'fastlane/lib/fastlane/actions/upload_to_play_store.rb', line 57
def self.return_value
end
|
.run(params) ⇒ Object
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# File 'fastlane/lib/fastlane/actions/upload_to_play_store.rb', line 4
def self.run(params)
require 'supply'
require 'supply/options'
if params[:apk_paths].nil? && params[:apk].nil?
all_apk_paths = Actions.lane_context[SharedValues::GRADLE_ALL_APK_OUTPUT_PATHS] || []
if all_apk_paths.size > 1
params[:apk_paths] = all_apk_paths
else
params[:apk] = Actions.lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH]
end
end
if params[:aab].nil?
all_aab_paths = Actions.lane_context[SharedValues::GRADLE_ALL_AAB_OUTPUT_PATHS] || []
if all_aab_paths.count == 1
params[:aab] = all_aab_paths.first
else
params[:aab] = Actions.lane_context[SharedValues::GRADLE_AAB_OUTPUT_PATH]
end
end
Supply.config = params
Supply::Uploader.new.perform_upload
end
|