flutterjanus/flutter_janus_client

Bump http version to 1.0.0

Closed this issue · 2 comments

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

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

dependency_overrides:
  http: ^1.0.0