Skip to content

feat: add QoraScope.auto() for one-call lifecycle and connectivity listeners (#24) - #36

Open
donfreddy wants to merge 1 commit into
mainfrom
feat/qora-scope-auto-24
Open

feat: add QoraScope.auto() for one-call lifecycle and connectivity listeners (#24)#36
donfreddy wants to merge 1 commit into
mainfrom
feat/qora-scope-auto-24

Conversation

@donfreddy

Copy link
Copy Markdown
Collaborator

Closes #24

Description

Adds QoraScope.auto() convenience constructor that automatically wires FlutterLifecycleManager and FlutterConnectivityManager for automatic refetch on app resume and connectivity restore.

Changes

  • QoraScope.auto() named constructor in qora_scope.dart
    • Accepts enableLifecycle, enableConnectivity, and minBackgroundDuration params
    • Delegates to the default constructor with auto-created managers
  • Tests (9 test cases) covering:
    • Client provision via auto()
    • Connectivity manager binding
    • Disabling individual listeners
    • Backward compatibility with manual wiring
  • Docs updated in en/ and fr/ for setup and QoraScope API reference
  • Changelog updated in flutter package

@donfreddy donfreddy self-assigned this Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add QoraScope.auto() for one-call lifecycle and connectivity listeners

1 participant