remote_app_blocker 0.0.4
remote_app_blocker: ^0.0.4 copied to clipboard
Remotely block a Flutter app (e.g. when a client refuses to pay) and show a custom page/message.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.0.4 - 2025-11-28 #
Added #
- Real-time block status updates via
refreshIntervaland Stream-based providers onStatusChangedcallback for monitoring block status changesinitTimeoutparameter to prevent indefinite loading (default 10s)didUpdateWidgetsupport for dynamic configuration changesBlockedPageStylefor easy UI customizationAnimatedSwitcherfor smooth transitionsanimationDurationandanimationCurveparameters- Improved example with Firebase real-time updates
Fixed #
- Fixed README.md formatting issues (code blocks, section headers, tables)
- Updated documentation to reflect current version
- Improved example code structure and comments
- Optimized initialization logic and memory management
Changed #
- BREAKING: Removed
cacheLastDecisionparameter and SharedPreferences caching - Changed default
refreshIntervalfrom 5 minutes to 10 minutes - Firebase/Firestore providers now rely purely on real-time streams
- HTTP provider uses polling only (no cache fallback)
0.0.2 - 2025-11-25 #
Added #
- Initial release of
remote_app_blockerFlutter package. RemoteAppGatewidget that wraps an entire Flutter app and decides whether to:- Show the normal application, or
- Show a customizable "App On Hold" / blocked screen.
RemoteBlockConfigmodel for unified configuration across different sources.BlockStatusProviderabstraction for pluggable configuration providers.HttpBlockStatusProviderto fetch JSON configuration from a remote HTTP endpoint.FirestoreBlockStatusProviderto load configuration from a Firestore document.RemoteConfigBlockStatusProviderto load configuration from Firebase Remote Config.- Default blocked page UI via
DefaultBlockedPagewidget. - Configuration fields:
isBlockedflag for global blocking.blockMessagefor custom text such as:- "The App is currently on hold until the client pays the developer."
blockedVersionsfor version-specific blocking.blockFrom/blockUntilfor scheduled blocking windows.
- Offline / error handling:
- Caching of last known decision and message via
SharedPreferences. - Fallback to cached decision if remote providers fail.
- Caching of last known decision and message via
- Optional HMAC-based integrity verification for HTTP JSON configurations:
- Config validation against a server-side secret.
- Protection against basic tampering of the remote JSON.
- Example app under
example/showcasing:- HTTP-based configuration.
- Custom blocked screen.
- Basic CI workflow template for Flutter in
.github/workflows/flutter.yml. - Initial documentation in
README.md, including:- Setup instructions.
- JSON configuration examples.
- Provider usage.
- Security considerations.