From f43482786edafc48ee90bea607704c4a0c8cb96f Mon Sep 17 00:00:00 2001 From: Loic Sharma Date: Tue, 16 Apr 2024 15:07:25 -0700 Subject: [PATCH] Migrate existing macOS projects --- dev/a11y_assessments/macos/Runner/AppDelegate.swift | 2 +- dev/benchmarks/complex_layout/macos/Runner/AppDelegate.swift | 2 +- dev/benchmarks/macrobenchmarks/macos/Runner/AppDelegate.swift | 2 +- dev/integration_tests/channels/macos/Runner/AppDelegate.swift | 2 +- dev/integration_tests/flavors/macos/Runner/AppDelegate.swift | 2 +- .../flutter_gallery/macos/Runner/AppDelegate.swift | 2 +- dev/integration_tests/ui/macos/Runner/AppDelegate.swift | 2 +- dev/manual_tests/macos/Runner/AppDelegate.swift | 2 +- examples/api/macos/Runner/AppDelegate.swift | 2 +- examples/flutter_view/macos/Runner/AppDelegate.swift | 2 +- examples/hello_world/macos/Runner/AppDelegate.swift | 2 +- examples/image_list/macos/Runner/AppDelegate.swift | 2 +- examples/layers/macos/Runner/AppDelegate.swift | 2 +- examples/platform_channel/macos/Runner/AppDelegate.swift | 2 +- examples/platform_view/macos/Runner/AppDelegate.swift | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/dev/a11y_assessments/macos/Runner/AppDelegate.swift b/dev/a11y_assessments/macos/Runner/AppDelegate.swift index d080d41951d3..73cc5fd1077c 100644 --- a/dev/a11y_assessments/macos/Runner/AppDelegate.swift +++ b/dev/a11y_assessments/macos/Runner/AppDelegate.swift @@ -5,7 +5,7 @@ import Cocoa import FlutterMacOS -@NSApplicationMain +@main class AppDelegate: FlutterAppDelegate { override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { return true diff --git a/dev/benchmarks/complex_layout/macos/Runner/AppDelegate.swift b/dev/benchmarks/complex_layout/macos/Runner/AppDelegate.swift index d080d41951d3..73cc5fd1077c 100644 --- a/dev/benchmarks/complex_layout/macos/Runner/AppDelegate.swift +++ b/dev/benchmarks/complex_layout/macos/Runner/AppDelegate.swift @@ -5,7 +5,7 @@ import Cocoa import FlutterMacOS -@NSApplicationMain +@main class AppDelegate: FlutterAppDelegate { override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { return true diff --git a/dev/benchmarks/macrobenchmarks/macos/Runner/AppDelegate.swift b/dev/benchmarks/macrobenchmarks/macos/Runner/AppDelegate.swift index d080d41951d3..73cc5fd1077c 100644 --- a/dev/benchmarks/macrobenchmarks/macos/Runner/AppDelegate.swift +++ b/dev/benchmarks/macrobenchmarks/macos/Runner/AppDelegate.swift @@ -5,7 +5,7 @@ import Cocoa import FlutterMacOS -@NSApplicationMain +@main class AppDelegate: FlutterAppDelegate { override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { return true diff --git a/dev/integration_tests/channels/macos/Runner/AppDelegate.swift b/dev/integration_tests/channels/macos/Runner/AppDelegate.swift index d080d41951d3..73cc5fd1077c 100644 --- a/dev/integration_tests/channels/macos/Runner/AppDelegate.swift +++ b/dev/integration_tests/channels/macos/Runner/AppDelegate.swift @@ -5,7 +5,7 @@ import Cocoa import FlutterMacOS -@NSApplicationMain +@main class AppDelegate: FlutterAppDelegate { override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { return true diff --git a/dev/integration_tests/flavors/macos/Runner/AppDelegate.swift b/dev/integration_tests/flavors/macos/Runner/AppDelegate.swift index d080d41951d3..73cc5fd1077c 100644 --- a/dev/integration_tests/flavors/macos/Runner/AppDelegate.swift +++ b/dev/integration_tests/flavors/macos/Runner/AppDelegate.swift @@ -5,7 +5,7 @@ import Cocoa import FlutterMacOS -@NSApplicationMain +@main class AppDelegate: FlutterAppDelegate { override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { return true diff --git a/dev/integration_tests/flutter_gallery/macos/Runner/AppDelegate.swift b/dev/integration_tests/flutter_gallery/macos/Runner/AppDelegate.swift index d080d41951d3..73cc5fd1077c 100644 --- a/dev/integration_tests/flutter_gallery/macos/Runner/AppDelegate.swift +++ b/dev/integration_tests/flutter_gallery/macos/Runner/AppDelegate.swift @@ -5,7 +5,7 @@ import Cocoa import FlutterMacOS -@NSApplicationMain +@main class AppDelegate: FlutterAppDelegate { override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { return true diff --git a/dev/integration_tests/ui/macos/Runner/AppDelegate.swift b/dev/integration_tests/ui/macos/Runner/AppDelegate.swift index d080d41951d3..73cc5fd1077c 100644 --- a/dev/integration_tests/ui/macos/Runner/AppDelegate.swift +++ b/dev/integration_tests/ui/macos/Runner/AppDelegate.swift @@ -5,7 +5,7 @@ import Cocoa import FlutterMacOS -@NSApplicationMain +@main class AppDelegate: FlutterAppDelegate { override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { return true diff --git a/dev/manual_tests/macos/Runner/AppDelegate.swift b/dev/manual_tests/macos/Runner/AppDelegate.swift index d080d41951d3..73cc5fd1077c 100644 --- a/dev/manual_tests/macos/Runner/AppDelegate.swift +++ b/dev/manual_tests/macos/Runner/AppDelegate.swift @@ -5,7 +5,7 @@ import Cocoa import FlutterMacOS -@NSApplicationMain +@main class AppDelegate: FlutterAppDelegate { override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { return true diff --git a/examples/api/macos/Runner/AppDelegate.swift b/examples/api/macos/Runner/AppDelegate.swift index d080d41951d3..73cc5fd1077c 100644 --- a/examples/api/macos/Runner/AppDelegate.swift +++ b/examples/api/macos/Runner/AppDelegate.swift @@ -5,7 +5,7 @@ import Cocoa import FlutterMacOS -@NSApplicationMain +@main class AppDelegate: FlutterAppDelegate { override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { return true diff --git a/examples/flutter_view/macos/Runner/AppDelegate.swift b/examples/flutter_view/macos/Runner/AppDelegate.swift index d080d41951d3..73cc5fd1077c 100644 --- a/examples/flutter_view/macos/Runner/AppDelegate.swift +++ b/examples/flutter_view/macos/Runner/AppDelegate.swift @@ -5,7 +5,7 @@ import Cocoa import FlutterMacOS -@NSApplicationMain +@main class AppDelegate: FlutterAppDelegate { override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { return true diff --git a/examples/hello_world/macos/Runner/AppDelegate.swift b/examples/hello_world/macos/Runner/AppDelegate.swift index d080d41951d3..73cc5fd1077c 100644 --- a/examples/hello_world/macos/Runner/AppDelegate.swift +++ b/examples/hello_world/macos/Runner/AppDelegate.swift @@ -5,7 +5,7 @@ import Cocoa import FlutterMacOS -@NSApplicationMain +@main class AppDelegate: FlutterAppDelegate { override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { return true diff --git a/examples/image_list/macos/Runner/AppDelegate.swift b/examples/image_list/macos/Runner/AppDelegate.swift index d080d41951d3..73cc5fd1077c 100644 --- a/examples/image_list/macos/Runner/AppDelegate.swift +++ b/examples/image_list/macos/Runner/AppDelegate.swift @@ -5,7 +5,7 @@ import Cocoa import FlutterMacOS -@NSApplicationMain +@main class AppDelegate: FlutterAppDelegate { override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { return true diff --git a/examples/layers/macos/Runner/AppDelegate.swift b/examples/layers/macos/Runner/AppDelegate.swift index d080d41951d3..73cc5fd1077c 100644 --- a/examples/layers/macos/Runner/AppDelegate.swift +++ b/examples/layers/macos/Runner/AppDelegate.swift @@ -5,7 +5,7 @@ import Cocoa import FlutterMacOS -@NSApplicationMain +@main class AppDelegate: FlutterAppDelegate { override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { return true diff --git a/examples/platform_channel/macos/Runner/AppDelegate.swift b/examples/platform_channel/macos/Runner/AppDelegate.swift index d080d41951d3..73cc5fd1077c 100644 --- a/examples/platform_channel/macos/Runner/AppDelegate.swift +++ b/examples/platform_channel/macos/Runner/AppDelegate.swift @@ -5,7 +5,7 @@ import Cocoa import FlutterMacOS -@NSApplicationMain +@main class AppDelegate: FlutterAppDelegate { override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { return true diff --git a/examples/platform_view/macos/Runner/AppDelegate.swift b/examples/platform_view/macos/Runner/AppDelegate.swift index d080d41951d3..73cc5fd1077c 100644 --- a/examples/platform_view/macos/Runner/AppDelegate.swift +++ b/examples/platform_view/macos/Runner/AppDelegate.swift @@ -5,7 +5,7 @@ import Cocoa import FlutterMacOS -@NSApplicationMain +@main class AppDelegate: FlutterAppDelegate { override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { return true