mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-10-05 19:28:25 +00:00
The 127 files reachable from AccountViewModel leave the app, split by what they import: - commonsUI/commonMain (33 files): AccountViewModel, AccountFeedContentStates, the payment stack (Zap/V4V handlers, MeltProcessor, LightningInvoiceResolver, HttpStatusMessages, NwcResponseMessages), TopNavFilterState, NotificationSummaryState, the account filter assemblers that hold the feed states, the nest assemblers and bridges, CallSessionBridge, ReloadMintViewModel. They need compose-resources strings, Vico or commonsUI symbols. - commons/commonMain (94 files): the feed filters, the chat, relay-group, concord and hashtag assemblers, EventSync, the Clink payer, the card feed state, the chat-room read markers. Packages are renamed on the way: ui.screen.loggedIn -> commons.viewmodels, ui.screen.loggedIn.X -> commons.X, ui.screen and ui.dal -> commons.feeds, ui.nwc -> commons.service.nwc, service.relayClient.X -> commons.relayClient.X, service.X -> commons.service.X. Every reference in the app, desktop and tests is repointed. commonMain needed only kotlinx.coroutines.IO and kotlin.concurrent.Volatile imports, toLongValue() on one BigDecimal, and three cross-module smart casts read into locals. commonsUI gains Vico (Apache-2.0, already an app dependency, multiplatform for all commonsUI targets) and kotlinx-serialization-json. The resolver test moves to commonsUI's jvmTest with the code it tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01S7FuNBSKiyVecARSoE4B9P