-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[flutter_local_notifications_windows] Windows FFI plugin (#2366)
* Start impl of Windows notifications * Remove dependency override * Fix notification content not showing * Implement initialize method * WIP impl of cancelling notifications * Add support for optional title/body * Impl Registry logic for notification handling * Tidy up code * Remove dependency overrides * Implement cancel/cancelAll * WIP: Impl onSelectNotification * Fix read access violation * Small fix on notification. * Pass payload to Dart on notification selected * Remove melos files * Attempting to handle msix * Forgot to check for optional value * Fix Initialize not returning value * temp fix issue about GetCurrentPackageFullName * fix: windows impl with upstream merge * feat: support specify guid in windows * fix: ERROR_INVALID_PARAMETER when GetCurrentPackageFullName. * feat: support raw xml in windows * Init error * Catch issues with GUIDs * Support all of the Windows Toast Notification API * Send user input back to plugin * Fixed typos * Added getActiveNotifications for Windows * All examples working! * Added update, not working on unpackaged * Copied NotificationManager * Hiding old code for now * one more try at progress * Experimental update support * V2 * Working progress updates * Formatting * All notifications working * Moved Windows examples out of main.dart; * cleanup * Hide repeating examples on Windows * Moved example XML box to bottom * Made WindowsImage.file constructor * getLaunchDetails working * Cleanup * Made all images msix safe * Catch when getLaunchDetails() is called before init() and add dynamic example * Fixed issue with special characters in file * Added Windows FFI package * moved to FFI plugin * Reduced C <--> C++ logic, embraced C API * Upgraded Dart to 3.1.0 * Documented the C++ code * Made more constructors const * Updated example * Documented Dart APIs * Added unit tests and polished * Configured exampleand Melos for Windows * Documented everything and removed Flutter dependency from _windows * Added retry to flaky test * Documented the crash test * Removed flutter from _platform_interface and bumped * Removed XML from main plugin * Simplify C++ code and use ffigen 13.0 for Dart enums * Made attributes and notifToXml() private * Fixed readme * Fixed typo * WindowsTextInput.hintText -> .placeHolderContent; * Improved docs on WindowsNotificationText.placement * Removed WindowsActivationType.background as it's only supported on UWP * Fixed warning about mixing struct and class * Changed docs for ffi plugin * Added zonedScheduleRawXml * Doc comment tweak * Tweaked another doc comment * Removed custom lints, using 80 chars per line and standard lints * Changed all C int-bools to plain bools * Changed C++ side to use bools as well * Experimental multithreading support * Responded to feedback - Changed `toXml` to `buildXml` - Fixed comments on stub class - Bumped Dart version to ^3.2 - Fixed `enableMultithreading` not being always annotated - Only test on Windows * Updated minimum Flutter version to 3.16 * Added _windows to dependabot * Changed main package to use Dart 3.2, Flutter 3.16 * Moved all XML code to private files * Cleanup * Sealed WindowsNotificationPart * Restrict tests to Windows platforms * Update CI to use windows-latest for Windows tests + build * Formatted repo * Formatted again * Fix Windows CI to not use .sh script * Fix workflow name * Downgraded _windows meta to 1.11 * Added parseGuid function for SDKs that don't have it built-in * Use a vector instead of malloc for plugin.cpp * Updated pubspec to include Flutter and updated platform_interface * Test renaming repo * Shorter names * Shorter names on Windows build version and stable * Added clang-format to _windows * Fixed yaml * Print clang format version * Latest clang-format * sudo apt update * Add universe to apt * Use clang from pip for new version * More formatting * Commit back any changes that are made by clang * Bad formatting to lure clang into re-formatting * Use auto-commit action * Clang format --------- Co-authored-by: Kenneth <kenneth.ng.5226@outlook.com> Co-authored-by: Alexandre Zollinger Chohfi <alzollin@microsoft.com> Co-authored-by: lightrabbit <lightpacerabbit@gmail.com> Co-authored-by: Levi Lesches <levi.lesches@kdab.com> Co-authored-by: Levi-Lesches <Levi-Lesches@users.noreply.github.com>
- Loading branch information
1 parent
c15783f
commit 697b007
Showing
96 changed files
with
5,638 additions
and
342 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.