mirror of
https://github.com/flutter/flutter.git
synced 2026-01-21 13:16:40 +08:00
This migrates Flutter to use the `@main` attribute introduced in Swift 5.3. The `@UIApplicationMain` 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.ad18797428- This updates the iOS app template and adds a migration to replace `@UIApplicationMain` uses with `@main`. 2.8ecbb2f29f- I ran `flutter run` on each Flutter iOS app in this repository to verify the app migrates and launches successfully. Part of https://github.com/flutter/flutter/issues/143044
complex_layout
Scrolling benchmark
To run the scrolling benchmark on a device:
flutter drive --profile test_driver/scroll_perf.dart
Results should be in the file build/complex_layout_scroll_perf.timeline_summary.json.
More detailed logs should be in build/complex_layout_scroll_perf.timeline.json.
Startup benchmark
To measure startup time on a device:
flutter run --profile --trace-startup
The results should be in the logs.
Additional results should be in the file build/start_up_info.json.