blob: cd99df3edb78466456d40877ea5600c7b7e37d4d [file]
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import Cocoa
import FlutterMacOS
@main
class AppDelegate: FlutterAppDelegate {
override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool {
return true
}
var engine: FlutterEngine?
override func applicationDidFinishLaunching(_ notification: Notification) {
engine = FlutterEngine(name: "project", project: nil)
RegisterGeneratedPlugins(registry: engine!)
engine!.run(withEntrypoint:nil)
}
}