Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downgrade Java and minSdkVersion to broaden device compatibility #330

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading