diff --git a/engine/src/flutter/shell/platform/darwin/macos/framework/Headers/FlutterDartProject.h b/engine/src/flutter/shell/platform/darwin/macos/framework/Headers/FlutterDartProject.h index e888273c88..4a83e4d3e6 100644 --- a/engine/src/flutter/shell/platform/darwin/macos/framework/Headers/FlutterDartProject.h +++ b/engine/src/flutter/shell/platform/darwin/macos/framework/Headers/FlutterDartProject.h @@ -44,7 +44,7 @@ FLUTTER_DARWIN_EXPORT * * Set this to nil to pass no arguments to the Dart entrypoint. */ -@property(nonatomic, nullable, strong) NSArray* dartEntrypointArguments; +@property(nonatomic, nullable, copy) NSArray* dartEntrypointArguments; @end diff --git a/engine/src/flutter/shell/platform/darwin/macos/framework/Headers/FlutterViewController.h b/engine/src/flutter/shell/platform/darwin/macos/framework/Headers/FlutterViewController.h index 53e26fbad4..4dea666e12 100644 --- a/engine/src/flutter/shell/platform/darwin/macos/framework/Headers/FlutterViewController.h +++ b/engine/src/flutter/shell/platform/darwin/macos/framework/Headers/FlutterViewController.h @@ -115,6 +115,6 @@ FLUTTER_DARWIN_EXPORT * } * ``` */ -@property(readwrite, nonatomic, nullable) NSColor* backgroundColor; +@property(readwrite, nonatomic, nullable, copy) NSColor* backgroundColor; @end diff --git a/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterEmbedderKeyResponder.mm b/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterEmbedderKeyResponder.mm index 1da401c5e7..5854bb02f3 100644 --- a/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterEmbedderKeyResponder.mm +++ b/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterEmbedderKeyResponder.mm @@ -285,7 +285,7 @@ struct FlutterKeyPendingResponse { * Only set in debug mode. Nil in release mode, or if the callback has not been * handled. */ -@property(nonatomic) NSString* debugHandleSource; +@property(nonatomic, copy) NSString* debugHandleSource; @end @implementation FlutterKeyCallbackGuard { diff --git a/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterKeyPrimaryResponder.h b/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterKeyPrimaryResponder.h index 8fa599f14e..b61c790028 100644 --- a/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterKeyPrimaryResponder.h +++ b/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterKeyPrimaryResponder.h @@ -31,6 +31,6 @@ typedef void (^FlutterAsyncKeyCallback)(BOOL handled); * deriving logical keys. */ @required -@property(nonatomic) NSMutableDictionary* _Nullable layoutMap; +@property(nonatomic, nullable, strong) NSMutableDictionary* layoutMap; @end diff --git a/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterKeyboardManagerTest.mm b/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterKeyboardManagerTest.mm index b5fe0e6562..d9b2ba994d 100644 --- a/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterKeyboardManagerTest.mm +++ b/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterKeyboardManagerTest.mm @@ -211,8 +211,8 @@ void clearEvents(std::vector& events) { - (void)recordCallTypesTo:(nonnull NSMutableArray*)typeStorage forTypes:(uint32_t)typeMask; -@property(nonatomic) FlutterKeyboardManager* manager; -@property(nonatomic) NSResponder* nextResponder; +@property(readonly, nonatomic, strong) FlutterKeyboardManager* manager; +@property(nonatomic, nullable, strong) NSResponder* nextResponder; #pragma mark - Private diff --git a/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterTextInputPluginTest.mm b/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterTextInputPluginTest.mm index 642757abdf..9f4a39d4b3 100644 --- a/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterTextInputPluginTest.mm +++ b/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterTextInputPluginTest.mm @@ -18,7 +18,7 @@ @interface FlutterTextFieldMock : FlutterTextField -@property(nonatomic) NSString* lastUpdatedString; +@property(nonatomic, nullable, copy) NSString* lastUpdatedString; @property(nonatomic) NSRange lastUpdatedSelection; @end