| // 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) |
| } |
| } |