Skip to content

Commit

Permalink
chore: prepare 5.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
wrbl606 committed Nov 8, 2024
1 parent 8f895f2 commit ffb67a5
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# 5.0.0
## 5.0.1

* Avoid excessive `hasSystemFeature` calls

Thanks [@yoer](https://github.com/yoer)!

## 5.0.0

* *BREAKING* Switch to declarative Gradle plugin setup
* Add switching animation to `PiPSwitcher`
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ packages:
path: ".."
relative: true
source: path
version: "5.0.0"
version: "5.0.1"
flutter:
dependency: "direct main"
description: flutter
Expand Down
10 changes: 9 additions & 1 deletion lib/src/floating.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,19 @@ class Floating {

Timer? _timer;
Stream<PiPStatus>? _stream;

bool? _isPipAvailable;

static final _singleton = Floating._internal();

@visibleForTesting
void reset() {
lastEnableArguments = null;
_timer?.cancel();
_timer = null;
_stream = null;
_isPipAvailable = null;
}

/// Facilities Floating singleton access.
///
/// PiP settings are global anyway, no point of making this instanceable.
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: floating
description: Picture in Picture mode management for Flutter. Available only for Android.
version: 5.0.0
version: 5.0.1
homepage: https://github.com/wrbl606/floating
screenshots:
- description: 'This screenshot shows the transformation from a full-screen application to a movable picture-in-picture form.'
Expand Down
1 change: 1 addition & 0 deletions test/src/floating_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ void main() {
});

tearDown(() {
Floating().reset();
tester.setMockMethodCallHandler(channel, null);
});

Expand Down

0 comments on commit ffb67a5

Please sign in to comment.