fastlane-plugin-get_new_build_number 0.1.0 → 0.2.0
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: 4c90e78136c51a621e69f71d95ec3eb015895652949041603ccd3cad27bf4ab4
|
4
|
+
data.tar.gz: 1c8c730ee099a35ac0a28a74410d350f4a54f6e999da11c0e38e092d1e632c4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7155f7c2b9055a367d0b3a11d010b275070426c70e82724bd2c65cd21de5d4540bbb8ffe73aca002fc769017c29558c36d8b9e3bd6ca42d8998378d922fabd95
|
7
|
+
data.tar.gz: d07f9e690bba3ad23a98c9d56219a75b014a7513c1b0efd8007db30693f755189db914b547f0dacd3bc8d2baad1abadb1e5ac177d18fdf9011d0b703d5315efe
|
@@ -7,8 +7,6 @@ module Fastlane
|
|
7
7
|
module Actions
|
8
8
|
class GetNewBuildNumberAction < Action
|
9
9
|
def self.run(params)
|
10
|
-
UI.message("The get_new_build_number plugin is working!")
|
11
|
-
|
12
10
|
UI.message("bundle_identifier: #{params[:bundle_identifier]}")
|
13
11
|
UI.message("package_name: #{params[:package_name]}")
|
14
12
|
UI.message("google_play_json_key_path: #{params[:google_play_json_key_path]}")
|
@@ -34,14 +32,17 @@ module Fastlane
|
|
34
32
|
firebase_app_android: params[:firebase_app_android],
|
35
33
|
)
|
36
34
|
|
37
|
-
File.open(file, "w")
|
35
|
+
File.open(file, "w") do |f|
|
36
|
+
f.write "#{highest_build_number}\n"
|
37
|
+
UI.message "Wrote #{highest_build_number} to #{file}"
|
38
|
+
end
|
38
39
|
end
|
39
40
|
|
40
|
-
UI.
|
41
|
+
UI.success "Highest build number: #{highest_build_number}"
|
41
42
|
|
42
43
|
if highest_build_number.is_a? Integer
|
43
44
|
new_highest_build_number = highest_build_number + 1
|
44
|
-
UI.
|
45
|
+
UI.success "New build number: #{new_highest_build_number}"
|
45
46
|
return new_highest_build_number
|
46
47
|
else
|
47
48
|
UI.error "Highest build number is not an Integer"
|
@@ -6,12 +6,6 @@ module Fastlane
|
|
6
6
|
|
7
7
|
module Helper
|
8
8
|
class GetNewBuildNumberHelper
|
9
|
-
# class methods that you define here become available in your action
|
10
|
-
# as `Helper::GetNewBuildNumberHelper.your_method`
|
11
|
-
#
|
12
|
-
def self.show_message
|
13
|
-
UI.message("Hello from the get_new_build_number plugin helper!")
|
14
|
-
end
|
15
9
|
|
16
10
|
def self.get_highest_build_number(
|
17
11
|
bundle_identifier:nil,
|
@@ -33,8 +27,9 @@ module Fastlane
|
|
33
27
|
|
34
28
|
app_store_build_number = 0
|
35
29
|
unless bundle_identifier.nil?
|
36
|
-
app_store_build_number = Fastlane::Actions::
|
30
|
+
app_store_build_number = Fastlane::Actions::AppStoreBuildNumberAction.run(
|
37
31
|
app_identifier: bundle_identifier,
|
32
|
+
platform: "IOS",
|
38
33
|
)
|
39
34
|
|
40
35
|
UI.message "build number (App Store): #{app_store_build_number}"
|
@@ -104,7 +99,7 @@ module Fastlane
|
|
104
99
|
# Returns highest build number for the given track.
|
105
100
|
def self.get_version_code(track:, package_name:, json_key:)
|
106
101
|
begin
|
107
|
-
codes =
|
102
|
+
codes = Fastlane::Actions::GooglePlayTrackVersionCodesAction.run(
|
108
103
|
track: track,
|
109
104
|
package_name: package_name,
|
110
105
|
json_key: json_key,
|
@@ -112,7 +107,7 @@ module Fastlane
|
|
112
107
|
|
113
108
|
return codes.max
|
114
109
|
rescue
|
115
|
-
UI.
|
110
|
+
UI.message "Version code not found for track #{track}"
|
116
111
|
return 0
|
117
112
|
end
|
118
113
|
end
|
metadata
CHANGED
@@ -1,11 +1,11 @@
|
|
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.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bartek Pacia
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2022-05-29 00:00:00.000000000 Z
|
@@ -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: []
|
@@ -180,7 +180,7 @@ homepage: https://github.com/bartekpacia/fastlane-plugin-get_new_build_number
|
|
180
180
|
licenses:
|
181
181
|
- MIT
|
182
182
|
metadata: {}
|
183
|
-
post_install_message:
|
183
|
+
post_install_message:
|
184
184
|
rdoc_options: []
|
185
185
|
require_paths:
|
186
186
|
- lib
|
@@ -196,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
196
196
|
version: '0'
|
197
197
|
requirements: []
|
198
198
|
rubygems_version: 3.3.3
|
199
|
-
signing_key:
|
199
|
+
signing_key:
|
200
200
|
specification_version: 4
|
201
201
|
summary: Retrieves the new build number for your app.
|
202
202
|
test_files: []
|