Uh oh!
There was an error while loading. Please reload this page.
Use prebuilt toolchain to compile native modules - #21
Conversation
Uh oh!
There was an error while loading. Please reload this page.
gmaclennan
commented
Oct 1, 2021
@jaimecbernardo looks like you have limited time for this module right now. What's the maintenance plan going forwards? Maybe key users like ourselves @digidem and @staltz could help? |
staltz
commented
Oct 1, 2021
PR looks good but I don't have a lot of confidence with this file specifically, and I haven't tested it but I trust that @gmaclennan has. I also agree that we need active maintenance for nodejs-mobile, it's a critical component for https://manyver.se and for @digidem software as well. I would be willing to be a maintainer but ideally someone with C++ and compilers expertise should lead, although I can help with basic housekeeping and the easy PRs. |
gmaclennan
commented
Oct 1, 2021
I've tested in so far as Mapeo Mobile has been built with this change for a while now using nodejs-mobile-react-native@0.6.1. We are compiling leveldown, and it is working. |
jaimecbernardo
commented
Oct 5, 2021
Thank you for the interest. |
staltz
commented
Oct 5, 2021
@jaimecbernardo Yes! :) |
jaimecbernardo
commented
Oct 6, 2021
@staltz@gmaclennan , |
gmaclennan
commented
Oct 6, 2021
@jaimecbernardo yes that makes sense to me. I don't think I would have the time to manage a community around this, but I could review and merge pull requests, especially for keeping this working in new React Native releases. I don't know enough about the patches / modifications to Node in the nodejs-mobile repo, but have some idea of the nodejs-mobile-react-native code and how that works, on Android, at least. Having reviewed a few different options going forwards (Java/Swift, C++, Rust), re-using the same Node Javascript code across desktop and mobile makes the most sense for us, so we'll likely be sticking with nodejs-mobile for a while. |
staltz
commented
Oct 6, 2021
Yes, the new org makes a lot of sense since JaneaSystems has many other repos. |
jaimecbernardo
commented
Oct 20, 2021
@staltz , Sorry for taking this long. We've added you to admin a team in https://github.com/nodejs-mobile that can admin those repos and should be able to create other repos as well. You should be able to add more people as needed and do any required operation on the repos. We'll add a mention to the repos in janeasystems to link to the new org. |
jaimecbernardo
commented
Oct 20, 2021
And thank you for picking this up :) |
staltz
commented
Oct 21, 2021
Hey @jaimecbernardo, thank you! I trust @gmaclennan (worked with/for him before) so I'll add him as admin too.
I would need publish access to the npm packages, too, my username on npm is also And it seems nodejs-mobile-gyp also has to be moved to the new org. Maybe nodejs-mobile-module-compat too. |
staltz
commented
Oct 21, 2021
jaimecbernardo
commented
Oct 21, 2021
Thank you! |
jaimecbernardo
commented
Oct 21, 2021
You're an owner now. |
staltz
commented
Oct 21, 2021
Thanks!
NPM also has orgs, that may be useful, but not necessary. |
gmaclennan
commented
Oct 21, 2021
Thanks all! @jaimecbernardo how do you want to handle issues for nodejs-mobile going forwards? I see they are still in https://github.com/JaneaSystems/nodejs-mobile and in the @nodejs-mobile org there are no issues because everything is a fork. |
staltz
commented
Oct 21, 2021
Perhaps one solution to this is:
|
jaimecbernardo
commented
Oct 26, 2021
For contractual reasons, we have to keep the original repos in our org for some time and that's why we can't transfer the repos at this moment. |
jaimecbernardo
commented
Oct 26, 2021
@staltz , I think access has been given. Could you please verify? |
staltz
commented
Oct 26, 2021
Understandable, the solution you propose sounds fine by me!
Yes! Thank you. Verified for However, not for |
staltz
commented
Oct 26, 2021
@gmaclennan Can you replicate this PR on https://github.com/nodejs-mobile/nodejs-mobile-react-native ? I'm going to make a release of |
jaimecbernardo
commented
Oct 26, 2021
Our mistake. |
gmaclennan
commented
Oct 26, 2021
nodejs-mobile/nodejs-mobile-react-native#1 Thanks all! |
jaimecbernardo
commented
Oct 26, 2021
Yes, I think there was a fix for that committed (?) : JaneaSystems/nodejs-mobile@73d5d37 |
staltz
commented
Oct 26, 2021
Yes, precisely that. I was about to (attempt to) fix it myself and was glad it was already fixed. @gmaclennan You can close this PR now. 🎉 |

The Android build step was making a standalone toolchain for compiling native modules. Since NDK r19 standalone toolchains are obsolete since prebuilt toolchains are included in the NDK distribution.
This PR changes the build configuration to use the NDK prebuilt toolchains when compiling native modules. It requires using NDK r19 or newer (which I think is required for building this module now anyway?)