fastlane-plugin-increment_build_number 0.0.1 → 0.0.2
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: af0b9ad87c01d1b3f674890d3be0e2c06da3f18d3fdb4149540149517d111e8e
|
4
|
+
data.tar.gz: 9cd662317f181b278cc9cb820031de67079638e442f1ce9c832e1aecd1c269c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87444d4179940a53f8e1291072892ae9ace086a4dadd3ce6ca5d7e70b1260e645e6d6305290be1b8da4c127695aa091909d3f4512e94950672d4d84fb6de3eec
|
7
|
+
data.tar.gz: 87f8f09ffc3c69f74ddbefc5d4f3a239b872562df991dd3427def92b232fb2ebbf005f98444878e36e491c57f9ed896b94b0fc7da550ca2ca7fcbb1c56aa1b1f
|
@@ -5,13 +5,13 @@ module Fastlane
|
|
5
5
|
module Actions
|
6
6
|
class IncrementBundleVersionAction < Action
|
7
7
|
def self.run(params)
|
8
|
-
ver_code = Fastlane::Actions::GetInfoPlistValueAction.run(path: params[:
|
8
|
+
ver_code = Fastlane::Actions::GetInfoPlistValueAction.run(path: params[:info_plist], key: "CFBundleVersion")
|
9
9
|
new_ver = self.number?(ver_code).nil? ? nil : ver_code.to_i + 1
|
10
10
|
if new_ver.nil?
|
11
|
-
UI.user_error!("Failure - Increment bundle version #{params[:
|
11
|
+
UI.user_error!("Failure - Increment bundle version #{params[:info_plist]} from #{ver_code} to #{new_ver}.")
|
12
12
|
else
|
13
|
-
Fastlane::Actions::SetInfoPlistValueAction.run(path: params[:
|
14
|
-
UI.success("Success - Increment bundle version #{params[:
|
13
|
+
Fastlane::Actions::SetInfoPlistValueAction.run(path: params[:info_plist], key: "CFBundleVersion", value: new_ver.to_s)
|
14
|
+
UI.success("Success - Increment bundle version #{params[:info_plist]} from #{ver_code} to #{new_ver}!")
|
15
15
|
end
|
16
16
|
end
|
17
17
|
|