blob: ef951bbb9990fe0b2aa8f51b7addf928f2608b55 [file] [log] [blame]
// 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)
engine?.run(withEntrypoint:nil)
}
}