Commit 7504ac9a authored by Ali Bitek's avatar Ali Bitek Committed by xster

Fix macOS build for Flutter plugins (#13814)

parent 50a5e983
......@@ -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?
......
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment