fastlane-plugin-taiwan_number_one 0.2.2 → 0.2.3
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 359821e6b701c5b2dab9f8da4638677242b7291a16f00f4746ce61e06c8c1af6
|
4
|
+
data.tar.gz: 1064960c97b3c0f4b1b41bf73151b87dccbaace13a85de31fabdda343a455ba1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e97f0c3d12f350869f175f728e05dcc1b2ebedf7b91ad2898543415b26ebf0fb538eafea889b6959982825d3bf34aa0be39362bb57e6045add9f5a55a924a3c8
|
7
|
+
data.tar.gz: a26924113675bea5bfae2d7cf683e50e2f4e849dcbd8ccb894361b8a8bdc9cd2edfde5ae9bb2513ef47bb6ef3db11543504dfe8ac58c5aa94dc69d61aa562fd9
|
@@ -1,5 +1,4 @@
|
|
1
1
|
require "fastlane/action"
|
2
|
-
require "Spaceship"
|
3
2
|
require_relative "../helper/taiwan_number_one_helper"
|
4
3
|
|
5
4
|
module Fastlane
|
@@ -16,6 +15,7 @@ module Fastlane
|
|
16
15
|
end
|
17
16
|
|
18
17
|
def self.run(params)
|
18
|
+
require 'spaceship'
|
19
19
|
begin
|
20
20
|
params[:api_key] ||= Actions.lane_context[SharedValues::APP_STORE_CONNECT_API_KEY]
|
21
21
|
|
@@ -62,6 +62,7 @@ module Fastlane
|
|
62
62
|
UI.message("version #{version_string} is #{state}")
|
63
63
|
unless state == Spaceship::ConnectAPI::AppStoreVersion::AppStoreState::PENDING_DEVELOPER_RELEASE
|
64
64
|
UI.message("AppStoreState is not PENDING_DEVELOPER_RELEASE")
|
65
|
+
UI.message("🇹🇼 Taiwan helps you do nothing!")
|
65
66
|
return
|
66
67
|
end
|
67
68
|
decision = params[:app_decision]
|
@@ -81,13 +82,16 @@ module Fastlane
|
|
81
82
|
end
|
82
83
|
|
83
84
|
UI.message("The taiwan_number_one plugin action is finished!")
|
85
|
+
UI.message("🇹🇼 Taiwan can help!")
|
84
86
|
return result
|
85
87
|
else
|
86
88
|
UI.message("no pending release version exist.")
|
87
89
|
UI.message("The taiwan_number_one plugin action is finished!")
|
90
|
+
UI.message("🇹🇼 Taiwan can help!")
|
88
91
|
return ActionResult::DO_NOTHING
|
89
92
|
end
|
90
93
|
rescue => error
|
94
|
+
UI.message("🇹🇼 Taiwan might not be able to help you with this...")
|
91
95
|
UI.user_error!("The taiwan_number_one plugin action is finished with error: #{error.message}!")
|
92
96
|
return ActionResult::DO_NOTHING
|
93
97
|
end
|
@@ -159,10 +163,16 @@ module Fastlane
|
|
159
163
|
end
|
160
164
|
|
161
165
|
def self.details
|
162
|
-
# Optional:
|
163
166
|
"use fastlane to release or reject reviewed version"
|
164
167
|
end
|
165
168
|
|
169
|
+
def self.output
|
170
|
+
[
|
171
|
+
[ActionResult::SUCCESS, 'Successfully release or reject.'],
|
172
|
+
[ActionResult::DO_NOTHING, 'Do nothing.']
|
173
|
+
]
|
174
|
+
end
|
175
|
+
|
166
176
|
def self.available_options
|
167
177
|
user = CredentialsManager::AppfileConfig.try_fetch_value(:itunes_connect_id)
|
168
178
|
user ||= CredentialsManager::AppfileConfig.try_fetch_value(:apple_id)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-taiwan_number_one
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- andrew54068
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-03-
|
11
|
+
date: 2021-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|