mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Make Swift plugin template swift-format compliant (#40195)
swift-format will alphabetize import statements, so Flutter* should be before Foundation. Also, separating the "Generated file" comment prevents the formatter from thinking that the comment is associated with the following import, rather than the file, if it does re-order.
This commit is contained in:
parent
32c946f31b
commit
ef97a69dab
@ -349,8 +349,9 @@ const String _objcPluginRegistryImplementationTemplate = '''//
|
||||
const String _swiftPluginRegistryTemplate = '''//
|
||||
// Generated file. Do not edit.
|
||||
//
|
||||
import Foundation
|
||||
|
||||
import {{framework}}
|
||||
import Foundation
|
||||
|
||||
{{#plugins}}
|
||||
import {{name}}
|
||||
|
Loading…
Reference in New Issue
Block a user