From 1a1920e7e39223cefb0487bfdb72e3e1244dc47c Mon Sep 17 00:00:00 2001 From: thunderbiscuit Date: Fri, 14 Jun 2024 10:03:50 -0400 Subject: [PATCH] chore: bump minimum supported android version to 24 --- bdk-android/lib/build.gradle.kts | 2 +- .../plugins/UniFfiAndroidPlugin.kt | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/bdk-android/lib/build.gradle.kts b/bdk-android/lib/build.gradle.kts index 3c494554..96d960ae 100644 --- a/bdk-android/lib/build.gradle.kts +++ b/bdk-android/lib/build.gradle.kts @@ -18,7 +18,7 @@ android { compileSdk = 34 defaultConfig { - minSdk = 21 + minSdk = 24 targetSdk = 34 testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" consumerProguardFiles("consumer-rules.pro") diff --git a/bdk-android/plugins/src/main/kotlin/org/bitcoindevkit/plugins/UniFfiAndroidPlugin.kt b/bdk-android/plugins/src/main/kotlin/org/bitcoindevkit/plugins/UniFfiAndroidPlugin.kt index 07b7a288..da3bcea4 100644 --- a/bdk-android/plugins/src/main/kotlin/org/bitcoindevkit/plugins/UniFfiAndroidPlugin.kt +++ b/bdk-android/plugins/src/main/kotlin/org/bitcoindevkit/plugins/UniFfiAndroidPlugin.kt @@ -34,10 +34,10 @@ internal class UniFfiAndroidPlugin : Plugin { environment( // add build toolchain to PATH Pair("PATH", "${System.getenv("PATH")}:${System.getenv("ANDROID_NDK_ROOT")}/toolchains/llvm/prebuilt/$llvmArchPath/bin"), - Pair("CFLAGS", "-D__ANDROID_MIN_SDK_VERSION__=21"), + Pair("CFLAGS", "-D__ANDROID_MIN_SDK_VERSION__=24"), Pair("AR", "llvm-ar"), - Pair("CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER", "aarch64-linux-android21-clang"), - Pair("CC", "aarch64-linux-android21-clang") + Pair("CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER", "aarch64-linux-android24-clang"), + Pair("CC", "aarch64-linux-android24-clang") ) doLast { @@ -57,10 +57,10 @@ internal class UniFfiAndroidPlugin : Plugin { environment( // add build toolchain to PATH Pair("PATH", "${System.getenv("PATH")}:${System.getenv("ANDROID_NDK_ROOT")}/toolchains/llvm/prebuilt/$llvmArchPath/bin"), - Pair("CFLAGS", "-D__ANDROID_MIN_SDK_VERSION__=21"), + Pair("CFLAGS", "-D__ANDROID_MIN_SDK_VERSION__=24"), Pair("AR", "llvm-ar"), - Pair("CARGO_TARGET_X86_64_LINUX_ANDROID_LINKER", "x86_64-linux-android21-clang"), - Pair("CC", "x86_64-linux-android21-clang") + Pair("CARGO_TARGET_X86_64_LINUX_ANDROID_LINKER", "x86_64-linux-android24-clang"), + Pair("CC", "x86_64-linux-android24-clang") ) doLast { @@ -80,10 +80,10 @@ internal class UniFfiAndroidPlugin : Plugin { environment( // add build toolchain to PATH Pair("PATH", "${System.getenv("PATH")}:${System.getenv("ANDROID_NDK_ROOT")}/toolchains/llvm/prebuilt/$llvmArchPath/bin"), - Pair("CFLAGS", "-D__ANDROID_MIN_SDK_VERSION__=21"), + Pair("CFLAGS", "-D__ANDROID_MIN_SDK_VERSION__=24"), Pair("AR", "llvm-ar"), - Pair("CARGO_TARGET_ARMV7_LINUX_ANDROIDEABI_LINKER", "armv7a-linux-androideabi21-clang"), - Pair("CC", "armv7a-linux-androideabi21-clang") + Pair("CARGO_TARGET_ARMV7_LINUX_ANDROIDEABI_LINKER", "armv7a-linux-androideabi24-clang"), + Pair("CC", "armv7a-linux-androideabi24-clang") ) doLast {