@@ -39,6 +39,31 @@ _flutter_framework_headers = [
3939
4040_flutter_framework_headers_copy_dir = " $_flutter_framework_dir /Headers"
4141
42+ source_set (" flutter_framework_source_arc" ) {
43+ visibility = [ " :*" ]
44+ cflags_objc = flutter_cflags_objc_arc
45+ cflags_objcc = flutter_cflags_objcc_arc
46+
47+ defines = [ " FLUTTER_FRAMEWORK=1" ]
48+ allow_circular_includes_from = [ " :flutter_framework_source" ]
49+ deps = [
50+ " :flutter_framework_source" ,
51+ " //flutter/fml" ,
52+ " //flutter/shell/platform/common:common_cpp_input" ,
53+ " //flutter/shell/platform/darwin/common:framework_shared" ,
54+ " //third_party/icu" ,
55+ ]
56+ public_configs = [ " //flutter:config" ]
57+
58+ sources = [
59+ " framework/Source/FlutterTextInputDelegate.h" ,
60+ " framework/Source/FlutterTextInputPlugin.h" ,
61+ " framework/Source/FlutterTextInputPlugin.mm" ,
62+ ]
63+
64+ frameworks = [ " UIKit.framework" ]
65+ }
66+
4267source_set (" flutter_framework_source" ) {
4368 visibility = [ " :*" ]
4469 cflags_objc = flutter_cflags_objc
@@ -81,9 +106,6 @@ source_set("flutter_framework_source") {
81106 " framework/Source/FlutterSemanticsScrollView.mm" ,
82107 " framework/Source/FlutterSpellCheckPlugin.h" ,
83108 " framework/Source/FlutterSpellCheckPlugin.mm" ,
84- " framework/Source/FlutterTextInputDelegate.h" ,
85- " framework/Source/FlutterTextInputPlugin.h" ,
86- " framework/Source/FlutterTextInputPlugin.mm" ,
87109 " framework/Source/FlutterUIPressProxy.h" ,
88110 " framework/Source/FlutterUIPressProxy.mm" ,
89111 " framework/Source/FlutterUndoManagerDelegate.h" ,
@@ -209,6 +231,7 @@ source_set("ios_test_flutter_mrc") {
209231 ]
210232 deps = [
211233 " :flutter_framework_source" ,
234+ " :flutter_framework_source_arc" ,
212235 " //flutter/common:common" ,
213236 " //flutter/lib/ui:ui" ,
214237 " //flutter/shell/common:common" ,
@@ -267,6 +290,7 @@ shared_library("ios_test_flutter") {
267290 deps = [
268291 " :flutter_framework" ,
269292 " :flutter_framework_source" ,
293+ " :flutter_framework_source_arc" ,
270294 " :ios_gpu_configuration" ,
271295 " :ios_test_flutter_mrc" ,
272296 " //flutter/common:common" ,
@@ -295,7 +319,10 @@ shared_library("create_flutter_framework_dylib") {
295319
296320 public = _flutter_framework_headers
297321
298- deps = [ " :flutter_framework_source" ]
322+ deps = [
323+ " :flutter_framework_source" ,
324+ " :flutter_framework_source_arc" ,
325+ ]
299326
300327 public_configs = [ " //flutter:config" ]
301328}
0 commit comments