nodejs-mobile / nodejs-mobile-react-native

Node.js for Mobile Apps React Native plugin
https://nodejs-mobile.github.io
MIT License
174 stars 42 forks source link

Use prebuilt toolchain to compile native modules #1

Closed gmaclennan closed 3 years ago

gmaclennan commented 3 years ago

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?)