fastlane-plugin-xcconfig 2.0.0 → 2.1.0
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: 1744250f9238b86752f3d125ad67b77d62a35d0e416da171cc52c303c7bb83b1
|
4
|
+
data.tar.gz: 4abc691adbfa8e9dc6dbe6b66e7e28e19c360b45c4b8ad3d58a013c0fe0ee5a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db890577830b765b3707141bf2dc55d75b8ec12cd30fe6d9c69e416cfef70054b7bea4d314f0d64423119a7bf855f9e21fb6a9a5f2ace3b885915c311798e2bb
|
7
|
+
data.tar.gz: 92958255e587fd80d6baaae501f1a83d4c6424c778d292634b5a8a98383749319eb68ad5b54173e9d9deda6bb9b9173146fbef2f68343195cccfba16c9b0fdf5
|
data/README.md
CHANGED
@@ -33,6 +33,15 @@ lane :test do
|
|
33
33
|
value: 'Updated App'
|
34
34
|
)
|
35
35
|
|
36
|
+
# Updates the value and hides it from being printed to the UI.
|
37
|
+
# Used to hide sensitive data from being displayed in logs.
|
38
|
+
update_xcconfig_value(
|
39
|
+
path: 'fastlane/Test.xcconfig',
|
40
|
+
name: 'PRODUCT_NAME',
|
41
|
+
value: 'Updated App Hidden',
|
42
|
+
mask_value: true
|
43
|
+
)
|
44
|
+
|
36
45
|
# Sets PRODUCT_BUNDLE_IDENTIFIER value to 'com.sovcharenko.App-beta' in Configs/Release.xcconfig
|
37
46
|
# PRODUCT_BUNDLE_IDENTIFIER will be added if it doesn't exist
|
38
47
|
set_xcconfig_value(
|
@@ -41,6 +50,15 @@ lane :test do
|
|
41
50
|
value: 'com.sovcharenko.App-beta'
|
42
51
|
)
|
43
52
|
|
53
|
+
# Sets the value and hides it from printed to the UI.
|
54
|
+
# Used to hide sensitive data from being displayed in logs.
|
55
|
+
set_xcconfig_value(
|
56
|
+
path: 'fastlane/Configs/Release.xcconfig',
|
57
|
+
name: 'PRODUCT_BUNDLE_IDENTIFIER',
|
58
|
+
value: 'com.sovcharenko.App-beta',
|
59
|
+
mask_value: true
|
60
|
+
)
|
61
|
+
|
44
62
|
end
|
45
63
|
|
46
64
|
```
|
@@ -34,7 +34,11 @@ module Fastlane
|
|
34
34
|
file.write(name + ' = ' + value) unless updated
|
35
35
|
end
|
36
36
|
|
37
|
-
|
37
|
+
if params[:mask_value]
|
38
|
+
Fastlane::UI.message("Set `#{name}` to `****`")
|
39
|
+
else
|
40
|
+
Fastlane::UI.message("Set `#{name}` to `#{value}`")
|
41
|
+
end
|
38
42
|
|
39
43
|
FileUtils.cp(tmp_file, path)
|
40
44
|
ensure
|
@@ -78,7 +82,13 @@ module Fastlane
|
|
78
82
|
optional: false,
|
79
83
|
verify_block: proc do |value|
|
80
84
|
UI.user_error!("Couldn't find xcconfig file at path '#{value}'") unless File.exist?(File.expand_path(value))
|
81
|
-
end)
|
85
|
+
end),
|
86
|
+
FastlaneCore::ConfigItem.new(key: :mask_value,
|
87
|
+
env_name: "XCCP_SET_VALUE_PARAM_MASK_VALUE",
|
88
|
+
description: "Masks the value from being printed to the console",
|
89
|
+
optional: true,
|
90
|
+
is_string: false,
|
91
|
+
default_value: false)
|
82
92
|
]
|
83
93
|
end
|
84
94
|
|
@@ -34,7 +34,11 @@ module Fastlane
|
|
34
34
|
end
|
35
35
|
|
36
36
|
Fastlane::UI.user_error!("Couldn't find '#{name}' in #{path}.") unless updated
|
37
|
-
|
37
|
+
if params[:mask_value]
|
38
|
+
Fastlane::UI.message("Updated `#{name}` to `****`")
|
39
|
+
else
|
40
|
+
Fastlane::UI.message("Updated `#{name}` to `#{value}`")
|
41
|
+
end
|
38
42
|
|
39
43
|
FileUtils.cp(tmp_file, path)
|
40
44
|
ensure
|
@@ -78,7 +82,13 @@ module Fastlane
|
|
78
82
|
optional: false,
|
79
83
|
verify_block: proc do |value|
|
80
84
|
UI.user_error!("Couldn't find xcconfig file at path '#{value}'") unless File.exist?(File.expand_path(value))
|
81
|
-
end)
|
85
|
+
end),
|
86
|
+
FastlaneCore::ConfigItem.new(key: :mask_value,
|
87
|
+
env_name: "XCCP_UPDATE_VALUE_PARAM_MASK_VALUE",
|
88
|
+
description: "Masks the value from being printed to the console",
|
89
|
+
optional: true,
|
90
|
+
is_string: false,
|
91
|
+
default_value: false)
|
82
92
|
]
|
83
93
|
end
|
84
94
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-xcconfig
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergii Ovcharenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -169,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
169
169
|
- !ruby/object:Gem::Version
|
170
170
|
version: '0'
|
171
171
|
requirements: []
|
172
|
-
rubygems_version: 3.0.3
|
172
|
+
rubygems_version: 3.0.3.1
|
173
173
|
signing_key:
|
174
174
|
specification_version: 4
|
175
175
|
summary: Adds 2 actions to fastlane to read and update xcconfig files.
|