permission_auto_reset 0.1.0
permission_auto_reset: ^0.1.0 copied to clipboard
A Flutter plugin to check and manage Android's unused-app auto-reset and hibernation feature for your app.
Changelog #
0.1.0 #
- Fix (#1):
checkRestrictionsStatus()returned the reverse value on Android (e.g. "ENABLED" while the user had "Manage app if unused" turned off). The plugin used hardcoded constants that were off-by-one againstandroidx.core.content.UnusedAppRestrictionsConstants; it now uses the official constants directly. - Removed unreliable manufacturer status fallback that read private
Settings.Securekeys (app_auto_restriction_enabled,unused_app_hibernation_enabled,auto_revoke_permissions_mode). The plugin now trusts the official AndroidX API; if it fails the result iserrorrather than a fabricated value. - Renamed Android package from
com.example.permission_auto_resettocom.mustafa.permission_auto_reset. - Bumped Android Gradle Plugin to 8.7.3, Kotlin to 2.0.21,
androidx.core-ktxto 1.13.1, Guava to 33.x, JVM target to 17. - Cleaner Dart API (
abstract final class, typed channel, switch expressions). - Rebuilt the example app with Material 3 and a clearer status card.
0.0.3 #
- Handle iOS and other non-Android platforms (return
featureNotAvailable).
0.0.2 #
- Support older Android versions and manufacturer-specific settings screens.
0.0.1 #
- Initial release.