wakelock
Plugin that allows you to keep the device screen awake, i.e. prevent the screen from sleeping on Android, iOS, macOS, Windows, and web.
0.6.2
12K downloads/mo
#2743 most downloaded on pub.dev
creativecreatorormaybenot/wakelock
What this package is like to depend on
Last release 4 years ago
no release in 18 months
Release timing varies
gaps range from 8 days to 4 months
Nearly every release is documented
notes for 49 of 49 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
54 releases · first in 2019
0 releases in the last 12 months
see the full history below
Release timeline
54 releases · Jul 2019 to Jul 2022Releases
latest 54-
0.6.207 Jul 2022Release notes
Open source →Fixing android build problem on Flutter 2.10 (#174)
* Bumped compileSdkVersion and Kotlin version
* Updated pubspec and CHANGELOG
-
0.6.119 Jan 2022 -
0.6.1+126 Jan 2022Release notes
Open source →- Documented necessity of ensuring that the
WidgetsBindingis initialized.
- Documented necessity of ensuring that the
-
0.6.1+206 Mar 2022Release notes
Open source →Recommend to not call `Wakelock.enable()` inside of `main()` (#171)
* Update pubspec.yaml
* Update README.md
* Update CHANGELOG.md
Release notes
Open source →- Documented the recommendation of not calling
Wakelock.enable()directly inside ofmain().
- Documented the recommendation of not calling
-
0.6.0+111 Jan 2022 -
0.5.614 Sep 2021Release notes
Open source →Fix constraints on updated platform interface (#149)
* Fix platform interface incompatibility
* Stage
* Update deps
Release notes
Open source →- Fixed platform interface incompatibility by bumping the version constraint.
-
0.5.514 Sep 2021Release notes
Open source →- Fixed iOS API by updating the method signatures to match the newly generated protocol.
-
0.5.410 Sep 2021 -
0.5.304 Aug 2021 -
0.5.3+104 Aug 2021 -
0.5.3+205 Aug 2021 -
0.5.3+305 Aug 2021 -
0.5.214 May 2021Release notes
Open source →- Updated generated message handling.
- Updated generated messages in the platform interface, which fixed calling
setMockMessageHandler. - Updated
wakelock_dependencies with updated Dart SDK constraints (>=2.12.0).
-
0.5.117 Apr 2021Release notes
Open source →- Resolved a crash on iOS which was caused by 2 observers on idleTimerDisabled.
-
0.5.1+110 May 2021 -
0.5.006 Mar 2021 -
0.5.0+107 Mar 2021 -
0.5.0+207 Mar 2021 -
0.4.024 Feb 2021 -
0.4.0-nullsafety.018 Jan 2021 pre-release -
0.3.0-nullsafety.312 Jan 2021 pre-release -
0.3.0-nullsafety.207 Jan 2021 pre-releaseRelease notes
Open source →- Indicated that no permissions are required for using the
wakelockplugin in the README.
- Indicated that no permissions are required for using the
-
0.3.0-nullsafety.101 Dec 2020 pre-releaseRelease notes
Open source →- Fixed
UIImagePickerControllerdisabling the wakelock (using the camera on iOS).
- Fixed
-
0.3.0-nullsafety.029 Nov 2020 pre-releaseRelease notes
Open source →- Migrated to null safety.
- Breaking: removed deprecated
isEnabledandonintoggle.
-
0.2.125 Oct 2020Release notes
Open source →Bump win32 version (#183)
* Bump win32 version
* Update wakelock_windows/CHANGELOG.md
Co-authored-by: creativecreatorormaybenot <[email protected]>
Release notes
Open source →- Rewrote messages to stay as Java code and use
1.8JVM target in order to allow interop with Kotlin. This fixes Android build errors.
- Rewrote messages to stay as Java code and use
-
0.2.1+108 Nov 2020Release notes
Open source →- Fixed Android build warning (
import_js_library) by bumpingwakelock_web.
- Fixed Android build warning (
-
0.2.004 Oct 2020Release notes
Open source →- Added web support.
- Overhauled the plugin with the latest Flutter standards.
- Implemented federated plugin approach, adding
wakelock_platform_interfaceandwakelock_webdependencies. - Removed support for the Android v1 APIs.
- Deprecated
Wakelock.isEnabledin favor ofWakelock.enabled. The fact that it is a getter should be enough and remove the need for the "is" context. - Deprecated the
onparameter inWakelock.togglein favor of theenableparameter, which should be a more descriptive name.
-
0.2.0+105 Oct 2020 -
0.2.0+224 Oct 2020 -
0.1.419 Mar 2020Release notes
Open source →- Added assertion for
oninWakelock.toggleto be non-null and@requiredannotation. This is not a breaking change since it was logically required before. - Switched from Java to Kotlin for the Android implementation.
- Updated plugin files to the latest Flutter standards.
- Updated structure to ignore unnecessary files.
- Added unit testing.
- Improved the integration tests to make use of the example app.
- Updated example app.
- Added GitHub actions and removed Travis CI.
- Made
CHANGELOG.mdformulations more consistent. - Updated year in
LICENSE. - Enforced
pedanticlint rules.
- Added assertion for
-
0.1.4+122 Mar 2020Release notes
Open source →- Finished migration to new Flutter plugin embedding.
- Fixed missing activity on Android for apps using the old plugin embedding.
- Lowered Flutter SDK version constraint to
1.12.0.
-
0.1.4+203 Jul 2020 -
0.1.325 Sep 2019 -
0.1.3+111 Dec 2019 -
0.1.3+211 Dec 2019 -
0.1.3+311 Dec 2019 -
0.1.3+422 Jan 2020 -
0.1.207 Jul 2019Release notes
Open source →- Changed
Wakelock.toggle's parameter to a named parameter. - Improved iOS implementation.
- Changed
-
0.1.2+107 Jul 2019Release notes
Open source →- Added integration testing.
- Removed unnecessary Android Manifest permission.
- Added a contributing guide.
- Added CI.
-
0.1.2+207 Jul 2019 -
0.1.2+308 Jul 2019 -
0.1.2+408 Jul 2019 -
0.1.2+509 Jul 2019Release notes
Open source →- Expanded continuous integration to include format checking and code analysis.
-
0.1.2+624 Jul 2019Release notes
Open source →- Cleaned up the Android manifest.
- Changed a test name in
test_driver. - Updated the plugin description.
- Updated
README.md. - Updated
CONTRIBUTING.md. - Updated
.travis.yml. - Removed unnecessary
Assetsdirectory from theiosfolder.
-
0.1.2+724 Jul 2019 -
0.1.2+806 Aug 2019 -
0.1.107 Jul 2019 -
0.1.1+107 Jul 2019 -
0.1.1+207 Jul 2019 -
0.1.007 Jul 2019Release notes
Open source →- Bumped version to indicate that the plugin is fully usable.
- Improved README's.
- Formatted Dart files.
-
0.1.0+107 Jul 2019 -
0.1.0+207 Jul 2019 -
0.1.0+307 Jul 2019 -
0.0.107 Jul 2019