-
Notifications
You must be signed in to change notification settings - Fork 69
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
hard code ndk version and pub upgrade #1573
Conversation
0c82ef1
to
05ee931
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, although I'm a bit concerned about hard-coding the NDK version. How will we remember to keep it updated?
Are you able to confirm whether or not upgrading the packages fixes the build issue? Or does it require both the NDK version change and package upgrades? If so, I'd lean more towards reverting the NDK version changes. I believe the NDK warnings are simply warnings, and they don't actually affect the final build! |
It works without updating the ndk version. It just creates warnings. But I think the it may affect performance of the built app? A bunch of the dependancies require version 25.x:
These dependancies might not get compiled if we don't meet the NDK version requirement, instead they will get run in an interpreter, making the performance worse. I don't really know, that's just my understanding after doing a few minutes of googling. The warnings will remind us when we have to update the NDK version in the build.gradle file. If we put the NDK version in build.gradle then thunder can pick which NDK version to use. If we don't then it will be up to someones flutter installation to pick the version. I just updated to flutter stable and it looks like the NDK version is 23.x, which isn't new enough for the dependancies. |
I'm good with whatever, just let me know what you want to do, and ill update the PR. |
Thanks for the reply - in this case, I think it might be okay if we hard-code the NDK version then (assuming that there will be warnings that show up if we require a higher NDK version). |
I just updated my flutter to the latest stable version. With the latest stable version,
flutter.ndkVersion
is 23.x.This creates a bunch of warnings when launching thunder on android because a bunch of dependancies require ndkVersion 25.1.8937393 or greater. So I think the right way to handle this is to write the ndk version in the build.gradle file and not get it from flutter.
Also, I haven't been able to build the app for android after switching to flutter stable.
flutter pub upgrade
fixed it.