diff --git a/flutter_package/example/.gitignore b/flutter_package/example/.gitignore index 3faab82f..0a9c49c0 100644 --- a/flutter_package/example/.gitignore +++ b/flutter_package/example/.gitignore @@ -5,9 +5,11 @@ *.swp .DS_Store .atom/ +.build/ .buildlog/ .history .svn/ +.swiftpm/ migrate_working_dir/ # IntelliJ related diff --git a/flutter_package/example/macos/Runner/AppDelegate.swift b/flutter_package/example/macos/Runner/AppDelegate.swift index 8e02df28..b3c17614 100644 --- a/flutter_package/example/macos/Runner/AppDelegate.swift +++ b/flutter_package/example/macos/Runner/AppDelegate.swift @@ -6,4 +6,8 @@ class AppDelegate: FlutterAppDelegate { override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { return true } + + override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool { + return true + } }