Skip to content

Commit c75abf5

Browse files
authored
Merge branch 'main' into 80-spm-support
2 parents cb57b87 + f9f687b commit c75abf5

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

wakelock_plus/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## [1.2.11]
2+
* [#92](https://github.com/fluttercommunity/wakelock_plus/pull/92): refactor(windows): Apply deprecation of win32 package. Thanks [Gustl22](https://github.com/Gustl22).
3+
14
## 1.2.10
25
* [#82](https://github.com/fluttercommunity/wakelock_plus/pull/82): fix: resolve symbol conflicts in wakelock_plus by updating Pigeon prefix. Thanks [weitsai](https://github.com/weitsai).
36

wakelock_plus/lib/src/wakelock_plus_windows_plugin.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@ class WakelockPlusWindowsPlugin extends WakelockPlusPlatformInterface {
2020
Future<void> toggle({required bool enable}) async {
2121
final int response;
2222
if (enable) {
23-
response = SetThreadExecutionState(
24-
EXECUTION_STATE.ES_CONTINUOUS | EXECUTION_STATE.ES_DISPLAY_REQUIRED);
23+
response = SetThreadExecutionState(ES_CONTINUOUS | ES_DISPLAY_REQUIRED);
2524
} else {
26-
response = SetThreadExecutionState(EXECUTION_STATE.ES_CONTINUOUS);
25+
response = SetThreadExecutionState(ES_CONTINUOUS);
2726
}
2827

2928
// SetThreadExecutionState returns 0 if the operation failed.

wakelock_plus/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: wakelock_plus
22
description: >-2
33
Plugin that allows you to keep the device screen awake, i.e. prevent the screen from sleeping on
44
Android, iOS, macOS, Windows, Linux, and web.
5-
version: 1.2.10
5+
version: 1.2.11
66
repository: https://github.com/fluttercommunity/wakelock_plus/tree/main/wakelock_plus
77

88
environment:

0 commit comments

Comments
 (0)