From bf7ed40995a250ebb0a8270cf0de56c3f4f7a403 Mon Sep 17 00:00:00 2001 From: Miley Chandonnet Date: Tue, 20 Oct 2026 15:46:02 -0500 Subject: [PATCH] PHO-91/#184: Build against Compose Multiplatform 1.10.1 and lifecycle 2.9.6 phosphor-lumos-surface 0.9.0, built on Compose 1.7.0, reads ProvidedValue$stableprop directly in its Native klib. Compose 1.10 made that property private behind a _getter, so Socket's iOS app (Compose 1.10.1) threw IrLinkageError the first time LumosSurface composed. Building on 1.10.1 makes the compose compiler go through the getter. lifecycle-runtime-compose moves to 2.9.6, the version Compose 1.10.1's ui module requires. No source changes were needed; the yarn lockfiles regenerate unchanged. Authored by Claude (Opus 5.5), not by the committer. Co-Authored-By: Claude Opus 5.5 (1M context) --- phosphor-lumos-compose/build.gradle.kts | 4 ++-- phosphor-lumos-surface/build.gradle.kts | 4 ++-- settings.gradle.kts | 4 +++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/phosphor-lumos-compose/build.gradle.kts b/phosphor-lumos-compose/build.gradle.kts index cd5a774..f83b538 100644 --- a/phosphor-lumos-compose/build.gradle.kts +++ b/phosphor-lumos-compose/build.gradle.kts @@ -91,9 +91,9 @@ kotlin { implementation(compose.runtime) implementation(compose.ui) implementation(compose.foundation) - // LumosOrb's lifecycle gate. Compose 1.7.0 already depends on this version at + // LumosOrb's lifecycle gate. Compose 1.10.1 already depends on this version at // runtime on every target; declaring it lets commonMain compile against it. - implementation("org.jetbrains.androidx.lifecycle:lifecycle-runtime-compose:2.8.3") + implementation("org.jetbrains.androidx.lifecycle:lifecycle-runtime-compose:2.9.6") } } val commonTest by getting { diff --git a/phosphor-lumos-surface/build.gradle.kts b/phosphor-lumos-surface/build.gradle.kts index 4ff57bd..9cdd0a8 100644 --- a/phosphor-lumos-surface/build.gradle.kts +++ b/phosphor-lumos-surface/build.gradle.kts @@ -92,9 +92,9 @@ kotlin { implementation(compose.runtime) implementation(compose.ui) implementation(compose.foundation) - // The surface's lifecycle gate, as LumosOrb's. Compose 1.7.0 already depends on this + // The surface's lifecycle gate, as LumosOrb's. Compose 1.10.1 already depends on this // version at runtime on every target; declaring it lets commonMain compile against it. - implementation("org.jetbrains.androidx.lifecycle:lifecycle-runtime-compose:2.8.3") + implementation("org.jetbrains.androidx.lifecycle:lifecycle-runtime-compose:2.9.6") } } val commonTest by getting { diff --git a/settings.gradle.kts b/settings.gradle.kts index 83dce0a..fe451b0 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -24,7 +24,9 @@ pluginManagement { id("org.jlleitschuh.gradle.ktlint").version("12.2.0") id("org.jetbrains.dokka").version("2.1.0") id("com.vanniktech.maven.publish").version("0.30.0") - id("org.jetbrains.compose").version("1.7.0") + // Socket links Compose 1.10.1. Building against an older runtime publishes Native/web klibs + // that read Compose's `$stable` properties directly, which 1.10 made private (PHO-91). + id("org.jetbrains.compose").version("1.10.1") // Socket's Android build runs this AGP on the same Kotlin and Gradle versions. 8.13 is the // last AGP line Gradle 8.13 runs; AGP 9 needs Gradle 9 and moves KMP libraries to // com.android.kotlin.multiplatform.library.