Skip to content

Commit c4c9257

Browse files
committed
Misc fixes and improvements
1 parent b9c0db8 commit c4c9257

File tree

6 files changed

+13
-9
lines changed

6 files changed

+13
-9
lines changed

example/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ app.*.map.json
4444
/android/app/debug
4545
/android/app/profile
4646
/android/app/release
47-
/android/app/.cxx
47+
/android/app/.cxx/

example/integration_test/bolt11_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import 'package:path_provider/path_provider.dart';
1212
void main() {
1313
String esploraUrl = Platform.isAndroid
1414
?
15-
//10.0.2.2 to access the AVD
15+
//µ m mmmmm,ccc,0 900v,10.0.2.2 to access the AVD
1616
'http://10.0.2.2:30000'
1717
: 'http://127.0.0.1:30000';
1818
final regTestClient = BtcClient("");

example/ios/Podfile.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ EXTERNAL SOURCES:
3737

3838
SPEC CHECKSUMS:
3939
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
40-
image_picker_ios: 7fe1ff8e34c1790d6fff70a32484959f563a928a
41-
integration_test: 4a889634ef21a45d28d50d622cf412dc6d9f586e
42-
ldk_node: 0e582c130008078c13328cd7b03ae50811fcf540
43-
path_provider_foundation: 080d55be775b7414fd5a5ef3ac137b97b097e564
44-
shared_preferences_foundation: 9e1978ff2562383bd5676f64ec4e9aa8fa06a6f7
40+
image_picker_ios: c560581cceedb403a6ff17f2f816d7fea1421fc1
41+
integration_test: 252f60fa39af5e17c3aa9899d35d908a0721b573
42+
ldk_node: af81fe38d9cc72b0d9c58f614aa1ea9b3cbb7a4f
43+
path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
44+
shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78
4545

4646
PODFILE CHECKSUM: 4e8f8b2be68aeea4c0d5beb6ff1e79fface1d048
4747

48-
COCOAPODS: 1.15.2
48+
COCOAPODS: 1.16.2

lib/ldk_node.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,4 @@ export 'src/root.dart';
5959
export 'src/generated/lib.dart' show U8Array4, U8Array12, U8Array64, U8Array32;
6060
export 'src/utils/default_services.dart';
6161
export 'src/utils/exceptions.dart' show NodeException, BuilderException;
62+
export 'src/utils/extensions.dart';

lib/src/utils/frb.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Frb {
99
await core.init();
1010
}
1111
} catch (e) {
12-
throw BridgeException(message: e.toString());
12+
throw BridgeException(errorMessage: e.toString(), code: "InitializationError");
1313
}
1414
}
1515
}

makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ codegen:
2929
@if [ "$$(uname)" = "Linux" ]; then \
3030
echo "Setting up environment for Linux..."; \
3131
export CPATH="$$(clang -v 2>&1 | grep "Selected GCC installation" | rev | cut -d' ' -f1 | rev)/include" && \
32+
export RUSTFLAGS="--cfg tokio_unstable" && \
3233
echo "CPATH set to: $$CPATH" && \
3334
flutter_rust_bridge_codegen generate; \
3435
elif [ "$$(uname)" = "Darwin" ]; then \
@@ -37,10 +38,12 @@ codegen:
3738
export LIBRARY_PATH="$$(xcrun --show-sdk-path)/usr/lib"; \
3839
export LDFLAGS="-L/opt/homebrew/opt/llvm/lib"; \
3940
export CPPFLAGS="-I/opt/homebrew/opt/llvm/include"; \
41+
export RUSTFLAGS="--cfg tokio_unstable"; \
4042
echo "SDK path: $$(xcrun --show-sdk-path)"; \
4143
flutter_rust_bridge_codegen generate; \
4244
else \
4345
echo "Running on $$(uname)..."; \
46+
export RUSTFLAGS="--cfg tokio_unstable" && \
4447
flutter_rust_bridge_codegen generate; \
4548
fi
4649
@echo "[Done ✅]"

0 commit comments

Comments
 (0)