PackageTrack
Sign in Get early access

battery_optimization_helper

A Flutter plugin to detect and request disabling Android battery optimization, with best‑effort OEM auto‑start shortcuts.

0.2.0 thethtwe-dev/battery_optimization_helper

What this package is like to depend on

Last release 6 months ago

07 Feb 2026

Ships on a steady schedule

a new release about every 5 months

Nearly every release is documented

notes for 10 of 10 stable releases

Nothing withdrawn

no release was ever pulled

1 years old

10 releases · first in 2025

5 releases in the last 12 months

see the full history below

Release timeline

10 releases · Mar 2025 to Feb 2026
2026
Release Pre-release

Releases

latest 10
  1. 0.2.0 07 Feb 2026
    Release notes
    • Add typed optimization outcomes via ensureOptimizationDisabledDetailed() with explicit statuses (alreadyDisabled, disabledAfterPrompt, settingsOpened, unsupported, failed).
    • Add diagnostics API: getBatteryRestrictionSnapshot() (SDK, manufacturer, optimization state, power saver state, and OEM settings capability).
    • Update Android implementation to provide diagnostics and OEM capability checks.
    • Expand tests and update example app to demonstrate the new APIs.
    • Bump example Android NDK to 28.2.13676358 to match current integration_test requirements.
    • Replace com.example.* Android package/application identifiers with project-specific namespaces.
    • Align SDK constraints with current dependencies (Dart >=3.8, Flutter >=3.32).
    • Add GitHub Actions CI workflow to enforce analyze/test/build and publish --dry-run.
    Open source →
  2. 0.1.3 15 Sep 2025
    Release notes
    • Improve README: installing via CLI, rationale example snippet, versions/tooling, and pub score tips.
    • Enhance example app with rationale dialog and clearer actions.
    • Update tests to reflect new API and stabilize Android unit test.
    Open source →
  3. 0.1.2 15 Sep 2025
    Release notes
    • Improve README: installing via CLI, rationale example snippet, versions/tooling, and pub score tips.
    • Enhance example app with rationale dialog and clearer actions.
    • Update tests to reflect new API and stabilize Android unit test.
    Open source →
  4. 0.1.1 15 Sep 2025
    Release notes
    • Improve README: installing via CLI, rationale example snippet, versions/tooling, and pub score tips.
    • Enhance example app with rationale dialog and clearer actions.
    • Update tests to reflect new API and stabilize Android unit test.
    Open source →
  5. 0.1.0 15 Sep 2025
    Release notes
    • Add Android version guards to avoid crashes on API < 23.
    • Improve activity launching with safe fallbacks.
    • Expand OEM auto-start/background settings coverage (Samsung, Huawei, OnePlus, Realme, Asus, Meizu, Nokia, Motorola, etc.).
    • Update README with clear usage, 16 KB page size guidance, and tips.
    • Refactor Dart API to use platform interface; add ensureOptimizationDisabled() convenience method and safer wrappers that handle exceptions.
    • Add requestDisableBatteryOptimizationWithResult to report status after user returns from the system dialog.
    • Bump Kotlin Gradle Plugin to 2.1.0 in example and 2.1.0 in plugin build to resolve upcoming support warnings.
    Open source →
  6. 0.0.5 29 Mar 2025
    Release notes
    • Update readme file.
    Open source →
  7. 0.0.4 29 Mar 2025
    Release notes
    • Added background autostart
    Open source →
  8. 0.0.3 29 Mar 2025
    Release notes
    • Format dart files
    Open source →
  9. 0.0.2 29 Mar 2025
    Release notes
    • Update readme file.
    Open source →
  10. 0.0.1 29 Mar 2025
    Release notes
    • Initial release.
    • Added support for checking and requesting disable of Android battery optimization.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive