Files
mantra-kmp/gradle
Kgothatso Ngako a611277d5d build: drop six unused dependencies and their catalog entries
None of these are imported by any source file in composeApp, generated sources
included, and none is the kind of dependency that gets used without an import.

  androidx.paging:paging-common    no androidx.paging import anywhere; no DAO
  androidx.paging:paging-compose   returns PagingSource and nothing calls
                                   collectAsLazyPagingItems, so the Room-Paging
                                   integration that would need it is not in use
  androidx.work:work-runtime-ktx   no Worker, CoroutineWorker or WorkManager
                                   reference, and no provider or initializer entry
                                   in AndroidManifest.xml
  okhttp3:okhttp-coroutines        redundant rather than unused: quartz-android
                                   1.14.0 depends on it and at 5.5.0, which was
                                   already upgrading this declaration's 5.4.0. It
                                   stays on the runtime classpath either way
  com.ionspin.kotlin:bignum        no com.ionspin import. Arrived in a10dc1a with
                                   lightning-mobile support, not with
                                   secp256k1-frost-kmp, though frost was the last
                                   thing in the tree that used bignum at all
  no.synth:kmp-zip                 no no.synth import
  no.synth:kmp-zip-okio

The catalog entries and the pagingCommon, workRuntimeKtx and okhttp version refs
go with them, since each was referenced exactly once and nothing else in this
build points at them. lightning-kmp-app also declares work-runtime-ktx, but reads
it from its own catalog, so it is unaffected.

Deliberately kept:

app.cash.sqldelight looks unused by the same test -- no .kt file under
composeApp/src imports it -- but composeApp holds .sq schemas for three databases
(ChannelsDatabase, PaymentsDatabase, AppDatabase) and the generated sources import
it in 29 files. The runtime, the coroutines extensions and the platform drivers
all stay.

compose.desktop.currentOs and kotlinx-coroutines-swing in jvmMain are untouched,
but worth flagging: the `jvm()` target is commented out, so that source set and the
files under composeApp/src/jvmMain are not built. Whether they are dead or waiting
for the desktop target to come back is a decision about the target, not about a
dependency, so this commit leaves both alone.

Commented-out declarations elsewhere in the file -- room vs room3, kspIosX64,
kspJvm -- are left as the migration markers they are.

`:composeApp:assembleDebug` passes and the APK still packages libsecp256k1-jni.so
for all four ABIs.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-04 23:26:24 +02:00
..