url_flow_sdk_poc 1.2.0
url_flow_sdk_poc: ^1.2.0 copied to clipboard
A reusable Flutter SDK for timed URL redirects with auto-close functionality. Features include jailbreak/root detection, URL domain validation, custom theming, and lifecycle callbacks. Perfect for pa [...]
Changelog #
All notable changes to the WebFlow SDK will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.2.0 - 2026-01-16 #
Added #
- URL Domain Validation 🌐
UrlDomainConfigfor configuring allowed/blocked domainsUrlValidatorfor validating URLs against domain policiesUrlValidationResultfor detailed validation outcomes- Wildcard pattern support:
*.example.com,**.example.com - HTTPS enforcement option (
requireHttps) - Localhost handling for development (
allowLocalhost) - Preset configurations:
UrlDomainConfig.strict()- Only allow specified domainsUrlDomainConfig.blocklist()- Block specific domainsUrlDomainConfig.production()- Production-ready configUrlDomainConfig.development()- Development-friendly config
urlDomainConfigparameter inWebFlowConfigonNavigationBlockedcallback for handling blocked navigation- Navigation validation in WebView (blocks unauthorized URLs)
- Initial/redirect URL validation before session start
- 15 new tests for URL validation (31 total tests)
Changed #
- WebFlowScreen now validates all navigation requests when
urlDomainConfigis provided - Updated documentation with URL validation examples
1.1.0 - 2026-01-15 #
Added #
- Security Features 🔒
- Root/Jailbreak detection using
flutter_jailbreak_detectionpackage - Mirrors
jail-monkeyintegration from React Native SDK SecurityCheckOptionsfor configuring security behavior:blockCompromisedDevices- Block rooted/jailbroken devices (default: true)blockEmulators- Block emulator/simulator environmentsblockDeveloperMode- Block devices with developer mode enabledallowDebugBypass- Allow bypassing checks in debug builds
- Preset configurations:
SecurityCheckOptions.strict(),.relaxed(),.development() DeviceSecurityResultfor detailed security status informationWebFlowStatus.deviceForbiddenfor security check failuresWebFlowResult.deviceForbidden()constructorisDeviceForbiddengetter onWebFlowResult
- Root/Jailbreak detection using
WebFlowController.checkDeviceSecurity()method for standalone security checksenableSecurityCheckandsecurityOptionsparameters inWebFlowConfig- Updated
quickStart()to support security parameters - Comprehensive tests for all security classes
Changed #
WebFlowControllernow accepts optionalsecurityCheckerfor dependency injection- Global
webFlowinstance changed fromconsttofinalto support security checker
1.0.0 - 2026-01-13 #
Added #
- Initial release of WebFlow SDK
WebFlowControllerfor managing web flow sessionsWebFlowConfigfor configuring sessions with:- Custom initial and redirect URLs
- Configurable delays (initialDelay, redirectDelay)
- UI options (showLoadingIndicator, showNavigationControls, showStatusBar)
- JavaScript control
- Custom user agent and headers
WebFlowResultfor handling session outcomes:- Success, Cancelled, and Error statuses
- Session duration tracking
- Last URL tracking
WebFlowThemefor custom styling:WebFlowTheme.primary()- Create theme from primary colorWebFlowTheme.dark()- Dark theme presetWebFlowTheme.light()- Light theme preset
- Lifecycle callbacks:
onInitialPageLoaded- Fired when first page loadsonRedirect- Fired when redirect occursonSessionClosing- Fired before auto-closeonProgressUpdate- Periodic progress updates
WebFlowScreenwidget for displaying the session- Proper timer cleanup on dispose
- Global
webFlowinstance for convenience - Comprehensive unit tests
- Example app with multiple demo scenarios
- Full documentation and README