-
Notifications
You must be signed in to change notification settings - Fork 602
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
LTS version of the Flutter package doesn't respect minimum Android SDK requirements #224
Comments
Yeah, sorry for that. Can you use the development-flutter branch until we release the fix? It was fixed there. And, any suggestions for the |
Unfortunately, using the The output is the same. In fact, this breaks builds on iOS too (but I assume that's because it doesn't see the It's also very possible that I'm doing something wrong while adding the dependency, since I don't often import packages from git. It should look like this, right?
Not that I can think of, but I will try to investigate. Can't think of any logical explanation as to why this happens, so it's likely a bug in Dart. Right now the only workaround I've found is manually patching the version number in the lockfile. |
There are 18 different For LTS versions and other packages, you can either manually edit those files and update the dependencies or create all packages by using the release script under the |
Ah, that's fair. I haven't really deep-dived into the source code so I wasn't aware how it was made/generated, sorry! I will try modifying the package accordingly, thanks! |
Probably worth mentioning in the readme. Adding the Also, in case it wasn't clear, I can confirm iOS minimum deployment target is being respected for LTS |
Thanks. I added this to the Tips. We can also put it to the project |
I also got this issue. A workaround can be: <manifest xmlns:tools="http://schemas.android.com/tools" ....... >
<uses-sdk tools:overrideLibrary="com.arthenica.ffmpegkit.flutter, com.arthenica.ffmpegkit" />
</manifest> Don't forget to add |
This worked for me |
Fixed in |
I'm still having the same issue I want to use min LTS and I've tried different pubspec entries but no luck... Any idea how I can use that? I only want to use conversion to MP4 without using x264, and x265. Which line should I add into pubspec file? I've tried with this (ffmpeg_kit_flutter_min: ^4.5.1-LTS) |
You can't use the caret when specifying the LTS version, as semver will upgrade your dependency to the non-LTS version (which is considered newer). Specify your LTS version as an exact one and check pubspec.lock whether the correct version was downloaded (you can check that currently your lock file most likely points to the non-LTS version). |
Description
Adding the LTS version of the
ffmpeg_kit_flutter
package seems to result in broken behavior in terms of minimum SDK requirements on Android.Expected behavior
App builds fine for the minimum SDK version required by the LTS version of the package.
Current behavior
Android build fails due to the SDK version not being 24, despite the readme specifying 16.
To Reproduce
Here's a reproduction repo: https://github.com/jozsefsallai/flutter-ffmpeg-kit-lts-repro
Environment
Other
I've also tried:
flutter pub cache clean && flutter pub get
rm -rf build && rm -rf android/.gradle
After checking the cached package, I noticed that:
build.gradle
from the package still has a hard requirement for SDK ver 24I think it's also worth noting that adding
ffmpeg_kit_flutter: ^4.5.0-LTS
topubspec.yaml
actually installed 4.5.0 (non-LTS) regardless, so I had to manually editpubspec.lock
to get the right version to install.The text was updated successfully, but these errors were encountered: