class Fastlane::Helper::XcconfigHelper

Constants

NAME_VALUE_PATTERN

pewpewthespells.com/blog/xcconfig_guide.html

Public Class Methods

parse_xcconfig_name_value_line(line) click to toggle source
# 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