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

Get ndkVersion from main projects' gradle config #14

Merged
merged 1 commit into from
May 19, 2022

Conversation

siepra
Copy link

@siepra siepra commented Mar 21, 2022

I was facing a problem in my main project when syncing with gradle files

(androidProjectResult.androidProject::getNdkVersion, "") must not be null

This PR is a fix for that

@siepra
Copy link
Author

siepra commented Mar 21, 2022

@staltz is it ok to add this line in build.gradle? Is there a reason why it was missing ndkVersion?

@gmaclennan
Copy link

I have not tested this, but I think this is a good change to make. Without this nodejs-mobile will use the default version of NDK to build native modules, not the ndk version specified in the project app/build.gradle. This used to cause us many headaches with CI whenever the Android SDK was updated. We fix this in our project with a patch that hard-codes the android.ndkVersion in the same place that this PR updates it. This looks to me like a good solution to this issue.

@staltz staltz merged commit c2df7c5 into nodejs-mobile:main May 19, 2022
@staltz
Copy link
Member

staltz commented May 19, 2022

Yes, it's a good PR! Sorry it took a while to review and merge.

@staltz
Copy link
Member

staltz commented May 19, 2022

Released version 0.8.1

@siepra siepra deleted the fix/specify-ndk-version-in-gradle branch September 15, 2022 16:37
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

Successfully merging this pull request may close these issues.

None yet

3 participants