tidev / titanium-sdk

🚀 Native iOS and Android Apps with JavaScript
https://titaniumsdk.com/
Other
2.76k stars 1.21k forks source link

chore(android): ndk update #13992

Closed m1ga closed 5 months ago

m1ga commented 9 months ago

Another small update to bring the Android toolchain to higher versions. Can be merged with https://github.com/tidev/titanium-sdk/pull/13966 (cmake, checkstyle update).

Current NDK is 21. This will update the module build to use 22.1.7171670.

I had to add APP_LD=deprecated

LLD is now used by default. If your build is not yet compatible with LLD, you can continue using the deprecated linkers, set APP_LD=deprecated for ndk-build, ANDROID_LD=deprecated for CMake, or use an explicit -fuse-ld=gold or -fuse-ld=bfd in your custom build system.

so something we'll need to look out for in a future update.

NDK is installed the first time you've build a module. Gradle will automatically use 21, using the build.gradle file we can override that version. You can even put a build.gradle into your module and use a different NDK version if needed.

Tests: