llfbandit / record

Audio recorder from microphone to a given file path. No external dependencies, MediaRecorder is used for Android an AVAudioRecorder for iOS.
https://pub.dev/packages/record
233 stars 196 forks source link

upgrade web dependecy to ^1.0.0. #389

Closed Ali-Fadaei closed 1 month ago

Ali-Fadaei commented 1 month ago

current web: 0.5.1 dependency got incompatibly error with some other packages.

llfbandit commented 1 month ago

Current dependency is already set at web: ">=0.5.1 <2.0.0" Please ensure you upgraded to record_web: 1.1.2 in pubspec.lock file.

Ali-Fadaei commented 1 month ago

Screenshot 2024-08-27 115016

thanks for response.

why it won't set to 1.1.2 automatically? pubspec.lock file is generated by pub get and can't be edited when CI/CD builds the App.

llfbandit commented 1 month ago

Running pub get doesn't upgrade your dependencies. You need to use pub upgrade for this, especially for transitive dependencies.

Like in this issue, record package hasn't changed while sub-packages have.

With, pub get, Your CI just takes the lock file to retrieve the dependencies and stay constitent with the state of your development. This is absolutly normal, you don't want any diff between what you had on your side and what you will push to your users.

Note: each time I release record root package, I try to update the dependencies to enforce a seamless upgrade for you.