Skip to content

Commit

Permalink
Disabling java code for android publications (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
DariusIMP authored Jan 6, 2025
1 parent 8e4927c commit c7c94e2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion zenoh-java/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ kotlin {
val zenohPaths = "../zenoh-jni/target/$buildMode"
jvmArgs("-Djava.library.path=$zenohPaths")
}
withJava()
if (!androidEnabled) {
withJava() // Adding java to a kotlin lib targeting android is incompatible
// The java code is only meant for testing and is non-critical for the android publication.
// Therefore, when enabling android we disable the java code.
}
}
if (androidEnabled) {
androidTarget {
Expand Down

0 comments on commit c7c94e2

Please sign in to comment.