Package Android binaries, enable desugaring, bump min API level.

FIXME: Desugaring ConcurrentHashMap.newKeySet() requires
desugar_jdk_libs version 2, which requires bumping the Android Gradle
plugin version. This seems to have broken Gradle Witness.
This commit is contained in:
akwizgran
2023-09-05 14:50:23 +01:00
parent bf2de56abe
commit 7b65c63bc9
15 changed files with 65 additions and 624 deletions

View File

@@ -24,7 +24,9 @@ android {
}
defaultConfig {
minSdkVersion 21
// FIXME: sqlite-jdbc-crypt uses __register_atfork which is only available on API >= 23.
// We might be able to solve this by recompiling (or asking upstream to recompile)
minSdkVersion 23
targetSdkVersion 33
versionCode 10506
versionName "1.5.6"
@@ -78,6 +80,7 @@ android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
coreLibraryDesugaringEnabled true
}
testOptions {
@@ -143,6 +146,8 @@ dependencies {
compileOnly 'javax.annotation:jsr250-api:1.0'
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.3'
testImplementation project(path: ':bramble-api', configuration: 'testOutput')
testImplementation project(path: ':bramble-core', configuration: 'testOutput')