Skip to content

Commit 0178f7b

Browse files
committed
Updates post testing. Code cleanup
1 parent e761708 commit 0178f7b

27 files changed

+216
-286
lines changed

CHANGELOG.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
## [0.1.1]
2+
Support `Dart 3` and `Flutter 3.10`
23

34
### Fixed
4-
5-
- setEntropyBip39Mnemonic now correctly sets the entropy to the specified BIP 39 mnemonic.
6-
5+
- `setEntropyBip39Mnemonic` issue resolved
76
## [0.1.0]
87

98
This is the first release of `ldk_node`. It features support for sourcing chain data via an `Esplora` server, filesystem persistence, gossip sourcing via the `Lightning` peer-to-peer network, and configurble entropy sources for the integrated LDK & BDK-based wallets.

example/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ subprojects {
2626
project.evaluationDependsOn(':app')
2727
}
2828

29-
task clean(type: Delete) {
29+
tasks.register("clean", Delete) {
3030
delete rootProject.buildDir
3131
}

example/ios/Podfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@ PODS:
99
DEPENDENCIES:
1010
- Flutter (from `Flutter`)
1111
- ldk_node (from `.symlinks/plugins/ldk_node/ios`)
12-
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/ios`)
12+
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
1313

1414
EXTERNAL SOURCES:
1515
Flutter:
1616
:path: Flutter
1717
ldk_node:
1818
:path: ".symlinks/plugins/ldk_node/ios"
1919
path_provider_foundation:
20-
:path: ".symlinks/plugins/path_provider_foundation/ios"
20+
:path: ".symlinks/plugins/path_provider_foundation/darwin"
2121

2222
SPEC CHECKSUMS:
2323
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
24-
ldk_node: 39dd0a338102b26f1c7700374f95a1cec2a5c259
25-
path_provider_foundation: c68054786f1b4f3343858c1e1d0caaded73f0be9
24+
ldk_node: 22f8295d7ea99b61dea82fe2819057a4e3d0e1d1
25+
path_provider_foundation: eaf5b3e458fc0e5fbb9940fb09980e853fe058b8
2626

2727
PODFILE CHECKSUM: ef19549a9bc3046e7bb7d2fab4d021637c0c58a3
2828

example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@
230230
files = (
231231
);
232232
inputPaths = (
233+
"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
233234
);
234235
name = "Thin Binary";
235236
outputPaths = (

example/ios/Runner/Info.plist

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5-
<key>CADisableMinimumFrameDurationOnPhone</key>
6-
<true/>
75
<key>CFBundleDevelopmentRegion</key>
86
<string>$(DEVELOPMENT_LANGUAGE)</string>
97
<key>CFBundleDisplayName</key>
@@ -26,8 +24,6 @@
2624
<string>$(FLUTTER_BUILD_NUMBER)</string>
2725
<key>LSRequiresIPhoneOS</key>
2826
<true/>
29-
<key>UIApplicationSupportsIndirectInputEvents</key>
30-
<true/>
3127
<key>UILaunchStoryboardName</key>
3228
<string>LaunchScreen</string>
3329
<key>UIMainStoryboardFile</key>
@@ -47,5 +43,9 @@
4743
</array>
4844
<key>UIViewControllerBasedStatusBarAppearance</key>
4945
<false/>
46+
<key>CADisableMinimumFrameDurationOnPhone</key>
47+
<true/>
48+
<key>UIApplicationSupportsIndirectInputEvents</key>
49+
<true/>
5050
</dict>
5151
</plist>

example/lib/main.dart

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class _MyAppState extends State<MyApp> {
4444
final config = ldk.Config(
4545
storageDirPath: nodePath,
4646
esploraServerUrl: esploraUrl,
47-
network: ldk.Network.Regtest,
47+
network: ldk.Network.regtest,
4848
listeningAddress: address,
4949
defaultCltvExpiryDelta: 144);
5050
return config;
@@ -58,12 +58,11 @@ class _MyAppState extends State<MyApp> {
5858
initAliceNode() async {
5959
final aliceConfig = await initLdkConfig(
6060
'alice', const ldk.SocketAddr(ip: "0.0.0.0", port: 3006));
61-
ldk.Builder aliceBuilder = ldk.Builder.fromConfig(config: aliceConfig)
62-
.setEntropyBip39Mnemonic(
63-
mnemonic:
64-
'puppy interest whip tonight dad never sudden response push zone pig patch');
61+
ldk.Builder aliceBuilder = ldk.Builder.fromConfig(config: aliceConfig);
62+
aliceBuilder.setEntropyBip39Mnemonic(
63+
mnemonic:
64+
'certain sense kiss guide crumble hint transfer crime much stereo warm coral');
6565
aliceNode = await aliceBuilder.build();
66-
6766
await aliceNode.start();
6867
final res = await aliceNode.nodeId();
6968
setState(() {
@@ -76,7 +75,6 @@ class _MyAppState extends State<MyApp> {
7675
final bobConfig = await initLdkConfig(
7776
"bob", const ldk.SocketAddr(ip: "0.0.0.0", port: 8077));
7877
ldk.Builder bobBuilder = ldk.Builder.fromConfig(config: bobConfig);
79-
8078
bobNode = await bobBuilder.build();
8179
await bobNode.start();
8280
final res = await bobNode.nodeId();
@@ -123,7 +121,7 @@ class _MyAppState extends State<MyApp> {
123121

124122
Future<ldk.PaymentDetails?> listPayments(bool printPayments) async {
125123
final res = await aliceNode.listPaymentsWithFilter(
126-
paymentDirection: ldk.PaymentDirection.Outbound);
124+
paymentDirection: ldk.PaymentDirection.outbound);
127125
if (res.isNotEmpty) {
128126
if (printPayments) {
129127
if (kDebugMode) {

0 commit comments

Comments
 (0)