Skip to content

Native log streaming#169

Merged
shilgapira merged 5 commits intomainfrom
native-log-streaming
Jan 15, 2026
Merged

Native log streaming#169
shilgapira merged 5 commits intomainfrom
native-log-streaming

Conversation

@itaihanski
Copy link
Member

Related Issues

Fixes https://github.com/descope/etc/issues/13711

Description

  • Stream native layer logs into Flutter layer
  • Add helper default loggers
  • Breaking Change: Renamed DescopeLogger properties to level and unsafe

Must

  • Tests
  • Documentation (if applicable)

@itaihanski itaihanski self-assigned this Jan 15, 2026
Copilot AI review requested due to automatic review settings January 15, 2026 10:45
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements native log streaming from iOS/Android SDK layers to the Flutter layer, enabling unified logging across all platforms. It also introduces helper default loggers and makes a breaking change by renaming DescopeLogger constructor parameters.

Changes:

  • Added native log bridging infrastructure via MethodChannel to stream logs from iOS/Android to Flutter
  • Introduced three convenience logger instances: basicLogger, debugLogger, and unsafeLogger
  • Breaking Change: Renamed DescopeLogger property from implicit to explicit level and added new unsafe property (replacing the kDebugMode check)

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
pubspec.yaml Bumped version to 0.9.12
lib/src/sdk/sdk.dart Updated version and initialized native log bridge
lib/src/sdk/config.dart Added unsafe property, helper loggers, and updated documentation
lib/src/internal/others/native_log_bridge*.dart Added native log bridging implementation for supported and unsupported platforms
ios/Classes/DescopePlugin.swift Added log channel handling and FlutterDescopeLogger implementation
ios/Classes/descope-swift-sdk/sdk/SDK.swift Bumped iOS SDK version
ios/Classes/descope-swift-sdk/flows/FlowBridge.swift Improved webview console logging with proper log levels
ios/Classes/descope-swift-sdk/flows/Flow.swift Added convenience initializer for flow ID
android/src/main/kotlin/com/descope/flutter/DescopePlugin.kt Added log channel handling and FlutterDescopeLogger implementation
android/build.gradle Bumped Kotlin SDK dependency version
README.md Updated logger documentation example
CHANGELOG.md Added changelog entry for this version

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

shilgapira
shilgapira previously approved these changes Jan 15, 2026
Co-authored-by: Gil Shapira <gshapira@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link

Copilot AI commented Jan 15, 2026

@itaihanski I've opened a new pull request, #170, to work on those changes. Once the pull request is ready, I'll request review from you.

@shilgapira shilgapira merged commit 8deddf5 into main Jan 15, 2026
9 checks passed
@shilgapira shilgapira deleted the native-log-streaming branch January 15, 2026 11:48
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.

4 participants