fastlane-plugin-get_new_build_number 0.2.2 → 0.2.5

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: 67d1c54a512da268d76be07efd79c59d2f408fd5d819cc01e197502b266158bb
4
- data.tar.gz: 13b1dbab9cf2abb03640946e7844b2a6dada623c9ced316669ab398a0f838eb6
3
+ metadata.gz: 97cedbb3402e1f1e6f5ae410809064523c7d22685b06ec43a4ad9683ecec2b98
4
+ data.tar.gz: d56de07c38399788a42568c6d6000a0c7418e7f9bcabb59609fe186b623f2314
5
5
  SHA512:
6
- metadata.gz: 266b82fc7073c011d2c530cbcd2aae2426987d101e2139dc004ad369c8302a8857634870d96fcfaa5180f39b73d998b243cf76e0337df67a353a20fe4abdbdc6
7
- data.tar.gz: a0b2a74cdd03d216d26c4308ecbc44c685837b917f3336df036c52fee85c0862effc3da789950499d784eac5893e704494cfa85ce3334a665d1e8048669d2f56
6
+ metadata.gz: 0622de5b803f4d24e5388bd8f77cf2b42901e3dcccbb0e094541975e61796a1b30b28e650112cd50f8708ddfd26c793dba514b3adb376ce829dd03d31d34e8bf
7
+ data.tar.gz: 1f5c127d6e57871c3be3dac42863e4f3ef3da59e1f42965ab6078e619efec2069f65278695389d153e2ca404cb40a19bf519c890ab33fb8c02badb81499f72d5
@@ -94,6 +94,13 @@ module Fastlane
94
94
  optional: true,
95
95
  type: String
96
96
  ),
97
+ FastlaneCore::ConfigItem.new(
98
+ key: :app_store_initial_build_number,
99
+ env_name: "APP_STORE_INITIAL_BUILD_NUMBER",
100
+ description: "Build number to use if there's nothing in App Store",
101
+ optional: true,
102
+ type: String
103
+ ),
97
104
  FastlaneCore::ConfigItem.new(
98
105
  key: :firebase_json_key_path,
99
106
  env_name: "FIREBASE_JSON_KEY_PATH",
@@ -13,7 +13,7 @@ module Fastlane
13
13
  app_store_initial_build_number: nil,
14
14
  firebase_json_key_path: nil,
15
15
  firebase_app_ios: nil,
16
- firebase_app_android: nil,
16
+ firebase_app_android: nil
17
17
  )
18
18
  if bundle_identifier.nil? && package_name.nil?
19
19
  UI.error("Both bundle_identifier and package_name are nil")
@@ -29,7 +29,7 @@ module Fastlane
29
29
  unless bundle_identifier.nil?
30
30
  app_store_build_number = Fastlane::Actions::AppStoreBuildNumberAction.run(
31
31
  app_identifier: bundle_identifier,
32
- platform: "IOS"
32
+ platform: "IOS",
33
33
  initial_build_number: app_store_initial_build_number || 1
34
34
  )
35
35
 
@@ -38,25 +38,25 @@ module Fastlane
38
38
 
39
39
  google_play_build_number_prod = get_google_play_build_number(
40
40
  track: "production",
41
- package_name: package_name,
41
+ package_name:,
42
42
  json_key: google_play_json_key_path
43
43
  )
44
44
 
45
45
  google_play_build_number_beta = get_google_play_build_number(
46
46
  track: "beta",
47
- package_name: package_name,
47
+ package_name:,
48
48
  json_key: google_play_json_key_path
49
49
  )
50
50
 
51
51
  google_play_build_number_alpha = get_google_play_build_number(
52
52
  track: "alpha",
53
- package_name: package_name,
53
+ package_name:,
54
54
  json_key: google_play_json_key_path
55
55
  )
56
56
 
57
57
  google_play_build_number_internal = get_google_play_build_number(
58
58
  track: "internal",
59
- package_name: package_name,
59
+ package_name:,
60
60
  json_key: google_play_json_key_path
61
61
  )
62
62
 
@@ -101,9 +101,9 @@ module Fastlane
101
101
  # for the given Google Play track.
102
102
  def self.get_google_play_build_number(track:, package_name:, json_key:)
103
103
  codes = Fastlane::Actions::GooglePlayTrackVersionCodesAction.run(
104
- track: track,
105
- package_name: package_name,
106
- json_key: json_key
104
+ track:,
105
+ package_name:,
106
+ json_key:
107
107
  )
108
108
 
109
109
  return codes.max
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module GetNewBuildNumber
3
- VERSION = "0.2.2"
3
+ VERSION = "0.2.5"
4
4
  end
5
5
  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.2
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bartek Pacia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-26 00:00:00.000000000 Z
11
+ date: 2022-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler