Add comments to build badge description creation

This commit is contained in:
Vitaliy Salnikov 2020-06-05 14:14:25 +03:00
parent 2ff3fb763a
commit 4c3aea94a2
1 changed files with 4 additions and 4 deletions

View File

@ -87,10 +87,10 @@ end
private_lane :addShield do |options|
buildNumber = options[:buildNumber]
buildDescription = options[:xcconfig_name]
.split(/(?=[A-Z])/)
.map { |v| v.gsub(/[[:lower:]]+/, "") }[1..2]
.join
buildDescription = options[:xcconfig_name] # EnterpriseCustomerDev1WithoutSSLPinningRelease
.split(/(?=[A-Z])/) # -> ["Enterprise", "Customer", "Dev1", "Without", "S", "S", "L", "Pinning", "Release"]
.map { |v| v.gsub(/[[:lower:]]+/, "") }[1..2] # -> ["E", "C", "D1", "W", "S", "S", "L", "P", "R"] -> ["C", "D1"]
.join # -> "CD1"
begin
add_badge(