From ce68abae0f477969c5ccc21c0340c84e9db08cf8 Mon Sep 17 00:00:00 2001 From: Thaddeus Ternes Date: Mon, 27 Jul 2026 13:59:26 -0500 Subject: [PATCH] Raise droidplug's minSdk to 24 to match the API it uses MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The vendored jni-utils interfaces `FnFunction` and `FnBiFunction` extend `java.util.function.Function` and `java.util.function.BiFunction`, both introduced in API 24, while the library declared `minSdk 23`. Lint flags both as errors, so `./gradlew build` fails on a clean checkout; the declared floor also misrepresents what the library can actually run on. `FnBiFunctionImpl` is registered in the class cache by `platform::init`, so on an API 23 device without core library desugaring resolving it can fail at runtime rather than at build time. Raise the floor to the API level the code requires. The alternative — keeping minSdk 23 and enabling core library desugaring — pushes the same requirement onto every consumer, since desugaring must be enabled in the consuming application too. --- src/droidplug/java/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/droidplug/java/build.gradle b/src/droidplug/java/build.gradle index d005720a..7793f39f 100644 --- a/src/droidplug/java/build.gradle +++ b/src/droidplug/java/build.gradle @@ -12,7 +12,7 @@ android { compileSdk 34 defaultConfig { - minSdk 23 + minSdk 24 versionCode 1 versionName '0.7.3' }