flutter/packages/flutter_tools/templates/app_shared
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
..
.idea
android-java.tmpl Update app Android gradle scripts to use flutter.versionName and flutter.versionCode (#146604) 2024-04-11 13:46:13 +00:00
android-kotlin.tmpl Update app Android gradle scripts to use flutter.versionName and flutter.versionCode (#146604) 2024-04-11 13:46:13 +00:00
android.tmpl Flutter templates example app Gradle memory settings (#146275) 2024-04-04 15:43:52 +00:00
ios-objc.tmpl Migrate Xcode projects last version checks to Xcode 15.1 (#140256) 2024-01-03 23:05:46 +00:00
ios-swift.tmpl [iOS] Migrate @UIApplicationMain attribute to @main (#146707) 2024-04-16 22:13:03 +00:00
ios.tmpl Set template and migrate apps to iOS 12 minimum (#140823) 2024-01-03 00:47:40 +00:00
linux.tmpl Add missing call to parent method of GApplication::shutdown, implement GApplication::startup (#136836) 2023-10-20 22:19:57 +00:00
macos.tmpl [macOS] Migrate @NSApplicationMain attribute to @main (#146848) 2024-04-18 03:08:36 +00:00
web Flutter Web Bootstrapping Improvements (#144434) 2024-03-12 22:41:26 +00:00
windows.tmpl [Windows] Drop support for Windows 7/8 apps in template (#146668) 2024-04-12 01:07:20 +00:00
.gitignore.tmpl No longer include .packages in created .gitignore files (#133484) 2023-08-30 00:40:01 +00:00
analysis_options.yaml.tmpl Update links to old linter site to dart.dev (#129866) 2023-07-01 18:36:10 +00:00
projectName.iml.tmpl Remove .pub directories from iml templates (#109622) 2022-09-09 22:20:12 +00:00