Skip to content

Commit

Permalink
release: 8.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Dev-hwang committed Sep 24, 2024
1 parent 99400e7 commit 983245f
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 8.10.0

* [**BREAKING**] Change `onStart`, `onDestroy` callback return type from `void` to `Future<void>`
- The onRepeatEvent callback is called when the onStart asynchronous operation has finished
- Now you can access network, database, and other plugins in onDestroy callback [#276](https://github.com/Dev-hwang/flutter_foreground_task/issues/276)
- Check [migration_documentation](./documentation/migration_documentation.md) for changes

## 8.9.0

* [**CHANGE**] Ignore `autoRunOnBoot` option when service is stopped by developer
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ To use this plugin, add `flutter_foreground_task` as a [dependency in your pubsp

```yaml
dependencies:
flutter_foreground_task: ^8.9.0
flutter_foreground_task: ^8.10.0
```
After adding the `flutter_foreground_task` plugin to the flutter project, we need to specify the permissions and service to use for this plugin to work properly.
Expand Down
20 changes: 20 additions & 0 deletions documentation/migration_documentation.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
## Migration

### ver 8.10.0

- Change onStart, onDestroy callback return type from `void` to `Future<void>`.

```dart
// before
@override
void onStart(DateTime timestamp, TaskStarter starter) { }
@override
void onDestroy(DateTime timestamp) { }
// after
@override
Future<void> onStart(DateTime timestamp, TaskStarter starter) async { }
@override
Future<void> onDestroy(DateTime timestamp) async { }
```

### ver 8.6.0

- Remove `interval`, `isOnceEvent` option in ForegroundTaskOptions model.
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_foreground_task
description: This plugin is used to implement a foreground service on the Android platform.
version: 8.9.0
version: 8.10.0
homepage: https://github.com/Dev-hwang/flutter_foreground_task

environment:
Expand Down

0 comments on commit 983245f

Please sign in to comment.