getsentry/sentry-dart-plugin

Upgrade http dependency to match the latest version

lucas404x opened this issue · 1 comments

Environment

[!] Flutter (Channel stable, 3.10.1, on Microsoft Windows [Version 10.0.22624.1755], locale en-US)
• Flutter version 3.10.1 on channel stable at C:\Users\Desktop\fvm\default
! Warning: flutter on your path resolves to C:\Users\Desktop\fvm\versions\stable\bin\flutter, which is not inside
your current Flutter SDK checkout at C:\Users\Desktop\fvm\default. Consider adding
C:\Users\Desktop\fvm\default\bin to the front of your path.
! Warning: dart on your path resolves to C:\Users\Desktop\fvm\versions\stable\bin\dart, which is not inside your
current Flutter SDK checkout at C:\Users\Desktop\fvm\default. Consider adding C:\Users\Desktop\fvm\default\bin to
the front of your path.
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision d3d8effc68 (6 days ago), 2023-05-16 17:59:05 -0700
• Engine revision b4fb11214d
• Dart version 3.0.1
• DevTools version 2.23.1
• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly
to perform update checks and upgrades.

[✓] Windows Version (Installed version of Windows is version 10 or higher)

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
• Android SDK at C:\Users\Desktop\AppData\Local\Android\sdk
• Platform android-33, build-tools 33.0.2
• Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694)
• All Android licenses accepted.

[✓] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[✓] Visual Studio - develop for Windows (Visual Studio Build Tools 2019 16.11.26)
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
• Visual Studio Build Tools 2019 version 16.11.33529.622
• Windows 10 SDK version 10.0.19041.0

[✓] Android Studio (version 2022.2)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694)

[✓] VS Code (version 1.78.2)
• VS Code at C:\Users\Desktop\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.64.0

[✓] Connected device (4 available)
• SM A032M (mobile) • R9QT605V0DM • android-arm • Android 11 (API 30)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22624.1755]
• Chrome (web) • chrome • web-javascript • Google Chrome 113.0.5672.127
• Edge (web) • edge • web-javascript • Microsoft Edge 113.0.1774.50

[✓] Network resources
• All expected network resources are available.

! Doctor found issues in 1 category.

Steps to Reproduce

  1. Add both sentry_dart_plugin and http 1.0.0 packages.
  2. Get the dependencies.

Expected Result

Get the dependencies without problem.

Actual Result

[myapp] flutter pub get
Resolving dependencies...
Because sentry_dart_plugin 1.2.0 depends on http ^0.13.5 and no versions of sentry_dart_plugin match >1.2.0 <2.0.0, sentry_dart_plugin ^1.2.0 requires http ^0.13.5.
So, because myapp depends on both http ^1.0.0 and sentry_dart_plugin ^1.2.0, version solving failed.
exit code 1

Thanks @lucas404x
Already opened #125