Commit a63621f
refactor: replace debug mode with extensible hook-based system (#630)
* refactor: replace debug mode with extensible hook-based system
- Remove isInDebugMode parameter from initialize() method (BREAKING)
- Implement WorkmanagerDebugHandler interface for both Android and iOS
- Add LoggingDebugHandler for development (uses native logging systems)
- Add NotificationDebugHandler for visual debugging
- Support custom debug handlers for extensible debugging
- No debug output by default - opt-in via platform-specific setup
- Clean separation between core functionality and debug concerns
- Add comprehensive documentation in docs/debug.md
* docs: fix documentation structure for docs.page
- Update existing debugging.mdx instead of creating new files
- Follow proper docs.page structure with frontmatter and tabs
- Remove incorrectly placed debug.md from root docs folder
* feat: complete hook-based debug system implementation
- Replace isInDebugMode parameter with extensible hook system
- Add WorkmanagerDebugHandler interface/protocol for Android/iOS
- Implement LoggingDebugHandler and NotificationDebugHandler
- Add WorkmanagerDebug global registry for handler management
- Remove old DebugNotificationHelper and UserDefaultsHelper debug code
- Update documentation with proper Tabs component syntax
- Clean up workmanager/README.md to avoid duplication with docs.page
- Fix all integration tests and update mocks
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* feat: finalize hook-based debug system with cross-platform TaskStatus enum
- Move TaskStatus enum to Pigeon for consistent cross-platform types
- Regenerate all Pigeon-generated files with TaskStatus enum
- Update mocks to include deprecated isInDebugMode parameter
- Add backward compatibility test ensuring deprecated parameter still compiles
- Update CLAUDE.md to document code generation workflow
All tests passing and hook-based debug system is complete with:
- Abstract WorkmanagerDebug class with static current handler
- onTaskStatusUpdate and onExceptionEncountered methods
- Complete platform consistency between Android and iOS
- Backward compatibility maintained through deprecation
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* fix: resolve all GitHub Actions build failures
- Update iOS deployment target to 14.0 for Logger compatibility
- Fix Android TaskStatus import errors in debug handlers
- Fix iOS internal type visibility issues
- Update example app iOS deployment target in Xcode project
- Add comprehensive pre-commit requirements including example builds
- Ensure both Android APK and iOS app build successfully
All platforms now build without errors and pass formatting checks.
* chore: finalize hook-based debug system implementation
All GitHub Actions fixes applied and both example builds working:
- iOS 14.0 deployment target set across all components
- Android TaskStatus imports resolved
- iOS internal type visibility fixed
- Comprehensive pre-commit requirements documented
- Both Android APK and iOS app build successfully
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* docs: streamline changelog entries for better user experience
- Simplify changelog language to focus on user actions needed
- Remove internal implementation details (Flow observability, Pigeon updates)
- Add clear explanation for KEEP -> UPDATE default change
- Maintain consistent format across all package changelogs
- Keep only user-impacting information and migration guidance
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* fix: move deprecated_member_use ignore comment to correct line
The ignore comment needs to be on the line where the deprecated parameter
is actually used, not above the return statement.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* remove agent
* feat: enhance debug system with task status tracking and configurable notifications
- Replace deprecated isInDebugMode with hook-based debug handlers to slim down plugin
- Add TaskStatus.SCHEDULED and TaskStatus.RESCHEDULED for better task lifecycle visibility
- Fix notification flow: Started → Rescheduled → Retrying → Success
- Add configurable notification channels and grouping for debug handlers
- Update notification icons to cleaner symbols (1 parent c6c942f commit a63621f
File tree
43 files changed
+1532
-816
lines changed- docs
- example
- android/app/src/main
- kotlin/dev/fluttercommunity/workmanager/example
- integration_test
- ios
- Runner.xcodeproj
- Runner
- lib
- workmanager_android
- android/src/main/kotlin/dev/fluttercommunity/workmanager
- pigeon
- lib
- workmanager_apple
- ios
- Classes
- pigeon
- lib
- workmanager_platform_interface
- lib/src
- pigeon
- pigeons
- workmanager
- lib/src
- test
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
43 files changed
+1532
-816
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
| |||
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
35 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
11 | 15 | | |
12 | 16 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
20 | 130 | | |
21 | 131 | | |
22 | 132 | | |
| |||
243 | 353 | | |
244 | 354 | | |
245 | 355 | | |
246 | | - | |
| 356 | + | |
247 | 357 | | |
248 | 358 | | |
249 | 359 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
| 148 | + | |
152 | 149 | | |
153 | 150 | | |
154 | 151 | | |
| |||
0 commit comments