launch_at_startup
launch_at_startup copied to clipboard
Enhancement(macOS): macOS support API change to allow App Sandbox mode
macOS support API now uses the "LaunchAtLogin" Swift package, thereby allowing App Sandbox mode to be enabled for publishing.
BREAKING CHANGES:
- Additional code needs to be added to the MainFlutterWindow.swift file for platform channel communication and additional configurations are also required to be made via Xcode for the Runner project.
Changes:
- AppAutoLauncherImplMacOS changed to use new API using Dart Swift platform channels
- README.md updated with installation instructions for new macOS support API. Includes rudimentary Chinese (simplified) translation for README-ZH.md
Example Project Changes:
- Code added to MainFlutterWindow.swift to import LaunchAtLogin module and handle Dart Swift platform channel communication
- App Sandbox enabled for Debug, Profile and Release modes in Xcode
- Configurations and LaunchAtLogin package added to Xcode Runner project for new API
- Select packages in pubspec.yaml upgraded by several major versions as old versions were quite outdated and causing issues in the builds
Additional changes:
- Package pubspec.yaml flutter_lints upgraded
- Deprecated methods in Tests fixed
Related to issue https://github.com/leanflutter/launch_at_startup/issues/1