Skip to content
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

Support package_info_plus v2 #1352

Closed
1 task done
khoafornia opened this issue Oct 12, 2022 · 3 comments
Closed
1 task done

Support package_info_plus v2 #1352

khoafornia opened this issue Oct 12, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@khoafornia
Copy link

Which packages are you using?

stream_chat, stream_chat_flutter

On what platforms did you experience the issue?

iOS

What version are you using?

5.0.1

What happened?

The latest version of stream_chat_flutter is not compatible with package_info_plus v2

Steps to reproduce

1. Add 'package_info_plus: ^2.0.0' to pubspec.yaml
2. Run 'flutter pub get'
3. Observe error

Supporting info to reproduce

No response

Relevant log output

Running "flutter pub get" in APP_NAME...                     
Because no versions of stream_chat_flutter match >5.0.1 <6.0.0 and stream_chat_flutter 5.0.1 depends on dart_vlc ^0.3.0, stream_chat_flutter ^5.0.1 requires dart_vlc ^0.3.0.
And because no versions of dart_vlc match >0.3.0 <0.4.0, stream_chat_flutter ^5.0.1 requires dart_vlc 0.3.0.
And because dart_vlc 0.3.0 depends on dart_vlc_ffi ^0.1.7 which depends on ffi ^1.0.0, stream_chat_flutter ^5.0.1 requires ffi ^1.0.0.
And because package_info_plus >=2.0.0 depends on package_info_plus_windows ^3.0.0 which depends on ffi ^2.0.1, stream_chat_flutter ^5.0.1 is incompatible with package_info_plus >=2.0.0.
So, because APP_NAME depends on both package_info_plus ^2.0.0 and stream_chat_flutter ^5.0.1, version solving failed.
pub get failed (1; So, because APP_NAME depends on both package_info_plus ^2.0.0 and stream_chat_flutter ^5.0.1, version solving failed.)

Flutter analyze output

No response

Flutter doctor output

[✓] Flutter (Channel stable, 3.3.4, on macOS 12.6 21G115 darwin-arm, locale en-US)
    • Flutter version 3.3.4 on channel stable at /Users/khoa/fvm/versions/3.3.1
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision eb6d86ee27 (8 days ago), 2022-10-04 22:31:45 -0700
    • Engine revision c08d7d5efc
    • Dart version 2.18.2
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/khoa/Library/Android/sdk
    • Platform android-33, build-tools 31.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14A400
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • 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 11.0.12+0-b1504.28-7817840)

[✓] VS Code (version 1.71.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.48.0

[✓] Connected device (3 available)
    • iPhone SE (3rd generation) (mobile) • DEVICE_ID 
• ios            
• com.apple.CoreSimulator.SimRuntime.iOS-16-0 (simulator)
• macOS (desktop)                     
• macos                                
• darwin-arm64   
• macOS 12.6 21G115 darwin-arm
• Chrome (web)                        
• chrome                              
• web-javascript • Google Chrome 106.0.5249.119

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

Code of Conduct

  • I agree to follow this project's Code of Conduct
@khoafornia khoafornia added the bug Something isn't working label Oct 12, 2022
@HayesGordon
Copy link
Contributor

Hi @khoafornia,

This is currently blocked by alexmercerind/dart_vlc#334

In the meantime, you can add the following override:

dependency_overrides:
  ffi: 2.0.1

There does not seem to be any breaking changes in ffi, so the above should be fine, but please evaluate.

We are evaluating what to do long-term if this continues to be a blocker.

@MichaelMarner
Copy link

Upstream dart_vlc has just released an update to support ffi 2

@adasiewiczr
Copy link
Contributor

hey, we released a new SDK version 5.2.0 which resolves the issue.
Let us know if you have any further questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants