`testing/regtest/` builds bitcoind, electrs, an eclair v0.14.4 LSP set up as a Phoenix LSP, and a payer. `GroupLightningRegtestJvmTest` (run with BENNU_REGTEST=1) drives four devices through it with a real lightning-kmp node: open, receive on a channel opened on the fly, pay through the LSP's trampoline, close mutually, then force-close a second channel and sweep its delayed output with a FROST script-path spend. It passes from a fresh network in about thirty seconds. The run found four bugs in the operator's node, fixed here: - It learned the chain's height only at the next block, and until then could answer no invoice request and take no payment. It now asks as it starts. - It turned down every on-the-fly channel, because lightning-kmp's default liquidity policy caps fees at 2,000 sats and the statement's signed `maxLiquidityFeeSat` never reached it. The node's policy is now the statement's. - A channel could ask for round one before the pool held it. The node now waits for a minimum pool before connecting, and otherwise refuses and retries. - A force close waited forever for feerates, which lightning-kmp fetches only once. The node now refreshes them, and takes a flat rate on regtest. Public eclair cannot route a Bolt11 payment to a wallet by its peer-id route hint, so the run pays the group's Bolt12 offer. The offer is now part of the wallet: every snapshot carries it, every member keeps it only if its own copy of the seed derives it, and the receive screen shows it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This is a Kotlin Multiplatform project targeting Android, iOS, Desktop (JVM).
-
/composeApp is for code that will be shared across your Compose Multiplatform applications. It contains several subfolders:
- commonMain is for code that’s common for all targets.
- Other folders are for Kotlin code that will be compiled for only the platform indicated in the folder name. For example, if you want to use Apple’s CoreCrypto for the iOS part of your Kotlin app, the iosMain folder would be the right place for such calls. Similarly, if you want to edit the Desktop (JVM) specific part, the jvmMain folder is the appropriate location.
-
/iosApp contains iOS applications. Even if you’re sharing your UI with Compose Multiplatform, you need this entry point for your iOS app. This is also where you should add SwiftUI code for your project.
Build and Run Android Application
To build and run the development version of the Android app, use the run configuration from the run widget in your IDE’s toolbar or build it directly from the terminal:
- on macOS/Linux
./gradlew :composeApp:assembleDebug - on Windows
.\gradlew.bat :composeApp:assembleDebug
Build and Run Desktop (JVM) Application
To build and run the development version of the desktop app, use the run configuration from the run widget in your IDE’s toolbar or run it directly from the terminal:
- on macOS/Linux
./gradlew :composeApp:run - on Windows
.\gradlew.bat :composeApp:run
Build and Run iOS Application
To build and run the development version of the iOS app, use the run configuration from the run widget in your IDE’s toolbar or open the /iosApp directory in Xcode and run it from there.
Learn more about Kotlin Multiplatform…