fastlane-plugin-get_new_build_number 0.2.4 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17c1a7c7e7633d72685b94f7cf76765071e2bf189175e7943918f82f6cae2887
|
4
|
+
data.tar.gz: 189a9a5a9bb06a715da3cb4af8338e05b8986963970cfffc79076923afcb3eda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6206ac185ba551ebc0c7a01b795a25d9705b1c25aaa9aa42bfa33a89a3e6c0130a03791dac872334387ff732035ef6656fcd42046cba37041c3bbaf9956f802f
|
7
|
+
data.tar.gz: 115598f44247ef3bf2011a140a73e97a44af43c0362aa0ea6a8375d4d2e208ee1d07d996436aeb52fc0f29e60df2695b86ad4a4fec357e0693dcd81a9ae40592
|
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'fastlane/action'
|
2
|
+
|
3
|
+
module Fastlane
|
4
|
+
module Actions
|
5
|
+
class GetNewBuildNameAction < Action
|
6
|
+
def self.run(params)
|
7
|
+
build_name = sh("git describe --tags --abbrev=0 | cut -c 2-").strip
|
8
|
+
UI.success("New build name: #{build_name}")
|
9
|
+
return build_name
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.description
|
13
|
+
"Retrieves the new build number for your app."
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.authors
|
17
|
+
["Bartek Pacia"]
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.return_value
|
21
|
+
"A string representing a new build name. It's the latest git tag with the first " \
|
22
|
+
"character stripped (so v4.2.0 becomes 4.2.0)"
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -97,9 +97,9 @@ module Fastlane
|
|
97
97
|
FastlaneCore::ConfigItem.new(
|
98
98
|
key: :app_store_initial_build_number,
|
99
99
|
env_name: "APP_STORE_INITIAL_BUILD_NUMBER",
|
100
|
-
description: "Build number to use if there's nothing in App Store
|
100
|
+
description: "Build number to use if there's nothing in App Store",
|
101
101
|
optional: true,
|
102
|
-
type: String
|
102
|
+
type: String
|
103
103
|
),
|
104
104
|
FastlaneCore::ConfigItem.new(
|
105
105
|
key: :firebase_json_key_path,
|
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.7
|
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-
|
11
|
+
date: 2022-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -173,6 +173,7 @@ files:
|
|
173
173
|
- LICENSE
|
174
174
|
- README.md
|
175
175
|
- lib/fastlane/plugin/get_new_build_number.rb
|
176
|
+
- lib/fastlane/plugin/get_new_build_number/actions/get_new_build_name_action.rb
|
176
177
|
- lib/fastlane/plugin/get_new_build_number/actions/get_new_build_number_action.rb
|
177
178
|
- lib/fastlane/plugin/get_new_build_number/helper/get_new_build_number_helper.rb
|
178
179
|
- lib/fastlane/plugin/get_new_build_number/version.rb
|