From 43fca3780fa4531d3eb11a63e762ede75bd7d2ff Mon Sep 17 00:00:00 2001 From: Aleksandar Apostolov Date: Fri, 7 Aug 2026 10:22:56 +0200 Subject: [PATCH] fix: target JVM 11 bytecode instead of 17 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Revert sourceCompatibility/targetCompatibility and kotlinOptions.jvmTarget from 17 back to 11 across all modules (undoing the 2024 "Use Java Version 17" sweep). stream-result emitted JVM 17 bytecode since 1.3.3, which JVM 11 consumers cannot inline its inline functions from — breaking stream-chat (JVM 11) on any bump past 1.3.2. Targeting 11 is the compatible floor: consumable by both JVM 11 (Chat) and JVM 17 (Video) modules. The JDK 17 build toolchain is unchanged; only the emitted bytecode target is lowered. --- app/build.gradle.kts | 4 ++-- build.gradle.kts | 2 +- stream-result-call-retrofit/build.gradle.kts | 4 ++-- stream-result-call/build.gradle.kts | 4 ++-- stream-result/build.gradle.kts | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 20557ef..701a479 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -36,8 +36,8 @@ android { } compileOptions { - sourceCompatibility = JavaVersion.VERSION_17 - targetCompatibility = JavaVersion.VERSION_17 + sourceCompatibility = JavaVersion.VERSION_11 + targetCompatibility = JavaVersion.VERSION_11 } lint { diff --git a/build.gradle.kts b/build.gradle.kts index e84d8a7..cb6d0c7 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -20,7 +20,7 @@ apiValidation { subprojects { tasks.withType().all { - kotlinOptions.jvmTarget = JavaVersion.VERSION_17.toString() + kotlinOptions.jvmTarget = JavaVersion.VERSION_11.toString() } apply(plugin = rootProject.libs.plugins.spotless.get().pluginId) diff --git a/stream-result-call-retrofit/build.gradle.kts b/stream-result-call-retrofit/build.gradle.kts index 39ffd05..2ae7377 100644 --- a/stream-result-call-retrofit/build.gradle.kts +++ b/stream-result-call-retrofit/build.gradle.kts @@ -57,8 +57,8 @@ android { } compileOptions { - sourceCompatibility = JavaVersion.VERSION_17 - targetCompatibility = JavaVersion.VERSION_17 + sourceCompatibility = JavaVersion.VERSION_11 + targetCompatibility = JavaVersion.VERSION_11 } } diff --git a/stream-result-call/build.gradle.kts b/stream-result-call/build.gradle.kts index 7811418..0871864 100644 --- a/stream-result-call/build.gradle.kts +++ b/stream-result-call/build.gradle.kts @@ -105,8 +105,8 @@ android { } compileOptions { - sourceCompatibility = JavaVersion.VERSION_17 - targetCompatibility = JavaVersion.VERSION_17 + sourceCompatibility = JavaVersion.VERSION_11 + targetCompatibility = JavaVersion.VERSION_11 } } dependencies { diff --git a/stream-result/build.gradle.kts b/stream-result/build.gradle.kts index 864c4f8..b29812e 100644 --- a/stream-result/build.gradle.kts +++ b/stream-result/build.gradle.kts @@ -93,8 +93,8 @@ android { } compileOptions { - sourceCompatibility = JavaVersion.VERSION_17 - targetCompatibility = JavaVersion.VERSION_17 + sourceCompatibility = JavaVersion.VERSION_11 + targetCompatibility = JavaVersion.VERSION_11 } }