fastlane-plugin-yalantis_ci 0.3.6 → 0.3.7
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: 7e71d3349153fab7a0926badc9f412249eb35729c33723998bd5baf497a41617
|
4
|
+
data.tar.gz: c951e30ec230b768c904b36d259b644560b33bace96130b5a1c2f565eb564ee7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72dbadc3a903735a0cb6b0913f84e7af2700af3cc51d1f86bd451c61dee98383687194be17444ac7e8e366c6fa663150b846d78b5d47130d3dccf6824f6f9499
|
7
|
+
data.tar.gz: c13a7b734b8f48363d0d516357f85fa84b2687e1ee640d1c881d4fae520914e044930c2e64cca6d7be32a2aa2e872ccfa1e432c790a897a188befe46b7f830bf
|
@@ -4,17 +4,14 @@ module Fastlane
|
|
4
4
|
module Actions
|
5
5
|
class BuildNumberSetToXcconfigAction < Action
|
6
6
|
def self.run(options)
|
7
|
-
build_number = options[:build_number]
|
7
|
+
build_number = options[:build_number] || Actions.lane_context[SharedValues::BUILD_NUMBER]
|
8
8
|
path = options[:xcconfig_path]
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
file.truncate(0)
|
16
|
-
file.write(contents)
|
17
|
-
end
|
10
|
+
if build_number.nil?
|
11
|
+
UI.error("build_number can't be nil")
|
12
|
+
else
|
13
|
+
contents = File.readlines(path).join.gsub!(/(?<=\bCURRENT_PROJECT_VERSION\s=\s)([\d]+)/, build_number.to_s)
|
14
|
+
File.write(path, contents) unless contents.nil?
|
18
15
|
end
|
19
16
|
end
|
20
17
|
|
@@ -28,6 +25,7 @@ module Fastlane
|
|
28
25
|
key: :build_number,
|
29
26
|
env_name: "BUILD_NUMBER",
|
30
27
|
description: "Build number to be set to the .xcconfig",
|
28
|
+
optional: true,
|
31
29
|
type: Integer
|
32
30
|
),
|
33
31
|
FastlaneCore::ConfigItem.new(
|
@@ -13,10 +13,8 @@ module Fastlane
|
|
13
13
|
payload_filepath: options[:git_filepath],
|
14
14
|
mutation_callback: options[:mutation_callback]
|
15
15
|
)
|
16
|
-
unless build_number.nil?
|
17
|
-
|
18
|
-
Actions.lane_context[SharedValues::BUILD_NUMBER] = build_number
|
19
|
-
end
|
16
|
+
Actions.lane_context[SharedValues::BUILD_NUMBER] = build_number unless build_number.nil?
|
17
|
+
return build_number
|
20
18
|
end
|
21
19
|
|
22
20
|
def self.read_from_remote(git_repo_url:, git_repo_branch:, payload_filepath:, mutation_callback: nil)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-yalantis_ci
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dima Vorona
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fastlane-plugin-firebase_app_distribution
|