Skip to content

Commit e6e13f5

Browse files
committed
Remove deprecated WorkManager debug flag
Add a section about debugging in CONTRIBUTING.md
1 parent c6a67c6 commit e6e13f5

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

docs/CONTRIBUTING.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,13 @@ flutter config --no-analytics
1818

1919
Using [fvm](https://fvm.app/) :
2020
```sh
21-
fvm install 2.27.4
21+
fvm install 3.27.4
2222
cd <Project-dir>
23-
fvm use 2.27.4
23+
fvm use 3.27.4
2424
```
2525

2626
### Android Studio
2727

28-
*(Optional - enable wayland support)* : Add `-Dawt.toolkit.name=WLToolkit` to the Custom VM Options.
29-
3028
Install the flutter plugin and restart, then go to **Settings > Languages & Framework > Android SDK > SDK Tools** and install the following :
3129

3230
- Android SDK Build-Tools
@@ -48,6 +46,13 @@ If Android studio doesn't pickup the path of the flutter toolchain or dart :
4846
In **Settings > Languages & Framework > Flutter** set the flutter SDK path using the absolute path of your install.
4947
And in **Settings > Languages & Framework > Dart** specify the Dark SDK path `<Absolute-Flutter-Path>/bin/cache/dart-sdk`
5048

49+
## Debugging
50+
51+
By default running the app via Android Studio or `flutter run` will use the debug APK (located in `build/app/outputs/flutter-apk/app-debug.apk`).
52+
Background tasks are done with [workmanager](https://docs.page/fluttercommunity/flutter_workmanager) debugging must be enabled via the kotlin flag `WorkmanagerDebug.setCurrent(LoggingDebugHandler())`
53+
54+
See more info in https://docs.page/fluttercommunity/flutter_workmanager/debugging
55+
5156
## Contributing guidelines
5257

5358
Contribution must target the `develop` branch and must have documented changes.
@@ -56,6 +61,4 @@ if you are fixing an existing issue or bug, tag it in your merge request (exampl
5661

5762
if you are doing maintenance work, be sure to add the changelog of the libraries you are updating.
5863

59-
Translation are done via [crowdin](https://crowdin.com/project/piwigo-ng)
60-
61-
64+
Translation are done via [crowdin](https://crowdin.com/project/piwigo-ng)

lib/services/auto_upload_manager.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,5 @@ void callbackDispatcher() {
450450
}
451451

452452
void initializeWorkManager() {
453-
Workmanager().initialize(
454-
callbackDispatcher, // The top level function, aka callbackDispatcher
455-
isInDebugMode: kDebugMode,
456-
);
453+
Workmanager().initialize(callbackDispatcher); // The top level function, aka callbackDispatcher
457454
}

0 commit comments

Comments
 (0)