fastlane-plugin-get_new_build_number 0.2.3 → 0.2.6
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: f95b4015bb184f1d1fd21ef8e75ef0f05249c0aa1ae4a80b2854cd2d1bcd9615
|
4
|
+
data.tar.gz: 85ba562e7a932c84c142c2d9a36bd364c1b7d630d441b9fc22c04f466cd9fcdf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f67caf04a5cf801b014b4033508507f8ba42856f51087f0deee91d47d741e91307206bba27ee05ddf2b3118a1212fb081f500dfd691a5b3f874c625cdd58b6fe
|
7
|
+
data.tar.gz: af23163af0b07a37a4f92cfe96acf89157c6ab5a7586f31e5c82ab41d6569b820f3bab2e0890a972e267ba69176feebadb3ae359ba66f4302864792594f2601f
|
@@ -0,0 +1,43 @@
|
|
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
|
+
|
25
|
+
# def self.details
|
26
|
+
# # Optional:
|
27
|
+
# ""
|
28
|
+
# end
|
29
|
+
|
30
|
+
def self.available_options
|
31
|
+
[]
|
32
|
+
end
|
33
|
+
|
34
|
+
# def self.is_supported?(platform)
|
35
|
+
# # Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example)
|
36
|
+
# # See: https://docs.fastlane.tools/advanced/#control-configuration-by-lane-and-by-platform
|
37
|
+
# #
|
38
|
+
# # [:ios, :mac, :android].include?(platform)
|
39
|
+
# true
|
40
|
+
# end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -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",
|
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.6
|
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
|