first commit
This commit is contained in:
19
ios/Runner/AppDelegate.swift
Normal file
19
ios/Runner/AppDelegate.swift
Normal file
@@ -0,0 +1,19 @@
|
||||
import UIKit
|
||||
import Flutter
|
||||
|
||||
@UIApplicationMain
|
||||
@objc class AppDelegate: FlutterAppDelegate {
|
||||
override func application(
|
||||
_ application: UIApplication,
|
||||
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
|
||||
) -> Bool {
|
||||
GeneratedPluginRegistrant.register(with: self)
|
||||
|
||||
// 注册 TimeTrackingPlugin
|
||||
let controller = window?.rootViewController as! FlutterViewController
|
||||
TimeTrackingPlugin.register(with: registrar(forPlugin: "TimeTrackingPlugin")!)
|
||||
|
||||
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user