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

As a Flutter SDK package, the versions of its sub-SDKs should be fixed #330

Closed
GordonWu opened this issue May 31, 2024 · 1 comment
Closed

Comments

@GordonWu
Copy link

I am using version 5.1.0, but suddenly, in the middle of development, I needed to use flutter clean and flutter pub get due to using another SDK. As a result, I encountered an issue where the Android min SDK version had to be 23 to compile.

Previously, everything built fine until I noticed the error message mentioned the record_android keyword.
I realized that version 5.1.1 had been released and it updated the record_android min SDK from 21 to 23. However, because version 5.1.0 only locks the major version number, it caused the update.

I hope that future releases can have fixed sub-SDK version numbers to avoid inconvenience for external developers.

@llfbandit
Copy link
Owner

I understand your point of view but it will be always this way.
To fix issues on record_android 1.2.1 I had to raise the minimum Android SDK.

Also, you can pin yourself dependencies in your project, stick to lower bounds when using pub upgrade and don't upgrade Flutter in the "middle of development"...

Finally, raising minimum Android SDK is far from a common task. Last time was about a year.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants