Skip to content

Commit 98dd52f

Browse files
setcyened
andauthored
fix new compilation error in flutter 3.0.0 (#383)
* fix: fix error overrides nothing * correct publish task * changelog & sdk constraints Co-authored-by: Sebastian Roth <sebastian.roth@gmail.com>
1 parent bb6af7d commit 98dd52f

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/format.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,5 @@ jobs:
4848
run: |
4949
flutter pub get
5050
flutter pub publish -n
51-
pub global activate tuneup
52-
pub global run tuneup check
51+
flutter pub global activate tuneup
52+
flutter pub global run tuneup check

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# next
22

33
* Android: Remove jetifier from example
4+
* Restore compatibility with Flutter 3.0.0
45

56
# 0.5.0-dev.8
67

android/src/main/kotlin/be/tramckrijte/workmanager/BackgroundWorker.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ class BackgroundWorker(
151151
}
152152

153153
override fun error(
154-
errorCode: String?,
154+
errorCode: String,
155155
errorMessage: String?,
156156
errorDetails: Any?
157157
) {

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ repository: https://github.com/fluttercommunity/flutter_workmanager
66
issue_tracker: https://github.com/fluttercommunity/flutter_workmanager/issues
77

88
environment:
9-
sdk: ">=2.12.0 <3.0.0"
10-
flutter: ">=1.12.13+hotfix.5"
9+
sdk: ">=2.17.0 <3.0.0"
10+
flutter: ">=2.5.0"
1111

1212
dependencies:
1313
pedantic: ^1.11.0

0 commit comments

Comments
 (0)