Skip to content

Upgrade flutter_rust_bridge to v2.11.1 #237

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Jul 16, 2025
Merged

Conversation

alexlapa
Copy link

@alexlapa alexlapa commented Jul 9, 2025

Synopsis

Upgrade flutter_rust_bridge to v2.11.1

Addtionally:

  • upgrade freezed
  • upgrade ffigen
  • fix android:
FATAL EXCEPTION: main
Process: com.instrumentisto.medea_jason_example, PID: 15686
java.lang.IllegalArgumentException: The VideoSink is not allowed to be null
	at org.webrtc.VideoTrack.addSink(VideoTrack.java:33)
	at com.instrumentisto.medea_flutter_webrtc.proxy.MediaStreamTrackProxy$2.invoke(MediaStreamTrackProxy.kt:92)
	at com.instrumentisto.medea_flutter_webrtc.proxy.MediaStreamTrackProxy$2.invoke(MediaStreamTrackProxy.kt:92)
	at com.instrumentisto.medea_flutter_webrtc.proxy.Proxy.replace(Proxy.kt:29)
	at com.instrumentisto.medea_flutter_webrtc.proxy.RtpReceiverProxy$1.invoke(RtpReceiverProxy.kt:19)
	at com.instrumentisto.medea_flutter_webrtc.proxy.RtpReceiverProxy$1.invoke(RtpReceiverProxy.kt:19)
	at com.instrumentisto.medea_flutter_webrtc.proxy.Proxy.replace(Proxy.kt:29)
	at com.instrumentisto.medea_flutter_webrtc.proxy.RtpTransceiverProxy.syncReceiver(RtpTransceiverProxy.kt:178)
	at com.instrumentisto.medea_flutter_webrtc.proxy.RtpTransceiverProxy.access$syncReceiver(RtpTransceiverProxy.kt:8)
	at com.instrumentisto.medea_flutter_webrtc.proxy.RtpTransceiverProxy$1.invoke(RtpTransceiverProxy.kt:48)
	at com.instrumentisto.medea_flutter_webrtc.proxy.RtpTransceiverProxy$1.invoke(RtpTransceiverProxy.kt:46)
	at com.instrumentisto.medea_flutter_webrtc.proxy.Proxy.replace(Proxy.kt:29)
	at com.instrumentisto.medea_flutter_webrtc.proxy.PeerConnectionProxy.syncTransceivers(PeerConnectionProxy.kt:490)
	at com.instrumentisto.medea_flutter_webrtc.proxy.PeerConnectionProxy.getTransceivers(PeerConnectionProxy.kt:281)
	at com.instrumentisto.medea_flutter_webrtc.proxy.PeerObserver.onTrack$lambda$5(PeerObserver.kt:70)
	at com.instrumentisto.medea_flutter_webrtc.proxy.PeerObserver.$r8$lambda$aszQdE5C4guEIreXi0SRShzSHDU(Unknown Source:0)
	at com.instrumentisto.medea_flutter_webrtc.proxy.PeerObserver$$ExternalSyntheticLambda5.run(D8$$SyntheticClass:0)
	at android.os.Handler.handleCallback(Handler.java:959)
	at android.os.Handler.dispatchMessage(Handler.java:100)
	at android.os.Looper.loopOnce(Looper.java:257)
	at android.os.Looper.loop(Looper.java:342)
	at android.app.ActivityThread.main(ActivityThread.java:9638)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:619)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:929)
I/Process (15686): Sending signal. PID: 15686 SIG: 9

Checklist

  • Created PR:
    • In draft mode
    • Name contains issue reference
    • Has type and k:: labels applied
    • Has assignee
  • Before review:
    • Documentation is updated (if required)
    • Tests are updated (if required)
    • Changes conform code style
    • CHANGELOG entry is added (if required)
    • FCM (final commit message) is posted or updated
    • Draft mode is removed
  • Review is completed and changes are approved
    • FCM (final commit message) is approved
  • Before merge:
    • Milestone is set
    • PR's name and description are correct and up-to-date
    • All temporary labels are removed

@alexlapa alexlapa self-assigned this Jul 9, 2025
@alexlapa alexlapa added enhancement Improvement of existing features or bugfix k::toolchain Applies to changes of project toolchain k::dependencies Pull requests that update a dependency file labels Jul 9, 2025
@alexlapa
Copy link
Author

alexlapa commented Jul 9, 2025

FCM:

Upgrade `flutter_rust_bridge` to 2.11.1 version (#237)

Additionally:
- fix exception in `PeerObserver::onTrack`
- upgrade `freezed` and `freezed_annotation` pub packages to 3.1.0 version
- upgrade `ffigen` pub package to 19.0.0 version

@alexlapa alexlapa marked this pull request as ready for review July 16, 2025 07:30
@alexlapa alexlapa requested a review from tyranron July 16, 2025 07:30
@tyranron tyranron enabled auto-merge (squash) July 16, 2025 10:52
@tyranron tyranron merged commit 82a8909 into main Jul 16, 2025
48 of 52 checks passed
@tyranron tyranron deleted the fix-android-err-from-e2e branch July 16, 2025 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement of existing features or bugfix k::dependencies Pull requests that update a dependency file k::toolchain Applies to changes of project toolchain
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants