Skip to main content

url_flow_sdk_poc 1.2.0 copy "url_flow_sdk_poc: ^1.2.0" to clipboard
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 🌐
    • UrlDomainConfig for configuring allowed/blocked domains
    • UrlValidator for validating URLs against domain policies
    • UrlValidationResult for 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 domains
      • UrlDomainConfig.blocklist() - Block specific domains
      • UrlDomainConfig.production() - Production-ready config
      • UrlDomainConfig.development() - Development-friendly config
  • urlDomainConfig parameter in WebFlowConfig
  • onNavigationBlocked callback 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 urlDomainConfig is provided
  • Updated documentation with URL validation examples

1.1.0 - 2026-01-15 #

Added #

  • Security Features 🔒
    • Root/Jailbreak detection using flutter_jailbreak_detection package
    • Mirrors jail-monkey integration from React Native SDK
    • SecurityCheckOptions for configuring security behavior:
      • blockCompromisedDevices - Block rooted/jailbroken devices (default: true)
      • blockEmulators - Block emulator/simulator environments
      • blockDeveloperMode - Block devices with developer mode enabled
      • allowDebugBypass - Allow bypassing checks in debug builds
    • Preset configurations: SecurityCheckOptions.strict(), .relaxed(), .development()
    • DeviceSecurityResult for detailed security status information
    • WebFlowStatus.deviceForbidden for security check failures
    • WebFlowResult.deviceForbidden() constructor
    • isDeviceForbidden getter on WebFlowResult
  • WebFlowController.checkDeviceSecurity() method for standalone security checks
  • enableSecurityCheck and securityOptions parameters in WebFlowConfig
  • Updated quickStart() to support security parameters
  • Comprehensive tests for all security classes

Changed #

  • WebFlowController now accepts optional securityChecker for dependency injection
  • Global webFlow instance changed from const to final to support security checker

1.0.0 - 2026-01-13 #

Added #

  • Initial release of WebFlow SDK
  • WebFlowController for managing web flow sessions
  • WebFlowConfig for configuring sessions with:
    • Custom initial and redirect URLs
    • Configurable delays (initialDelay, redirectDelay)
    • UI options (showLoadingIndicator, showNavigationControls, showStatusBar)
    • JavaScript control
    • Custom user agent and headers
  • WebFlowResult for handling session outcomes:
    • Success, Cancelled, and Error statuses
    • Session duration tracking
    • Last URL tracking
  • WebFlowTheme for custom styling:
    • WebFlowTheme.primary() - Create theme from primary color
    • WebFlowTheme.dark() - Dark theme preset
    • WebFlowTheme.light() - Light theme preset
  • Lifecycle callbacks:
    • onInitialPageLoaded - Fired when first page loads
    • onRedirect - Fired when redirect occurs
    • onSessionClosing - Fired before auto-close
    • onProgressUpdate - Periodic progress updates
  • WebFlowScreen widget for displaying the session
  • Proper timer cleanup on dispose
  • Global webFlow instance for convenience
  • Comprehensive unit tests
  • Example app with multiple demo scenarios
  • Full documentation and README
0
likes
140
points
10
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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 payment flows, OAuth, and promotional pages.

Repository (GitHub)
View/report issues

Topics

#webview #sdk #security #payments #redirect

License

MIT (license)

Dependencies

flutter, flutter_jailbreak_detection, webview_flutter

More

Packages that depend on url_flow_sdk_poc