@@ -3,7 +3,8 @@ val libraryVersion: String by project
33
44plugins {
55 id(" com.android.library" )
6- id(" org.jetbrains.kotlin.android" ) version " 1.6.10"
6+ kotlin(" android" )
7+ kotlin(" plugin.serialization" )
78
89 id(" maven-publish" )
910 id(" signing" )
@@ -16,11 +17,11 @@ repositories {
1617}
1718
1819android {
20+ namespace = " org.lightningdevkit.ldknode"
1921 compileSdk = 34
2022
2123 defaultConfig {
2224 minSdk = 21
23- targetSdk = 31
2425 testInstrumentationRunner = " androidx.test.runner.AndroidJUnitRunner"
2526 consumerProguardFiles(" consumer-rules.pro" )
2627 }
@@ -32,6 +33,15 @@ android {
3233 }
3334 }
3435
36+ compileOptions {
37+ sourceCompatibility = JavaVersion .VERSION_1_8
38+ targetCompatibility = JavaVersion .VERSION_1_8
39+ }
40+
41+ kotlinOptions {
42+ jvmTarget = " 1.8"
43+ }
44+
3545 publishing {
3646 singleVariant(" release" ) {
3747 withSourcesJar()
@@ -46,13 +56,9 @@ dependencies {
4656 implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4" )
4757 implementation(" androidx.appcompat:appcompat:1.4.0" )
4858 implementation(" androidx.core:core-ktx:1.7.0" )
59+ implementation(" org.jetbrains.kotlinx:atomicfu:0.23.1" )
60+ implementation(" org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.0" )
4961 api(" org.slf4j:slf4j-api:1.7.30" )
50-
51- androidTestImplementation(" com.github.tony19:logback-android:2.0.0" )
52- androidTestImplementation(" androidx.test.ext:junit:1.1.3" )
53- androidTestImplementation(" androidx.test.espresso:espresso-core:3.4.0" )
54- androidTestImplementation(" org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4" )
55- androidTestImplementation(" org.jetbrains.kotlin:kotlin-test-junit" )
5662}
5763
5864afterEvaluate {
0 commit comments