Skip to content

Commit 4dcf696

Browse files
Merge pull request #39 from LtbLightning/upgrade-v2.2
Upgrade v2.2
2 parents 0136bb7 + a186de4 commit 4dcf696

File tree

107 files changed

+40064
-14940
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+40064
-14940
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
on:
2+
push:
3+
branches: [main, v0.2.2-dev]
4+
5+
name: Precompile Binaries
6+
7+
jobs:
8+
Precompile:
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
os:
14+
- ubuntu-20.04
15+
- macOS-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: actions-rs/toolchain@v1
19+
with:
20+
profile: minimal
21+
toolchain: stable
22+
override: true
23+
- name: Configure Cargo.toml optimizations
24+
run: |
25+
mkdir -p .cargo
26+
echo "[profile.release]" >> .cargo/config.toml
27+
echo "opt-level = 'z'" >> .cargo/config.toml
28+
echo "lto = true" >> .cargo/config.toml
29+
echo "codegen-units = 1" >> .cargo/config.toml
30+
echo "panic = 'abort'" >> .cargo/config.toml
31+
- uses: dart-lang/setup-dart@v1
32+
- uses: subosito/flutter-action@v2
33+
with:
34+
channel: 'stable'
35+
- name: Precompile (with iOS)
36+
if: (matrix.os == 'macOS-latest')
37+
run: dart run build_tool precompile-binaries -v --manifest-dir=../../rust --repository=LtbLightning/ldk-node-flutter
38+
working-directory: cargokit/build_tool
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
41+
PRIVATE_KEY: ${{ secrets.CARGOKIT_PRIVATE_KEY }}
42+
- name: Precompile (with Android)
43+
if: (matrix.os == 'ubuntu-20.04')
44+
run: dart run build_tool precompile-binaries -v --manifest-dir=../../rust --repository=LtbLightning/ldk-node-flutter --android-sdk-location=/usr/local/lib/android/sdk --android-ndk-version=24.0.8215888 --android-min-sdk-version=23
45+
working-directory: cargokit/build_tool
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
48+
PRIVATE_KEY: ${{ secrets.CARGOKIT_PRIVATE_KEY }}

CHANGELOG.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
1-
## [0.2.1]
2-
Android support bug resolved
1+
## [0.2.2-dev]
2+
Updated Rust and Flutter dependencies.
3+
#### APIs added
4+
- Expose `nextEventAsync()`, `config()`, `status()`, `receiveVariableAmountPaymentViaJitChannel` & `receivePaymentViaJitChannel` in `Node`
5+
#### API changed
6+
- Replaced `totalOnchainBalanceSats()` & `spendableOnchainBalanceSats()` with `listBalances()`.
7+
- `connectOpenChannel` returns a `UserChannelId` object.
8+
- `updateChannelConfig` & `closeChannel` accepts a `UserChannelId` object instead of `ChannelId`
39

10+
## [0.2.1]
11+
Updated Rust and Flutter dependencies.
412
#### API changed
513
- Renamed `waitUntilNextHandled()` to `waitNextHandled`.
614
- Renamed `listeningAddress()` to `listeningAddresses`
715
- Upgraded `BuilderException` to handle Invalid SocketAddress.
16+
#### Fixed
17+
- Functions hang indefinitely on iOs devices
18+
- Android support bug resolved
819

920
## [0.2.0]
1021
Updated `Rust` and `Flutter` dependencies.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ To use the `ldk_node` package in your project, add it as a dependency in your pr
4040

4141
```dart
4242
dependencies:
43-
ldk_node: ^0.2.1
43+
ldk_node: ^0.2.2-dev
4444
```
4545
or add from pub.dev using `pub add` command
4646

analysis_options.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ linter:
1212

1313
analyzer:
1414
exclude:
15-
- lib/src/generated/bindings.dart
16-
- lib/src/generated/bridge_definitions.dart
17-
- lib/src/generated/bridge_definitions.freezed.dart
15+
- lib/src/generated/frb_generated.dart
16+
- lib/src/generated/frb_generated.io.dart
17+
- lib/src/generated/frb_generated.dart
18+
- lib/src/generated/api/types.freezed.dart
19+
- README.md
20+
- cargokit/

android/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,9 @@ android {
4444
minSdkVersion 16
4545
}
4646
}
47+
apply from: "../cargokit/gradle/plugin.gradle"
48+
49+
cargokit {
50+
manifestDir = "../rust"
51+
libname = "ldk_node"
52+
}
-13.9 MB
Binary file not shown.
-10.3 MB
Binary file not shown.
-12.6 MB
Binary file not shown.
-12.3 MB
Binary file not shown.

android/src/main/kotlin/io/ldk/f/ldk_node/LdkNodePlugin.kt

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)