From 302ce3cac99a8219b4f89bfafab7bd35755b042f Mon Sep 17 00:00:00 2001 From: Kgothatso Ngako Date: Fri, 20 Nov 2026 15:35:53 +0200 Subject: [PATCH] build: Kotlin 2.4.21 across the composite (dependency-update, Phase 6) lightning-kmp-app moves to d87af50, which carries Kotlin 2.4.21 down to secp256k1-kmp, and engine-interop/new follows the app as its comment asks. The declared Kotlin now matches the stdlib quartz already resolved, and the resolved graphs are unchanged. secp256k1-kmp and bitcoin-kmp tests, lightning-kmp-app's library compile and engine-interop all pass. The Kotlin/Native workaround stays until a mac links without it. The submodule commits are on claude/dependency-update branches, not pushed. Co-Authored-By: Claude Opus 5.5 --- docs/dependency-update.md | 1 + docs/tools/engine-interop/new/build.gradle.kts | 2 +- gradle/libs.versions.toml | 2 +- lightning-kmp-app | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/dependency-update.md b/docs/dependency-update.md index 69eb13bd..ae871a8e 100644 --- a/docs/dependency-update.md +++ b/docs/dependency-update.md @@ -38,6 +38,7 @@ records what it turned out to be in the results table below. | 3 | built, on **1.12.2 with material3 1.12.0-alpha03** (D3): 1.13.0 was still `rc01` when the phase started. Also navigation-compose 2.10.0, Hot Reload 1.3.0, coil 3.6.3 and qrose 1.3.1. It compiled and passed on the first build: `jvmTest` 1,407 run, 0 failed, with `StringCatalogueJvmTest`, `ColorSchemeContrastTest` and the `readableContent()` test among them; `testDebugUnitTest` 529, 0 failed; `m3-audit` adaptive 12/12, navigation 2/2, every budget 0. `QRCodeView.kt` needed no change for qrose's moved declarations. One new deprecation in the app's code: the no-argument `rememberModalBottomSheetState()` at `HomeScreen.kt:105` ("Use rememberBottomSheetState with Hidden initial value"). It is left, like the five `LocalClipboardManager` deprecations already there, because it is UI work and not a version. One "condition is always true" warning went away. Where the plan was wrong: on Android, JetBrains' material3 is a redirect to Google's, so the Android classpath carries `androidx.compose.material3:material3` and `-adaptive-navigation-suite` **1.5.0-alpha22** (from 1.5.0-alpha08). Google's suite did not leave; it moved with the rest. `material3-window-size-class` does not arrive at runtime. Seven legacy androidx libraries (`documentfile`, `legacy-support-core-utils`, `loader`, `print`, `transition` and two more) left the Android classpath. Adaptive stays 1.2.0 on both platforms. **Not done here:** looking at the app (3.5) and scanning QR codes (2d). Both are in Phase 8 | | 4 | built. Gradle 9.9.2, with the wrapper run twice. 9.9.2's wrapper adds `retries=0` and `retryBackOffMs=500` to `gradle-wrapper.properties` and regenerates both scripts. The daemon still resolves Java 21 from `gradle-daemon-jvm.properties`. Resolved graphs identical to Phase 3's. `check` green, `jvmTest` 1,407 / 0, `testDebugUnitTest` 529 / 0. Gradle 10 deprecations are the same as before, all from the composite's scripts or plugins: `by getting` ×3, `by registering` ×2, `AbstractTestTask.afterSuite(Closure)` and `Configuration.getTaskDependencyFromProjectDependency` | | 5 | built, in the submodules and here: secp256k1-kmp `b0f0e37` (both pins), bitcoin-kmp `3ea162a` and lightning-kmp `9ec407fe` (pointers), lightning-kmp-app `63a48b2` (catalogue and pointer), each on a `claude/dependency-update` branch and **not pushed**. AGP 9.5.1 found three things 9.4.0 had not. **(1)** It registers `generateComposePreviewRunfiles` on every variant with Compose on and refuses to configure it while unit tests exclude Android resources, so `composeApp` sets `testOptions.unitTests.isIncludeAndroidResources = true`. **(2)** It refuses the same task for a variant with no unit tests, and AGP 9 gives unit tests to the tested build type only, while Kotlin's `allTests` realizes the release one, so `check` would not configure. `gradle.properties` sets `android.onlyEnableUnitTestForTheTestedBuildType=false`, and `check` now runs `testReleaseUnitTest` too (529 run, 0 failed). There is no option for turning the preview task off: it is gated only on the Compose build feature. **(3)** Its lint now reads `commonMain` and found three real errors, fixed in `3e0a16b1` before this commit: an unremembered `mutableStateOf`, and two `Scaffold`s that ignored `innerPadding`. Merged manifests (debug and release) are byte-identical to 9.4.0's. Resolved graphs unchanged. Debug APK 50.4 MB, unsigned release 38.1 MB. `jvmTest` 1,407 / 0. The seven opt-out flags all still warn "removed in version 10.0", as at Phase 0. **Not done here:** an Android Studio sync, and the submodule-level checks, which Phase 6 makes once for both versions | +| 6 | built: secp256k1-kmp `bcaa985`, bitcoin-kmp `0fd254b`, lightning-kmp `f8835338` and lightning-kmp-app `d87af50`, each a Kotlin commit on top of its Phase 5 commit on `claude/dependency-update`, **not pushed**, with `engine-interop/new` moved too. The resolved graphs did not change at all: stdlib was already resolving 2.4.21 under quartz, and now the declared version matches it. Giza: `check` green, `jvmTest` 1,407 / 0, `testDebugUnitTest` and `testReleaseUnitTest` 529 / 0 each, both APKs built. Down the chain, run standalone for both phases: secp256k1-kmp `:tests:jvmTest`, bitcoin-kmp `jvmTest`, and lightning-kmp-app `:library:compileKotlinJvm :library:compileAndroidMain` all pass. engine-interop prints ALL PASSED both ways through epoch 3. A full recompile under 2.4.21 reports 31 warnings in the app's sources and none is an error: nullability redundancies, the deprecations already named in Phase 3, and two `ExperimentalCoroutinesApi` opt-ins in tests. **Not done here:** the mac link without `-Xdisable-phases` (C5), so the workaround stays | | phase | what it is | rough size | |---|---|---| diff --git a/docs/tools/engine-interop/new/build.gradle.kts b/docs/tools/engine-interop/new/build.gradle.kts index 1584dd21..a340b6c1 100644 --- a/docs/tools/engine-interop/new/build.gradle.kts +++ b/docs/tools/engine-interop/new/build.gradle.kts @@ -1,5 +1,5 @@ plugins { - kotlin("jvm") version "2.4.10" + kotlin("jvm") version "2.4.21" application } dependencies { diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 56c9f386..c1cc645c 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -20,7 +20,7 @@ composeMultiplatform = "1.12.2" cryptoKmp = { strictly = "2.1.1" } datastorePreferences = "1.3.0" kermit = "2.2.0" -kotlin = "2.4.10" +kotlin = "2.4.21" kotlinx-coroutines = "1.11.0" kotlinx-datetime = "0.8.0" kotlinxSerialization = "1.13.0" diff --git a/lightning-kmp-app b/lightning-kmp-app index 63a48b22..d87af507 160000 --- a/lightning-kmp-app +++ b/lightning-kmp-app @@ -1 +1 @@ -Subproject commit 63a48b22db8be0f0070e30407881a9c17775dc85 +Subproject commit d87af507de707e95486ce0a71740375eb1438e5a