Class: Fastlane::Helper::XcconfigHelper
- Inherits:
-
Object
- Object
- Fastlane::Helper::XcconfigHelper
- Defined in:
- lib/fastlane/plugin/xcconfig/helper/xcconfig_helper.rb
Constant Summary collapse
- NAME_VALUE_PATTERN =
/^\s*([_a-zA-Z]+[_a-zA-Z0-9]*(?:\[[^\]]*(?:=[^\]]*)?\])*)\s*=\s*(.*)/x
Class Method Summary collapse
Class Method Details
.parse_xcconfig_name_value_line(line) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fastlane/plugin/xcconfig/helper/xcconfig_helper.rb', line 11 def self.parse_xcconfig_name_value_line(line) # Strip comment and match match = line.partition('//').first.match(NAME_VALUE_PATTERN) if match key = match[1] value = match[2] [key.strip, value.strip] else [] end end |