Skip to content

Commit e57c92c

Browse files
committed
Fixed build warnings on android
1 parent b43a347 commit e57c92c

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

android/build.gradle.kts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+
13
plugins {
24
id("com.android.library")
35
id("org.jetbrains.kotlin.android")
46
}
57

68
android {
79
namespace = "app.tauri.share"
8-
compileSdk = 34
10+
compileSdk = 35
911

1012
defaultConfig {
11-
minSdk = 24
12-
targetSdk = 34
13+
minSdk = 21
1314

1415
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
1516
consumerProguardFiles("consumer-rules.pro")
@@ -28,8 +29,10 @@ android {
2829
sourceCompatibility = JavaVersion.VERSION_1_8
2930
targetCompatibility = JavaVersion.VERSION_1_8
3031
}
31-
kotlinOptions {
32-
jvmTarget = "1.8"
32+
kotlin {
33+
compilerOptions {
34+
jvmTarget = JvmTarget.JVM_1_8
35+
}
3336
}
3437
}
3538

0 commit comments

Comments
 (0)