Skip to content

Commit a2ac734

Browse files
authored
iOS: Migrate FlutterEngine to ARC (flutter/engine#55590)
Migrates `FlutterEnging` from manual reference counting to ARC. Migrates properties from `retain` to strong and `assign` to `weak` (where referencing an Obj-C object). No semantic changes, therefore no changes to tests. Issue: flutter#137801 [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
1 parent e1a8f27 commit a2ac734

File tree

5 files changed

+269
-377
lines changed

5 files changed

+269
-377
lines changed

engine/src/flutter/shell/platform/darwin/ios/BUILD.gn

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ source_set("flutter_framework_source_arc") {
7070
"framework/Source/FlutterDartVMServicePublisher.mm",
7171
"framework/Source/FlutterEmbedderKeyResponder.h",
7272
"framework/Source/FlutterEmbedderKeyResponder.mm",
73+
"framework/Source/FlutterEngine.mm",
7374
"framework/Source/FlutterEngineGroup.mm",
75+
"framework/Source/FlutterEngine_Internal.h",
7476
"framework/Source/FlutterHeadlessDartRunner.mm",
7577
"framework/Source/FlutterKeyPrimaryResponder.h",
7678
"framework/Source/FlutterKeySecondaryResponder.h",
@@ -186,8 +188,6 @@ source_set("flutter_framework_source") {
186188
# iOS embedder is migrating to ARC.
187189
# New files are highly encouraged to be in ARC.
188190
# To add new files in ARC, add them to the `flutter_framework_source_arc` target.
189-
"framework/Source/FlutterEngine.mm",
190-
"framework/Source/FlutterEngine_Internal.h",
191191
"framework/Source/FlutterViewController.mm",
192192
"framework/Source/FlutterViewController_Internal.h",
193193
"platform_view_ios.h",

0 commit comments

Comments
 (0)