Change template indentation to 2 spaces (#10289)
diff --git a/packages/flutter_tools/templates/create/ios-objc.tmpl/Runner/main.m b/packages/flutter_tools/templates/create/ios-objc.tmpl/Runner/main.m index 1bdb8e2..0ccc450 100644 --- a/packages/flutter_tools/templates/create/ios-objc.tmpl/Runner/main.m +++ b/packages/flutter_tools/templates/create/ios-objc.tmpl/Runner/main.m
@@ -3,8 +3,7 @@ #import "AppDelegate.h" int main(int argc, char * argv[]) { - @autoreleasepool { - return UIApplicationMain(argc, argv, nil, - NSStringFromClass([AppDelegate class])); - } + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } }
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 9e065d6..d5b31c6 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
@@ -3,10 +3,11 @@ @UIApplicationMain @objc class AppDelegate: FlutterAppDelegate { - override func application( - _ application: UIApplication, - didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { - GeneratedPluginRegistrant.register(with: self); - return super.application(application, didFinishLaunchingWithOptions: launchOptions); - } + override func application( + _ application: UIApplication, + didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]? + ) -> Bool { + 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 ad44e55..f265b51 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
@@ -2,13 +2,13 @@ import UIKit 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); - } + public static func register(with registrar: FlutterPluginRegistrar) { + 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); - } -} \ No newline at end of file + public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) { + result("iOS " + UIDevice.current.systemVersion); + } +}