fastlane-plugin-gs_deliver 0.3.11 → 0.3.12
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff66bcb0b92d66e4805564f33e5124f4e8143653
|
4
|
+
data.tar.gz: 717d822d6a5e624c160fdc3e241569a79e3223c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7a82ce4acc51a6147bb1d772b5ee212d83eda9a82d7e55c2576f8b54c33ed8bc3599472044c4964b6f7ca329bca2c04e5f97caedca1485ea0130a50803ccf00
|
7
|
+
data.tar.gz: d5064d877a05b3039e36036a64023dd8cdbc99e47ad27b57f35c6642f170fe09cdedde8070d8977c89d036b537f4455f10236ff3512eb1314077c48a23de76b7
|
@@ -0,0 +1,65 @@
|
|
1
|
+
module Fastlane
|
2
|
+
module Actions
|
3
|
+
require 'Spaceship'
|
4
|
+
require 'pilot'
|
5
|
+
class GsRemoveFromTestflightReviewAction < Action
|
6
|
+
def self.run(params)
|
7
|
+
build_manager = Pilot::BuildManager.new
|
8
|
+
build_manager.start(params)
|
9
|
+
platform = build_manager.fetch_app_platform(required: false)
|
10
|
+
builds = build_manager.app.all_processing_builds(platform: platform) + build_manager.app.builds(platform: platform)
|
11
|
+
# sort by upload_date
|
12
|
+
builds.sort! { |a, b| a.upload_date <=> b.upload_date }
|
13
|
+
build = builds.last
|
14
|
+
if build.nil?
|
15
|
+
UI.user_error!("No builds found.")
|
16
|
+
return
|
17
|
+
end
|
18
|
+
if build.processing
|
19
|
+
UI.user_error!("Build #{build.train_version}(#{build.build_version}) is still processing.")
|
20
|
+
return
|
21
|
+
end
|
22
|
+
if build.testing_status == "External"
|
23
|
+
UI.user_error!("Build #{build.train_version}(#{build.build_version}) has already been distributed.")
|
24
|
+
return
|
25
|
+
end
|
26
|
+
|
27
|
+
build.client.remove_testflight_build_from_review!(app_id: build.apple_id,
|
28
|
+
train: build.train_version,
|
29
|
+
build_number: build.build_version,
|
30
|
+
platform: build.platform)
|
31
|
+
end
|
32
|
+
|
33
|
+
def self.description
|
34
|
+
"Gradoservice plugin to rule apps releases"
|
35
|
+
end
|
36
|
+
|
37
|
+
def self.authors
|
38
|
+
["Сергей Веселовский"]
|
39
|
+
end
|
40
|
+
|
41
|
+
def self.return_value
|
42
|
+
# If your method provides a return value, you can describe here what it does
|
43
|
+
end
|
44
|
+
|
45
|
+
def self.details
|
46
|
+
# Optional:
|
47
|
+
"Gradoservice plugin to rule apps releases for our scheme"
|
48
|
+
end
|
49
|
+
|
50
|
+
def self.available_options
|
51
|
+
require "pilot"
|
52
|
+
require "pilot/options"
|
53
|
+
FastlaneCore::CommanderGenerator.new.generate(Pilot::Options.available_options)
|
54
|
+
end
|
55
|
+
|
56
|
+
def self.is_supported?(platform)
|
57
|
+
# Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example)
|
58
|
+
# See: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Platforms.md
|
59
|
+
#
|
60
|
+
# [:ios, :mac, :android].include?(platform)
|
61
|
+
true
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-gs_deliver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Сергей Веселовский
|
@@ -107,6 +107,7 @@ files:
|
|
107
107
|
- lib/fastlane/plugin/gs_deliver/actions/gs_move_rc_to_beta_review.rb
|
108
108
|
- lib/fastlane/plugin/gs_deliver/actions/gs_move_to_ready_for_sale.rb
|
109
109
|
- lib/fastlane/plugin/gs_deliver/actions/gs_reject_latest_version.rb
|
110
|
+
- lib/fastlane/plugin/gs_deliver/actions/gs_remove_from_testflight_review.rb
|
110
111
|
- lib/fastlane/plugin/gs_deliver/actions/gs_start_external_testing.rb
|
111
112
|
- lib/fastlane/plugin/gs_deliver/helper/gs_deliver_helper.rb
|
112
113
|
- lib/fastlane/plugin/gs_deliver/version.rb
|