flutterjanus / flutter_janus_client

A plugin that allows the flutter app to communicate with a Janus server using different transport mechanisms, such as WebSocket and HTTP(rest). It features a developer-friendly api to interact with various WebRTC Janus Plugins. Hence, it can be considered as a swiss-knife for WebRTC solutions.
MIT License
134 stars 76 forks source link

Bump http version to 1.0.0 #137

Closed botraunak closed 1 year ago

botraunak commented 1 year ago

Adding janus_client on dart 3.0.5 doesn't work

The current Dart SDK version is 3.0.5.

Because janus_client >=2.1.0-beta <2.2.0 depends on http ^0.13.3 and janus_client <2.1.0-beta doesn't support
  null safety, janus_client <2.2.0 requires http ^0.13.3.
And because janus_client >=2.2.0 depends on http ^0.13.4 and google_fonts >=4.0.5 depends on http ^1.0.0,
  google_fonts >=4.0.5 is incompatible with janus_client.
So, because convo_ai_app depends on both google_fonts ^5.1.0 and janus_client any, version solving failed.

The lower bound of "sdk: '>=2.7.0 <3.0.0'" must be 2.12.0 or higher to enable null safety.
For details, see https://dart.dev/null-safety
(base) ➜  convo_ai_app git:(feat/janus) flutter pub add janus_client
botraunak commented 1 year ago

Anyone looking to fix this temporarily can use this in pubspec.yaml unless the http dependency is bumped

dependency_overrides:
  http: ^1.0.0
shivanshtalwar commented 1 year ago

fixed @botraunak