Unverified Commit b194f935 authored by Jenn Magder's avatar Jenn Magder Committed by GitHub

Remove use_modular_headers from Podfiles using libraries (#42872)

* Remove use_modular_headers from Podfiles using libraries

* Remove @imports
parent bc396d1b
...@@ -33,8 +33,6 @@ def parse_KV_file(file, separator='=') ...@@ -33,8 +33,6 @@ def parse_KV_file(file, separator='=')
end end
target 'Runner' do target 'Runner' do
use_modular_headers!
# Flutter Pod # Flutter Pod
copied_flutter_dir = File.join(__dir__, 'Flutter') copied_flutter_dir = File.join(__dir__, 'Flutter')
......
...@@ -5,7 +5,6 @@ flutter_application_path = 'flutterapp/' ...@@ -5,7 +5,6 @@ flutter_application_path = 'flutterapp/'
load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb') load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb')
target 'ios_add2app' do target 'ios_add2app' do
use_modular_headers!
install_all_flutter_pods(flutter_application_path) install_all_flutter_pods(flutter_application_path)
end end
......
#import "ViewController.h" #import "ViewController.h"
#import <Flutter/Flutter.h>
@import Flutter; #import <FlutterPluginRegistrant/GeneratedPluginRegistrant.h>
@import FlutterPluginRegistrant;
// Prove plugins can be module-imported from the host app.
@import device_info;
@import google_maps_flutter;
@implementation ViewController @implementation ViewController
......
...@@ -4,6 +4,5 @@ flutter_application_path = '../hello' ...@@ -4,6 +4,5 @@ flutter_application_path = '../hello'
load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb') load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb')
target 'Host' do target 'Host' do
use_modular_headers!
install_all_flutter_pods flutter_application_path install_all_flutter_pods flutter_application_path
end end
...@@ -4,6 +4,5 @@ flutter_application_path = '../hello' ...@@ -4,6 +4,5 @@ flutter_application_path = '../hello'
load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb') load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb')
target 'Host' do target 'Host' do
use_modular_headers!
install_all_flutter_pods flutter_application_path install_all_flutter_pods flutter_application_path
end end
...@@ -33,8 +33,6 @@ def parse_KV_file(file, separator='=') ...@@ -33,8 +33,6 @@ def parse_KV_file(file, separator='=')
end end
target 'Runner' do target 'Runner' do
use_modular_headers!
# Flutter Pod # Flutter Pod
copied_flutter_dir = File.join(__dir__, 'Flutter') copied_flutter_dir = File.join(__dir__, 'Flutter')
......
...@@ -33,8 +33,6 @@ def parse_KV_file(file, separator='=') ...@@ -33,8 +33,6 @@ def parse_KV_file(file, separator='=')
end end
target 'Runner' do target 'Runner' do
use_modular_headers!
# Flutter Pod # Flutter Pod
copied_flutter_dir = File.join(__dir__, 'Flutter') copied_flutter_dir = File.join(__dir__, 'Flutter')
......
...@@ -33,8 +33,6 @@ def parse_KV_file(file, separator='=') ...@@ -33,8 +33,6 @@ def parse_KV_file(file, separator='=')
end end
target 'Runner' do target 'Runner' do
use_modular_headers!
# Flutter Pod # Flutter Pod
copied_flutter_dir = File.join(__dir__, 'Flutter') copied_flutter_dir = File.join(__dir__, 'Flutter')
......
...@@ -33,8 +33,6 @@ def parse_KV_file(file, separator='=') ...@@ -33,8 +33,6 @@ def parse_KV_file(file, separator='=')
end end
target 'Runner' do target 'Runner' do
use_modular_headers!
# Flutter Pod # Flutter Pod
copied_flutter_dir = File.join(__dir__, 'Flutter') copied_flutter_dir = File.join(__dir__, 'Flutter')
......
...@@ -6,8 +6,6 @@ load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb') ...@@ -6,8 +6,6 @@ load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb')
use_frameworks! use_frameworks!
target 'Runner' do target 'Runner' do
use_modular_headers!
install_flutter_engine_pod install_flutter_engine_pod
install_flutter_plugin_pods flutter_application_path install_flutter_plugin_pods flutter_application_path
end end
......
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