Skip to content

Commit 7b89bda

Browse files
authored
Merge pull request #43 from synonymdev/feat/kotlin-serialization-update
fix: kotlin serialization version and jvm bindings
2 parents cede1ff + 5fa909a commit 7b89bda

24 files changed

Lines changed: 16375 additions & 17603 deletions

File tree

AGENTS.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,13 @@ If anything is missing or cannot be verified, you must fix it before declaring s
194194
- NEVER suggest manually adding @Serializable annotations to generated Kotlin bindings
195195
- ALWAYS run `cargo fmt` before committing to ensure consistent code formatting
196196
- ALWAYS move imports to the top of the file when applicable (no inline imports in functions)
197-
- To regenerate ALL bindings (Swift, Kotlin, Python), use this command:
198-
```bash
199-
RUSTFLAGS="--cfg no_download" cargo build && ./scripts/uniffi_bindgen_generate.sh && ./scripts/swift_create_xcframework_archive.sh && sh scripts/uniffi_bindgen_generate_kotlin_android.sh
200-
```
197+
- NEVER run binding generation scripts yourself - always ask the user to run them (they are long-running and resource-intensive)
198+
199+
## Bindings Generation Command
200+
To regenerate ALL bindings (Swift, Kotlin, Python), use this command:
201+
```sh
202+
RUSTFLAGS="--cfg no_download" cargo build && ./scripts/uniffi_bindgen_generate.sh && ./scripts/swift_create_xcframework_archive.sh && sh scripts/uniffi_bindgen_generate_kotlin.sh && sh scripts/uniffi_bindgen_generate_kotlin_android.sh
203+
```
201204

202205
## Version Bumping Checklist
203206
When bumping the version, ALWAYS update ALL of these files:

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
# 0.7.0-rc.16 (Synonym Fork)
1+
# 0.7.0-rc.17 (Synonym Fork)
22

33
## Bug Fixes
44
- Fixed duplicate payment events (`PaymentReceived`, `PaymentSuccessful`, `PaymentFailed`) being
55
emitted when LDK replays events after node restart.
66

77
## Synonym Fork Additions
8+
- Upgraded to Kotlin 2.2.0 for compatibility with consuming apps using Kotlin 2.x
89
- Added JitPack support for `ldk-node-jvm` module to enable unit testing in consuming apps
910
- Added runtime-adjustable wallet sync intervals for battery optimization on mobile:
1011
- `RuntimeSyncIntervals` struct with configurable `onchain_wallet_sync_interval_secs`,
@@ -504,4 +505,3 @@ integrated LDK and BDK-based wallets.
504505

505506
**Note:** This release is still considered experimental, should not be run in
506507
production, and no compatibility guarantees are given until the release of 0.1.
507-

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ldk-node"
3-
version = "0.7.0-rc.16"
3+
version = "0.7.0-rc.17"
44
authors = ["Elias Rohrer <dev@tnull.de>"]
55
homepage = "https://lightningdevkit.org/"
66
license = "MIT OR Apache-2.0"

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
import PackageDescription
55

6-
let tag = "v0.7.0-rc.16"
7-
let checksum = "5ca612e30639e86d4a215c7819d93e55aba3c9a9ea704a79ab18d6df78c38b32"
6+
let tag = "v0.7.0-rc.17"
7+
let checksum = "b90aefa8285b7c4b459e107b611840e5f218689797c0dc24e8bb5e8d1208fa56"
88
let url = "https://github.com/synonymdev/ldk-node/releases/download/\(tag)/LDKNodeFFI.xcframework.zip"
99

1010
let package = Package(

bindings/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Build All Bindings
44
Run in the root dir:
55
```sh
6-
RUSTFLAGS="--cfg no_download" cargo build && ./scripts/uniffi_bindgen_generate.sh && ./scripts/swift_create_xcframework_archive.sh && sh scripts/uniffi_bindgen_generate_kotlin_android.sh
6+
RUSTFLAGS="--cfg no_download" cargo build && ./scripts/uniffi_bindgen_generate.sh && ./scripts/swift_create_xcframework_archive.sh && sh scripts/uniffi_bindgen_generate_kotlin.sh && sh scripts/uniffi_bindgen_generate_kotlin_android.sh
77
```
88

99
---

bindings/kotlin/ldk-node-android/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ buildscript {
99
}
1010

1111
plugins {
12-
kotlin("android") version "1.9.20" apply false
13-
kotlin("plugin.serialization") version "1.9.20" apply false
12+
kotlin("android") version "2.2.0" apply false
13+
kotlin("plugin.serialization") version "2.2.0" apply false
1414
}
1515

1616
// library version is defined in gradle.properties

bindings/kotlin/ldk-node-android/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ org.gradle.jvmargs=-Xmx1536m
22
android.useAndroidX=true
33
android.enableJetifier=true
44
kotlin.code.style=official
5-
libraryVersion=0.7.0-rc.16
5+
libraryVersion=0.7.0-rc.17

bindings/kotlin/ldk-node-android/lib/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ android {
5353
dependencies {
5454
implementation("net.java.dev.jna:jna:5.12.0@aar")
5555
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7")
56-
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
56+
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.2")
5757
implementation("androidx.appcompat:appcompat:1.4.0")
5858
implementation("androidx.core:core-ktx:1.7.0")
59-
implementation("org.jetbrains.kotlinx:atomicfu:0.23.1")
60-
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.0")
59+
implementation("org.jetbrains.kotlinx:atomicfu:0.27.0")
60+
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.9.0")
6161
api("org.slf4j:slf4j-api:1.7.30")
6262
}
6363

Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)