From b85d3b4d939ad7c6e6b356e8426e941d8a613d61 Mon Sep 17 00:00:00 2001 From: Prashanth Swaminathan Date: Thu, 8 Aug 2024 13:34:30 -0700 Subject: [PATCH] Use NDK r27 and package riscv64 artifacts Explicitly set NDK r27 to ensure that the latest stable NDK release is used, as opposed to the default NDK version specified by the AGP release. Further, explicitly mark 'riscv64' as a desired ABI when building, so that AAR artifacts package riscv64 binaries. --- gradle/publishing_aar.gradle | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gradle/publishing_aar.gradle b/gradle/publishing_aar.gradle index faab9c7..79bfdb1 100644 --- a/gradle/publishing_aar.gradle +++ b/gradle/publishing_aar.gradle @@ -2,6 +2,16 @@ apply plugin: 'maven-publish' apply plugin: 'signing' android { + // Explicitly set the NDK release to ensure we use the latest stable, as + // opposed to the default NDK tied to the AGP version. + ndkVersion = '27.0.12077973' + defaultConfig { + ndk { + // Explicitly enable the 'riscv64' ABI with 'abiFilters' as it is + // not part of the default ABI set today. + abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64', 'riscv64' + } + } publishing { singleVariant("release") { withSourcesJar()