Skip to content

Commit 995c15b

Browse files
authored
[battery] Announce API stability and compatibility with 1.0.0 (flutter#2597)
1 parent 3337ccf commit 995c15b

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

packages/battery/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.3.1+9
2+
3+
* Declare API stability and compatibility with `1.0.0` (more details at: https://github.com/flutter/flutter/wiki/Package-migration-to-1.0.0).
4+
15
## 0.3.1+8
26

37
* Make the pedantic dev_dependency explicit.

packages/battery/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Battery
22

3+
**Please set your constraint to `battery: '>=0.3.y+x <2.0.0'`**
4+
5+
## Backward compatible 1.0.0 version is coming
6+
The battery plugin has reached a stable API, we guarantee that version `1.0.0` will be backward compatible with `0.3.y+z`.
7+
Please use `battery: '>=0.3.y+x <2.0.0'` as your dependency constraint to allow a smoother ecosystem migration.
8+
For more details see: https://github.com/flutter/flutter/wiki/Package-migration-to-1.0.0
9+
310
[![pub package](https://img.shields.io/pub/v/battery.svg)](https://pub.dartlang.org/packages/battery)
411

512
A Flutter plugin to access various information about the battery of the device the app is running on.

packages/battery/pubspec.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ name: battery
22
description: Flutter plugin for accessing information about the battery state
33
(full, charging, discharging) on Android and iOS.
44
homepage: https://github.com/flutter/plugins/tree/master/packages/battery
5-
version: 0.3.1+8
5+
# 0.3.y+z is compatible with 1.0.0, if you land a breaking change bump
6+
# the version to 2.0.0.
7+
# See more details: https://github.com/flutter/flutter/wiki/Package-migration-to-1.0.0
8+
version: 0.3.1+9
69

710
flutter:
811
plugin:

0 commit comments

Comments
 (0)