Skip to content

Commit

Permalink
Downgrade Java and minSdkVersion to broaden device compatibility
Browse files Browse the repository at this point in the history
Signed-off-by: Gergely Morva <[email protected]>
  • Loading branch information
morvagergely committed Dec 19, 2024
1 parent 70b8709 commit 756bbcb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion examples/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ plugins {
}

kotlin {
jvmToolchain(11)
jvmToolchain(8)
}

dependencies {
Expand Down
14 changes: 7 additions & 7 deletions zenoh-kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ if (androidEnabled) {
}

kotlin {
jvmToolchain(11)
jvmToolchain(8)
jvm {
compilations.all {
kotlinOptions.jvmTarget = "11"
kotlinOptions.jvmTarget = "1.8"
}
testRuns["test"].executionTask.configure {
val zenohPaths = "../zenoh-jni/target/$buildMode"
Expand Down Expand Up @@ -78,7 +78,7 @@ kotlin {
if (androidEnabled) {
val androidUnitTest by getting {
dependencies {
implementation(kotlin("test-junit"))
implementation(kotlin("test-junit5"))
}
}
}
Expand Down Expand Up @@ -246,17 +246,17 @@ enum class BuildMode {
fun Project.configureAndroid() {
extensions.configure<com.android.build.gradle.LibraryExtension>("android") {
namespace = "io.zenoh"
compileSdk = 30
compileSdk = 27

ndkVersion = "26.0.10792818"

defaultConfig {
minSdk = 30
minSdk = 27
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

buildTypes {
Expand Down

0 comments on commit 756bbcb

Please sign in to comment.