-
Notifications
You must be signed in to change notification settings - Fork 207
Closed
Description
Problem
The current protobuf version constraint (^4.2.0) prevents using livekit_client with protobuf 6.x. This blocks projects that depend on other packages requiring protobuf 6.x.
Breaking changes in protobuf 6.x
- PbList constructor is now private -
createRepeated()methods in generated code use$pb.PbList<T>()which no longer works - toProto3Json/fromProto3Json removed from BuilderInfo - These parameters in
BuilderInfoconstructors were removed
Suggested fix
- Update pubspec.yaml protobuf constraint to
>=4.2.0 <7.0.0 - Regenerate proto files with a protobuf 6.x-compatible
protoc-gen-dart- Replace
$pb.PbList<T>()with$core.List<T>increateRepeated()methods - Remove
toProto3Json/fromProto3Jsonparameters fromBuilderInfoconstructors
- Replace
Environment
- Flutter 3.x
- protobuf 6.0.0
- Dart 3.x
Metadata
Metadata
Assignees
Labels
No labels