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: 47cae4f71d72b6f6bb7116104b705543e356f83b21f0397fcc4411db1bf86551
4
- data.tar.gz: e67391cd08ac7b507931561ae2500901dd6f7d7e151f488960260011b33603f2
3
+ metadata.gz: 1744250f9238b86752f3d125ad67b77d62a35d0e416da171cc52c303c7bb83b1
4
+ data.tar.gz: 4abc691adbfa8e9dc6dbe6b66e7e28e19c360b45c4b8ad3d58a013c0fe0ee5a9
5
5
  SHA512:
6
- metadata.gz: 988bb441dafeab3da0cc7cecf1dd7839798443a8e30884dbb44cfb4138e592c9cdb225267e33563b4095f6dfa913e60dcb57ed85b91fce82d1989e5af092d691
7
- data.tar.gz: 337fee6448b94d0fd536f763cd63f9b50fd97b95ae6c7e0a1daba34ab7ad4783412cbd25163c1c46b7ae0601ffeb90dc5ba57331cb405b014b35d86d82a82bcd
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
- Fastlane::UI.message("Set `#{name}` to `#{value}`")
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
- Fastlane::UI.message("Updated `#{name}` to `#{value}`")
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
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Xcconfig
3
- VERSION = "2.0.0"
3
+ VERSION = "2.1.0"
4
4
  end
5
5
  end
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.0.0
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: 2019-05-17 00:00:00.000000000 Z
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.