flutter/examples/api/macos/Runner
Loïc Sharma 86135b7774
[macOS] Migrate @NSApplicationMain attribute to @main (#146848)
This migrates Flutter to use the `@main` attribute introduced in Swift 5.3. The `@NSApplicationMain` attribute is deprecated and will be removed in Swift 6. See: https://github.com/apple/swift-evolution/blob/main/proposals/0383-deprecate-uiapplicationmain-and-nsapplicationmain.md

This change is split into two commits:

1. a508d3e503 - This updates the macOS app template and adds a migration to replace `@NSApplicationMain` uses with `@main`. 
2. f43482786e - I ran `flutter run -d macos` on each Flutter macOS app in this repository to verify the app migrates and launches successfully.

Follow-up to https://github.com/flutter/flutter/pull/146707
Fixes https://github.com/flutter/flutter/issues/143044
2024-04-18 03:08:36 +00:00
..
Assets.xcassets/AppIcon.appiconset Extract Sample code into examples/api (#87280) 2021-08-25 09:45:12 -07:00
Base.lproj Extract Sample code into examples/api (#87280) 2021-08-25 09:45:12 -07:00
Configs Fix example app names and copyrights (#100795) 2022-03-25 17:40:11 -07:00
AppDelegate.swift [macOS] Migrate @NSApplicationMain attribute to @main (#146848) 2024-04-18 03:08:36 +00:00
DebugProfile.entitlements Add smoke tests for all the examples, fix 17 broken examples. (#89021) 2021-09-28 09:32:06 -07:00
Info.plist [macOS] Remigrate principal class to NSApplication (#124173) 2023-04-05 09:05:37 -07:00
MainFlutterWindow.swift [macOS] Eliminate explicit main window init() (#123571) 2023-03-28 01:35:00 +00:00
Release.entitlements Add smoke tests for all the examples, fix 17 broken examples. (#89021) 2021-09-28 09:32:06 -07:00