Skip to content

Commit c6c942f

Browse files
authored
chore: update dependencies to latest versions (#629)
* chore: update dependencies to latest versions - Update Pigeon from 22.7.4 to 26.0.0 for enhanced multi-platform support - Update androidx.work from 2.9.0 to 2.10.2 with improved Flow-based observability - Update permission_handler in example app from 11.3.1 to 12.0.1 - Fix Kotlin null safety issues with androidx.work 2.10.2 type system improvements - Regenerate Pigeon files with new version * fix: typo in CLAUDE.md and correct changelog entries - Fix typo in CLAUDE.md line 18 - Move dependency updates to correct changelog files - Remove incorrect BREAKING label from Pigeon update * fix: remove irrelevant Kotlin reference from platform_interface changelog The platform_interface package is pure Dart and doesn't involve Kotlin * docs: update Android and Apple package changelogs - Add dependency updates to workmanager_android changelog (androidx.work 2.10.2, Kotlin fixes) - Add Pigeon file regeneration to workmanager_apple changelog - Ensure all packages with changes have updated changelogs * docs: clean up main workmanager changelog Remove internal dependency update details from main package changelog. Keep focused on user-facing changes only - dependency updates are documented in the specific platform packages where they matter. * docs: remove internal implementation details from changelog - Remove Kotlin null safety fix details from Android changelog (users don't care about internal fixes) - Add changelog guidelines to CLAUDE.md emphasizing user-focused content only - Changelogs should document what matters to end users, not AI debugging process
1 parent 04133c9 commit c6c942f

File tree

16 files changed

+424
-1562
lines changed

16 files changed

+424
-1562
lines changed

CLAUDE.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
- Use melos to run all tests: `melos run test`
1616
- Or run tests in individual packages:
1717
- `cd workmanager_android && flutter test`
18-
- `cd workmanager_apple && flutter test`
18+
- `cd workmanager_apple && flutter test`
1919
- `cd workmanager && flutter test`
2020
- Before running tests in workmanager package, ensure mocks are up-to-date: `melos run generate:dart`
2121

@@ -25,4 +25,11 @@
2525
- **Test edge cases**: null inputs, error conditions, boundary values
2626

2727
## Complex Component Testing
28-
- **BackgroundWorker**: Cannot be unit tested due to Flutter engine dependencies - use integration tests
28+
- **BackgroundWorker**: Cannot be unit tested due to Flutter engine dependencies - use integration tests
29+
30+
## Changelog Guidelines
31+
- **User-focused content only**: Write from end user perspective, not internal implementation details
32+
- **No AI agent progress**: Don't document debugging steps, build fixes, or internal development process
33+
- **What matters to users**: Breaking changes, new features, bug fixes that affect their code
34+
- **Example of bad changelog entry**: "Fixed Kotlin null safety issues with androidx.work 2.10.2 type system improvements"
35+
- **Example of good changelog entry**: "Fixed periodic tasks not respecting frequency changes"

example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@
227227
attributes = {
228228
BuildIndependentTargetsInParallel = YES;
229229
LastSwiftUpdateCheck = 1250;
230-
LastUpgradeCheck = 1640;
230+
LastUpgradeCheck = 1510;
231231
ORGANIZATIONNAME = "The Chromium Authors";
232232
TargetAttributes = {
233233
97C146ED1CF9000F007C117D = {

example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1640"
3+
LastUpgradeVersion = "1510"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ environment:
99
dependencies:
1010
path_provider: ^2.1.5
1111
shared_preferences: ^2.3.0
12-
permission_handler: ^11.3.1
12+
permission_handler: ^12.0.1
1313
flutter:
1414
sdk: flutter
1515
workmanager:

workmanager/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ dependencies:
1818
workmanager_apple: ^0.8.0
1919

2020
dev_dependencies:
21-
test: ^1.25.0
21+
test: ^1.25.15
2222
mockito: ^5.4.4
2323
build_runner: ^2.4.9
2424
get_it: ^8.0.0

workmanager_android/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## Future
22

3+
### Dependencies & Infrastructure Updates
4+
* Updated androidx.work from 2.9.0 to 2.10.2 with improved Flow-based observability
5+
* Regenerated Pigeon files with updated version 26.0.0
6+
37
### Breaking Changes
48
* **BREAKING**: Update `registerPeriodicTask` to use `ExistingPeriodicWorkPolicy` instead of `ExistingWorkPolicy`
59
* This provides better type safety and mirrors Android's native API

workmanager_android/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ android {
4343
}
4444

4545
dependencies {
46-
def work_version = "2.9.0"
46+
def work_version = "2.10.2"
4747
implementation "androidx.work:work-runtime:$work_version"
4848
implementation "androidx.concurrent:concurrent-futures:1.1.0"
4949

workmanager_android/android/src/main/kotlin/dev/fluttercommunity/workmanager/DebugHelper.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ object DebugHelper {
3535
ctx: Context,
3636
threadIdentifier: Int,
3737
dartTask: String,
38-
payload: Map<String, Any>? = null,
38+
payload: Map<String, Any?>? = null,
3939
fetchDuration: Long,
4040
result: ListenableWorker.Result,
4141
) {
@@ -56,7 +56,7 @@ object DebugHelper {
5656
ctx: Context,
5757
threadIdentifier: Int,
5858
dartTask: String,
59-
payload: Map<String, Any>? = null,
59+
payload: Map<String, Any?>? = null,
6060
callbackHandle: Long,
6161
callbackInfo: FlutterCallbackInformation?,
6262
dartBundlePath: String?,

0 commit comments

Comments
 (0)