Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New Platform Logging Stream
FlutterBranchSdk.platformLogsstream to receive Branch SDK log messages in real-timebranch-config.json(enableLoggingandlogLevelkeys) or programmatically throughFlutterBranchSdk.init()VERBOSE,DEBUG,INFO,WARNING,ERROR, andNONE