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:
stuartmorgan 2019-09-11 07:43:50 -07:00 committed by GitHub
parent 32c946f31b
commit ef97a69dab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -349,8 +349,9 @@ const String _objcPluginRegistryImplementationTemplate = '''//
const String _swiftPluginRegistryTemplate = '''//
// Generated file. Do not edit.
//
import Foundation
import {{framework}}
import Foundation
{{#plugins}}
import {{name}}