fastlane-plugin-get_new_build_number 0.2.7 → 0.2.10
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: d985fea4e6701674f2865c8bc637eeb6402af1f907ba8970304f008043f27e34
|
4
|
+
data.tar.gz: e5be6e48350b6becd79e9aacd89a1ecd5103d7af96362972daee76155bcc7b8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e55d368403e1dd2a3881101e0bdfe077d06f07106b43b4d31f0d5f966a57a3c3e6689c3f375df88e1553567fdd66ef6636773f8a1bb346666f59540936b374b8
|
7
|
+
data.tar.gz: bf22234e849fd65411a8c115e164d0039ef6d4e364b3c5c5cf2aa170523f196e16331e1f54996b19f3e8bd78a95aaf1cf1a84303c6450e92a520412223c3853b
|
@@ -21,7 +21,7 @@ module Fastlane
|
|
21
21
|
UI.success("File with new number file exists. Reading build number from it...")
|
22
22
|
latest_build_number = File.read(file).to_i
|
23
23
|
else
|
24
|
-
UI.
|
24
|
+
UI.important("File with new build number does not exist. New build number will be " \
|
25
25
|
"retrieved and temporary file with it will be created.")
|
26
26
|
latest_build_number = Helper::GetNewBuildNumberHelper.get_latest_build_number(
|
27
27
|
bundle_identifier: params[:bundle_identifier],
|
@@ -68,25 +68,41 @@ module Fastlane
|
|
68
68
|
].max
|
69
69
|
|
70
70
|
UI.message("Latest build number (Google Play Store): #{google_play_build_number}")
|
71
|
-
|
71
|
+
|
72
72
|
fad_build_number_ios = 0
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
73
|
+
begin
|
74
|
+
unless firebase_app_ios.nil?
|
75
|
+
response = Fastlane::Actions::FirebaseAppDistributionGetLatestReleaseAction.run(
|
76
|
+
app: firebase_app_ios,
|
77
|
+
service_credentials_file: firebase_json_key_path
|
78
|
+
)
|
79
|
+
|
80
|
+
unless response.nil?
|
81
|
+
fad_build_number_ios = response[:buildVersion].to_i
|
82
|
+
end
|
83
|
+
|
84
|
+
UI.message("Latest build (Firebase App Distribution iOS): #{fad_build_number_ios}")
|
85
|
+
end
|
86
|
+
rescue StandardError => e
|
87
|
+
UI.error("Error getting latest build number (Firebase App Distribution iOS): #{e.message}")
|
80
88
|
end
|
81
89
|
|
82
90
|
fad_build_number_android = 0
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
91
|
+
begin
|
92
|
+
unless firebase_app_android.nil?
|
93
|
+
response = Fastlane::Actions::FirebaseAppDistributionGetLatestReleaseAction.run(
|
94
|
+
app: firebase_app_android,
|
95
|
+
service_credentials_file: firebase_json_key_path
|
96
|
+
)
|
97
|
+
|
98
|
+
unless response.nil?
|
99
|
+
fad_build_number_android = response[:buildVersion].to_i
|
100
|
+
end
|
101
|
+
|
102
|
+
UI.message("Latest build (Firebase App Distribution Android): #{fad_build_number_android}")
|
103
|
+
end
|
104
|
+
rescue StandardError => e
|
105
|
+
UI.error("Error getting latest build number (Firebase App Distribution Android): #{e.message}")
|
90
106
|
end
|
91
107
|
|
92
108
|
return [
|
@@ -100,17 +116,22 @@ module Fastlane
|
|
100
116
|
# Returns the latest build number ("version code", in Android terminology)
|
101
117
|
# for the given Google Play track.
|
102
118
|
def self.get_google_play_build_number(track:, package_name:, json_key:)
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
119
|
+
begin
|
120
|
+
codes = Fastlane::Actions::GooglePlayTrackVersionCodesAction.run(
|
121
|
+
track:,
|
122
|
+
package_name:,
|
123
|
+
json_key:
|
124
|
+
)
|
108
125
|
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
126
|
+
return codes.max
|
127
|
+
rescue StandardError
|
128
|
+
UI.message("No build numbers found for track #{track} (Google Play Store)")
|
129
|
+
return 0
|
130
|
+
end
|
113
131
|
end
|
132
|
+
|
133
|
+
# TODO: Don't duplicate so much code
|
134
|
+
# def self.get_firebase_app_distribution_build_number()
|
114
135
|
end
|
115
136
|
end
|
116
137
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-get_new_build_number
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bartek Pacia
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -164,7 +164,7 @@ dependencies:
|
|
164
164
|
- - ">="
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
|
-
description:
|
167
|
+
description:
|
168
168
|
email: barpac02@gmail.com
|
169
169
|
executables: []
|
170
170
|
extensions: []
|
@@ -182,7 +182,7 @@ licenses:
|
|
182
182
|
- MIT
|
183
183
|
metadata:
|
184
184
|
rubygems_mfa_required: 'true'
|
185
|
-
post_install_message:
|
185
|
+
post_install_message:
|
186
186
|
rdoc_options: []
|
187
187
|
require_paths:
|
188
188
|
- lib
|
@@ -197,8 +197,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
197
197
|
- !ruby/object:Gem::Version
|
198
198
|
version: '0'
|
199
199
|
requirements: []
|
200
|
-
rubygems_version: 3.3.
|
201
|
-
signing_key:
|
200
|
+
rubygems_version: 3.3.7
|
201
|
+
signing_key:
|
202
202
|
specification_version: 4
|
203
203
|
summary: Retrieves the new build number for your app.
|
204
204
|
test_files: []
|