Swift templates tweaks. (#13291)
Dropped optional semicolons.
diff --git a/packages/flutter_tools/templates/create/ios-swift.tmpl/Runner/AppDelegate.swift b/packages/flutter_tools/templates/create/ios-swift.tmpl/Runner/AppDelegate.swift
index d5b31c6..71cc41e 100644
--- a/packages/flutter_tools/templates/create/ios-swift.tmpl/Runner/AppDelegate.swift
+++ b/packages/flutter_tools/templates/create/ios-swift.tmpl/Runner/AppDelegate.swift
@@ -7,7 +7,7 @@
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?
) -> Bool {
- GeneratedPluginRegistrant.register(with: self);
- return super.application(application, didFinishLaunchingWithOptions: launchOptions);
+ GeneratedPluginRegistrant.register(with: self)
+ return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
}
diff --git a/packages/flutter_tools/templates/plugin/ios-swift.tmpl/Classes/SwiftpluginClass.swift.tmpl b/packages/flutter_tools/templates/plugin/ios-swift.tmpl/Classes/SwiftpluginClass.swift.tmpl
index f265b51..bb2d81e 100644
--- a/packages/flutter_tools/templates/plugin/ios-swift.tmpl/Classes/SwiftpluginClass.swift.tmpl
+++ b/packages/flutter_tools/templates/plugin/ios-swift.tmpl/Classes/SwiftpluginClass.swift.tmpl
@@ -3,12 +3,12 @@
public class Swift{{pluginClass}}: NSObject, FlutterPlugin {
public static func register(with registrar: FlutterPluginRegistrar) {
- let channel = FlutterMethodChannel(name: "{{projectName}}", binaryMessenger: registrar.messenger());
- let instance = Swift{{pluginClass}}();
- registrar.addMethodCallDelegate(instance, channel: channel);
+ let channel = FlutterMethodChannel(name: "{{projectName}}", binaryMessenger: registrar.messenger())
+ let instance = Swift{{pluginClass}}()
+ registrar.addMethodCallDelegate(instance, channel: channel)
}
public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
- result("iOS " + UIDevice.current.systemVersion);
+ result("iOS " + UIDevice.current.systemVersion)
}
}