Skip to content

Commit b826d5a

Browse files
author
Yashwanth Kumar
authored
Update ANDROID_SETUP.md
1 parent 4ce0651 commit b826d5a

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

ANDROID_SETUP.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,21 @@ Check if you have the following in your `AndroidManifest.xml` file.
1111
Ideally you should have this, if not follow the [upgrade guide](https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects).
1212
If for some reason you can't upgrade yet we still support the [older way of embedding](ANDROID_SETUP_V1.md):
1313

14+
In your `pubspec.yaml` file, add:
15+
```yaml
16+
dependencies:
17+
workmanager:
18+
git:
19+
url: https://github.com/fluttercommunity/flutter_workmanager.git
20+
path: workmanager
21+
ref: main
22+
```
23+
instead of
24+
```yaml
25+
dependencies:
26+
workmanager: ^0.5.2
27+
```
28+
1429
# How to Debug my background job
1530
1631
Debugging a background task can be difficult, Android decides when is the best time to run.

0 commit comments

Comments
 (0)