Change template indentation to 2 spaces (#10289)
This commit is contained in:
committed by
GitHub
parent
7156fc054e
commit
6762e86953
@@ -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]));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,10 +3,11 @@ import Flutter
|
||||
|
||||
@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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,13 +2,13 @@ import Flutter
|
||||
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);
|
||||
}
|
||||
}
|
||||
public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
|
||||
result("iOS " + UIDevice.current.systemVersion);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user