Fix macOS build for Flutter plugins (#13814)

This commit is contained in:
Ali Bitek
2018-01-04 20:28:02 +02:00
committed by xster
parent 50a5e98322
commit 7504ac9a04
2 changed files with 4 additions and 1 deletions

View File

@@ -7,7 +7,9 @@ def parse_KV_file(file,seperator='=')
return [];
end
pods_ary = []
skip_line_start_symbols = ["#", "/"]
File.foreach(file_abs_path) { |line|
next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
plugin = line.split(pattern=seperator)
if plugin.length == 2
podname = plugin[0].strip()
@@ -22,7 +24,6 @@ def parse_KV_file(file,seperator='=')
end
target 'Runner' do
use_frameworks!
# Flutter Pods
generated_xcode_build_settings = parse_KV_file("./Flutter/Generated.xcconfig")
if generated_xcode_build_settings.empty?

View File

@@ -7,7 +7,9 @@ def parse_KV_file(file,seperator='=')
return [];
end
pods_ary = []
skip_line_start_symbols = ["#", "/"]
File.foreach(file_abs_path) { |line|
next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
plugin = line.split(pattern=seperator)
if plugin.length == 2
podname = plugin[0].strip()