fastlane-plugin-rustore_distribute 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/fastlane/plugin/rustore_distribute/actions/rustore_distribute_publish_action.rb +7 -7
- data/lib/fastlane/plugin/rustore_distribute/helper/rustore_distribute_helper.rb +1 -1
- data/lib/fastlane/plugin/rustore_distribute/version.rb +2 -2
- data/lib/fastlane/plugin/rustore_distribute.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b560058160b7655121d7bdf0097fb4e78235ca28979ffa4d215142cbd68521fa
|
4
|
+
data.tar.gz: b39042e2e7484654cea68b259c71d2445be76db81801f5355c816e1fa4724907
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f823858f13228ce04c38059816875f23956388d021ed7fbdfc9e197e96302594c4042bbf7f78ed9a7a81734ef4f8dc4e2bb3f03178771315b7579285a9e42caf
|
7
|
+
data.tar.gz: 7efc37078438b83abc0ed99ca26613880806c015b93903142dd143f872b4ca3f9f288cc5a22427c468d485584635753bfd32db839cb31273aa2ccf18312d0132
|
@@ -3,13 +3,13 @@ require "fastlane_core/ui/ui"
|
|
3
3
|
|
4
4
|
module Fastlane
|
5
5
|
module Actions
|
6
|
-
class
|
6
|
+
class RustoreDistributePublishAction < Action
|
7
7
|
def self.authors
|
8
8
|
["Vladislav Onishchenko"]
|
9
9
|
end
|
10
10
|
|
11
11
|
def self.description
|
12
|
-
"
|
12
|
+
"RustoreDistribute fastlane integration plugin"
|
13
13
|
end
|
14
14
|
|
15
15
|
def self.run(params)
|
@@ -21,17 +21,17 @@ module Fastlane
|
|
21
21
|
hms_apk = params[:hms_apk]
|
22
22
|
|
23
23
|
# Получение токена
|
24
|
-
token = Helper::
|
24
|
+
token = Helper::RustoreDistributeHelper.get_token(key_id: key_id, private_key: private_key)
|
25
25
|
# Создание черновика
|
26
|
-
draft_id = Helper::
|
26
|
+
draft_id = Helper::RustoreDistributeHelper.create_draft(token, package_name, publish_type)
|
27
27
|
# Загрузка апк
|
28
|
-
Helper::
|
28
|
+
Helper::RustoreDistributeHelper.upload_apk(token, draft_id, false, gms_apk, package_name)
|
29
29
|
# Если путь до хмс передали, то и его заливаем
|
30
30
|
unless hms_apk.nil?
|
31
|
-
Helper::
|
31
|
+
Helper::RustoreDistributeHelper.upload_apk(token, draft_id, true, hms_apk, package_name)
|
32
32
|
end
|
33
33
|
# Отправка на модерацию
|
34
|
-
Helper::
|
34
|
+
Helper::RustoreDistributeHelper.commit_version(token, draft_id, package_name)
|
35
35
|
|
36
36
|
end
|
37
37
|
|
@@ -1,7 +1,7 @@
|
|
1
|
-
require 'fastlane/plugin/
|
1
|
+
require 'fastlane/plugin/rustore_distribute/version'
|
2
2
|
|
3
3
|
module Fastlane
|
4
|
-
module
|
4
|
+
module RustoreDistribute
|
5
5
|
# Return all .rb files inside the "actions" and "helper" directory
|
6
6
|
def self.all_classes
|
7
7
|
Dir[File.expand_path('**/{actions,helper}/*.rb', File.dirname(__FILE__))]
|
@@ -11,6 +11,6 @@ end
|
|
11
11
|
|
12
12
|
# By default we want to import all available actions and helpers
|
13
13
|
# A plugin can contain any number of actions and plugins
|
14
|
-
Fastlane::
|
14
|
+
Fastlane::RustoreDistribute.all_classes.each do |current|
|
15
15
|
require current
|
16
16
|
end
|