Skip to content

Release 8.11.0#487

Merged
RodrigoSMarques merged 6 commits intomasterfrom
dev
Jan 6, 2026
Merged

Release 8.11.0#487
RodrigoSMarques merged 6 commits intomasterfrom
dev

Conversation

@RodrigoSMarques
Copy link
Owner

New Platform Logging Stream

  • Added FlutterBranchSdk.platformLogs stream to receive Branch SDK log messages in real-time
  • Enable logging via branch-config.json (enableLogging and logLevel keys) or programmatically through FlutterBranchSdk.init()
  • Supports log levels: VERBOSE, DEBUG, INFO, WARNING, ERROR, and NONE
  • Example usage:
    FlutterBranchSdk.platformLogs.listen((logMessage) {
      debugPrint('Branch Log: $logMessage');
    });

feat: Add platform logging stream and log level configuration

- Introduced `FlutterBranchSdk.platformLogs` stream for real-time log messages from the Branch SDK.
- Added `logLevel` configuration to `branch-config.json` for controlling log verbosity.
- Updated documentation to include examples for logging configuration in different environments.
- Enhanced Android and iOS implementations to support logging levels and stream handling.
- Updated README and CHANGELOG to reflect new features and usage instructions.
- Enhanced FlutterBranchSdkPlugin registration to clean up existing channels and handlers to prevent duplicates.
- Added deinitialization logic to remove stream handlers and channels when the plugin instance is deallocated.
- Refactored FlutterBranchSdkMethodChannel to use static channels and added initialization checks to prevent method calls before SDK initialization.
- Improved error handling and validation in method calls to ensure proper SDK usage.
Introduced a private _validateUrl method in FlutterBranchSdkMethodChannel to enforce stricter URL validation for handleDeepLink. Updated related tests to cover validation scenarios and improved debug logging in home_page.dart to include timestamps.
Refactored the URL validation logic to remove unnecessary null checks for host and path, relying on empty string checks instead.
- Added buffer size limits and dropped message warnings to log stream handlers on Android and iOS to prevent unbounded memory usage.
- Updated iOS plugin to prioritize JSON config for logging, and improved debug output formatting.
- Clarified in documentation and web implementation that platform logs are only available on iOS and Android, not on Web.
- Updated iOS example project configuration for better deep linking and plugin registration.
@RodrigoSMarques RodrigoSMarques merged commit 9b65aa6 into master Jan 6, 2026
4 checks passed
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.

1 participant