Skip to content

Conversation

Brazol
Copy link
Contributor

@Brazol Brazol commented Jul 29, 2025

Summary by CodeRabbit

  • New Features
    • Added support for the "call connected" event in push notifications, allowing the app to handle this event type.
  • Chores
    • Updated the dependency version for improved compatibility with the latest flutter_callkit_incoming package, including Android 14 fixes for ringing notifications and lock screen handling.

@Brazol Brazol requested a review from a team as a code owner July 29, 2025 11:45
Copy link

coderabbitai bot commented Jul 29, 2025

Walkthrough

A new ActionCallConnected event class was introduced and integrated into the call event handling logic. The plugin's initialization now prefers using a shared CallkitNotificationManager from FlutterCallkitIncomingPlugin if available. Additionally, the dependency on flutter_callkit_incoming was updated to allow newer compatible versions.

Changes

Cohort / File(s) Change Summary
New CallKit Event Class
packages/stream_video/lib/src/push_notification/call_kit_events.dart
Added ActionCallConnected event class, a subclass of CallKitEvent, representing a call connected event.
CallKit Event Mapping Logic
packages/stream_video_push_notification/lib/src/stream_video_push_notification.dart
Added support for mapping Event.actionCallConnected to the new ActionCallConnected event in event conversion.
Plugin Initialization Logic
packages/stream_video_push_notification/android/src/main/kotlin/io/getstream/video/flutter/stream_video_push_notification/StreamVideoPushNotificationPlugin.kt
Modified initialization to prefer an existing CallkitNotificationManager from FlutterCallkitIncomingPlugin.
Dependency Version Update
packages/stream_video_push_notification/pubspec.yaml
Updated flutter_callkit_incoming dependency from 2.5.2 to ^2.5.5.
Changelog Updates
packages/stream_video/CHANGELOG.md, packages/stream_video_flutter/CHANGELOG.md, packages/stream_video_push_notification/CHANGELOG.md
Added unreleased changelog entries documenting dependency updates and new call event support.

Sequence Diagram(s)

sequenceDiagram
    participant CallEvent
    participant Extension
    participant CallKitEvent

    CallEvent->>Extension: toCallKitEvent()
    alt Event.actionCallConnected
        Extension->>CallKitEvent: ActionCallConnected(data)
    else Other events
        Extension->>CallKitEvent: Other CallKitEvent
    end
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Suggested reviewers

  • renefloor

Poem

In the warren of code, a new event appears,
"Call Connected!" the rabbit cheers.
Plugins now share, dependencies grow,
With hop and a skip, the versions flow.
Across the fields, the signals connect—
Another hop forward, what did you expect? 🐇✨

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a24e124 and 0b54ebb.

📒 Files selected for processing (3)
  • packages/stream_video/CHANGELOG.md (1 hunks)
  • packages/stream_video_flutter/CHANGELOG.md (1 hunks)
  • packages/stream_video_push_notification/CHANGELOG.md (1 hunks)
✅ Files skipped from review due to trivial changes (3)
  • packages/stream_video_push_notification/CHANGELOG.md
  • packages/stream_video/CHANGELOG.md
  • packages/stream_video_flutter/CHANGELOG.md
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (6)
  • GitHub Check: analyze
  • GitHub Check: build
  • GitHub Check: stream_video_noise_cancellation
  • GitHub Check: stream_video_flutter
  • GitHub Check: stream_video
  • GitHub Check: stream_video_push_notification
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/update-callkit-incoming-dependency

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@Brazol Brazol changed the title chore(push): update callkit_incoming dependency chore(llc, push): update callkit_incoming dependency Jul 29, 2025
@Brazol Brazol changed the title chore(llc, push): update callkit_incoming dependency chore(llc): update callkit_incoming dependency Jul 29, 2025
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
packages/stream_video/lib/src/push_notification/call_kit_events.dart (1)

134-143: Fix the documentation comment.

The class structure correctly follows the established pattern, but the documentation comment on line 138 appears to be copied from ActionCallCallback and is incorrect.

-  /// The call data associated with the call that was called back.
+  /// The call data associated with the call that was connected.
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 3f97585 and a24e124.

📒 Files selected for processing (4)
  • packages/stream_video/lib/src/push_notification/call_kit_events.dart (1 hunks)
  • packages/stream_video_push_notification/android/src/main/kotlin/io/getstream/video/flutter/stream_video_push_notification/StreamVideoPushNotificationPlugin.kt (2 hunks)
  • packages/stream_video_push_notification/lib/src/stream_video_push_notification.dart (1 hunks)
  • packages/stream_video_push_notification/pubspec.yaml (1 hunks)
🔇 Additional comments (3)
packages/stream_video_push_notification/pubspec.yaml (1)

19-19: Dependency version verification passed

Version 2.5.5 of flutter_callkit_incoming exists on pub.dev and is currently the latest release. Its Dart (>=2.18.0 <4.0.0) and Flutter (>=1.20.0) constraints align with our project’s requirements. No further action needed.

packages/stream_video_push_notification/android/src/main/kotlin/io/getstream/video/flutter/stream_video_push_notification/StreamVideoPushNotificationPlugin.kt (2)

16-16: LGTM! Import added for shared instance access.

The import enables access to the shared CallkitNotificationManager instance from FlutterCallkitIncomingPlugin.


31-31: Excellent improvement in resource management.

The updated initialization logic correctly prioritizes reusing an existing CallkitNotificationManager instance from FlutterCallkitIncomingPlugin before creating a new one. This prevents resource duplication and potential conflicts between plugin instances.

@@ -557,6 +557,7 @@ extension on CallEvent {
Event.actionCallEnded => ActionCallEnded(data: toCallData()),
Event.actionCallTimeout => ActionCallTimeout(data: toCallData()),
Event.actionCallCallback => ActionCallCallback(data: toCallData()),
Event.actionCallConnected => ActionCallConnected(data: toCallData()),
Copy link

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

LGTM! Event mapping follows established pattern.

The addition of Event.actionCallConnected => ActionCallConnected(data: toCallData()) is consistent with the existing event mapping pattern and correctly extracts call data.


🏁 Script executed:

#!/bin/bash
# Description: Verify ActionCallConnected class is defined and imported

# Search for ActionCallConnected class definition
ast-grep --pattern 'class ActionCallConnected extends CallKitEvent {
  $$$
}'

# Check if it's imported in the current file
rg -A 2 -B 2 "ActionCallConnected" packages/stream_video_push_notification/lib/src/stream_video_push_notification.dart

Length of output: 514


🏁 Script executed:

#!/bin/bash
# Search for definition of ActionCallConnected across the repository
rg -n "class ActionCallConnected"

# Search for any references to ActionCallConnected to locate its definition context
rg -n "ActionCallConnected"

Length of output: 749


🏁 Script executed:

#!/bin/bash
# Verify that ActionCallConnected (and CallKitEvent) are imported in the Push Notification file

rg -n "import .*call_kit_events" packages/stream_video_push_notification/lib/src/stream_video_push_notification.dart

# Show the first 30 lines to confirm imports
head -n 30 packages/stream_video_push_notification/lib/src/stream_video_push_notification.dart

Length of output: 1393


🏁 Script executed:

#!/bin/bash
# Show exports in the main entrypoint of stream_video package
head -n 200 packages/stream_video/lib/stream_video.dart

# Specifically look for exporting call_kit_events
rg -n "export .*call_kit_events" packages/stream_video/lib/stream_video.dart

Length of output: 2138


Add missing import for CallKit events

It looks like the new ActionCallConnected (and the other ActionCall* classes) are defined in
package:stream_video/src/push_notification/call_kit_events.dart but that file isn’t imported. Without it the switch case won’t compile.

Please update packages/stream_video_push_notification/lib/src/stream_video_push_notification.dart to include:

 import 'package:stream_video_push_notification/stream_video_push_notification_platform_interface.dart';
+import 'package:stream_video/src/push_notification/call_kit_events.dart';
 
 import 'stream_video_push_params.dart';
🤖 Prompt for AI Agents
In
packages/stream_video_push_notification/lib/src/stream_video_push_notification.dart
at line 560, the switch case uses ActionCallConnected and other ActionCall*
classes which are defined in
package:stream_video/src/push_notification/call_kit_events.dart but this file is
not imported. To fix this, add an import statement for call_kit_events.dart at
the top of the file to ensure these classes are recognized and the code compiles
correctly.

Copy link

codecov bot commented Jul 29, 2025

Codecov Report

❌ Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 4.63%. Comparing base (3f97585) to head (0b54ebb).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...deo/lib/src/push_notification/call_kit_events.dart 0.00% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##            main   #1034      +/-   ##
========================================
- Coverage   4.63%   4.63%   -0.01%     
========================================
  Files        574     574              
  Lines      38635   38638       +3     
========================================
  Hits        1789    1789              
- Misses     36846   36849       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Brazol Brazol enabled auto-merge (squash) July 31, 2025 14:55
@Brazol Brazol disabled auto-merge July 31, 2025 14:55
@Brazol Brazol merged commit 9b05c68 into main Jul 31, 2025
15 of 17 checks passed
@Brazol Brazol deleted the chore/update-callkit-incoming-dependency branch July 31, 2025 14:55
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.

2 participants