titanium-sdk icon indicating copy to clipboard operation
titanium-sdk copied to clipboard

chore(android): ndk update

Open m1ga opened this issue 4 months ago • 0 comments

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:

  • build a module
  • ndk22 will install during first build
  • module should build fine
  • app with module should run

m1ga avatar Feb 15 '24 13:02 m1ga