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

package dependencies are outdated #75

Closed
apkpotty opened this issue Apr 20, 2022 · 2 comments
Closed

package dependencies are outdated #75

apkpotty opened this issue Apr 20, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@apkpotty
Copy link

Describe the bug
Dependent packages are pinned. eg. agora_rtc_engine is pinned to 4.0.6 and permission_handler 8.0.0+1

To Reproduce
Steps to reproduce the behavior:

  1. Go to pubspec.yaml
  2. add package dependencies

agora_uikit: ^0.0.4
agora_rtc_engine: ^5.0.1
permission_handler: ^9.0.2

  1. Run flutter pub get
  2. Shows the below error

Running "flutter pub get" in xxxxxxxxx ...
Because agora_uikit >=0.0.4 depends on agora_rtc_engine ^4.0.6 and xxxxxxxxx depends on agora_rtc_engine ^5.0.1, agora_uikit >=0.0.4 is forbidden.
So, because xxxxxxxxx depends on agora_uikit ^0.0.4, version solving failed

flutter pub get
Running "flutter pub get" in xxxxxxxxx ...
Because xxxxxxxxx depends on agora_uikit ^0.0.4 which depends on permission_handler ^8.0.0+1, permission_handler ^8.0.0+1 is required.
So, because xxxxxxxxx depends on permission_handler ^9.2.0, version solving failed.

Expected behavior
Expected 'flutter pub get' to complete without error

Desktop (please complete the following information):

  • OS: Windows 11
  • Framework: Flutter
  • Version 2.10.4
@apkpotty apkpotty added the bug Something isn't working label Apr 20, 2022
@Meherdeep
Copy link
Contributor

@apkpotty Looks like you're importing the agora_rtc_engine and permission_handler along with the UIKit, which is already added to the UIKit.

In case you want to use access any other agora_rtc_engine method/callback which is not already added to the UIKit, you can simply call the agora_rtc_engine object and call any method using that. Similarly for any kind of permission you can add it to the enabledPermission array.

You can read more about it here in the Wiki or refer to this blog.

@Meherdeep
Copy link
Contributor

@apkpotty The dependencies have been updated to the latest version in our new release v1.0.0.

Closing this issue for now, feel free to reopen if the issue still persists.

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

2 participants