Apply rename changes
3
lib/flutter/TODO.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# Todos (non-exhaustive)
|
||||
|
||||
- [] Only compile core with build commands
|
||||
9
lib/flutter/flutter_rust_bridge.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
rust_input: ../core/src/bindings.rs
|
||||
dart_output: packages/breez_liquid/lib/src
|
||||
rust_output: ../core/src/frb/bridge.rs
|
||||
c_output: breez_liquid_sdk/include/breez_liquid_sdk.h
|
||||
duplicated_c_output: [packages/flutter_breez_liquid/macos/Classes/breez_liquid_sdk.h, packages/flutter_breez_liquid/ios/Classes/breez_liquid_sdk.h]
|
||||
web: false
|
||||
full_dep: true
|
||||
add_mod_to_lib: false
|
||||
deps_check: false
|
||||
@@ -14,7 +14,7 @@ ffigen:
|
||||
|
||||
# builds the local library for testing
|
||||
build *args:
|
||||
cargo build --package ls-sdk --manifest-path ../ls-sdk-core/Cargo.toml --features frb {{args}}
|
||||
cargo build --package breez-liquid-sdk --manifest-path ../core/Cargo.toml --features frb {{args}}
|
||||
|
||||
build-apple *args:
|
||||
dart scripts/build_apple.dart {{args}}
|
||||
@@ -34,13 +34,13 @@ test-dart: build
|
||||
|
||||
# softlinks library archives from platform-build to their expected locations
|
||||
link:
|
||||
-ln -sf $(pwd)/platform-build/ls_sdk.xcframework.zip packages/flutter_breez_liquid/macos/Frameworks/{{curr_version}}.zip
|
||||
-ln -sf $(pwd)/platform-build/ls_sdk.xcframework.zip packages/flutter_breez_liquid/ios/Frameworks/{{curr_version}}.zip
|
||||
-ln -sf $(pwd)/platform-build/breez_liquid_sdk.xcframework.zip packages/flutter_breez_liquid/macos/Frameworks/{{curr_version}}.zip
|
||||
-ln -sf $(pwd)/platform-build/breez_liquid_sdk.xcframework.zip packages/flutter_breez_liquid/ios/Frameworks/{{curr_version}}.zip
|
||||
-ln -sf $(pwd)/platform-build/other.tar.gz packages/flutter_breez_liquid/linux/{{curr_version}}.tar.gz
|
||||
-ln -sf $(pwd)/platform-build/other.tar.gz packages/flutter_breez_liquid/windows/{{curr_version}}.tar.gz
|
||||
-ln -sf $(pwd)/platform-build/android.tar.gz packages/flutter_breez_liquid/android/{{curr_version}}.tar.gz
|
||||
-ln -sf $(pwd)/ls_sdk/include/ls_sdk.h packages/flutter_breez_liquid/ios/Classes/ls_sdk.h
|
||||
-ln -sf $(pwd)/ls_sdk/include/ls_sdk.h packages/flutter_breez_liquid/macos/Classes/ls_sdk.h
|
||||
-ln -sf $(pwd)/breez_liquid_sdk/include/breez_liquid_sdk.h packages/flutter_breez_liquid/ios/Classes/breez_liquid_sdk.h
|
||||
-ln -sf $(pwd)/breez_liquid_sdk/include/breez_liquid_sdk.h packages/flutter_breez_liquid/macos/Classes/breez_liquid_sdk.h
|
||||
|
||||
# (melos)
|
||||
test-flutter: build-apple build-android build-other
|
||||
@@ -7,10 +7,10 @@ packages:
|
||||
commands:
|
||||
bootstrap:
|
||||
hooks:
|
||||
post: cargo check --manifest-path ../ls-sdk-core/Cargo.toml --features frb
|
||||
post: cargo check --manifest-path ../core/Cargo.toml --features frb
|
||||
clean:
|
||||
hooks:
|
||||
pre: cargo clean --manifest-path ../ls-sdk-core/Cargo.toml --features frb
|
||||
pre: cargo clean --manifest-path ../core/Cargo.toml --features frb
|
||||
version:
|
||||
hooks:
|
||||
preCommit: bash scripts/version.sh
|
||||
@@ -34,7 +34,7 @@ scripts:
|
||||
build-other-local: dart scripts/build_other.dart --local
|
||||
|
||||
test:
|
||||
cargo build --package ls-sdk --profile=frb &&
|
||||
cargo build --package breez-liquid-sdk --profile=frb &&
|
||||
melos run test-dart &&
|
||||
melos run test-flutter
|
||||
|
||||
@@ -60,8 +60,8 @@ class RustLib extends BaseEntrypoint<RustLibApi, RustLibApiImpl, RustLibWire> {
|
||||
|
||||
static const kDefaultExternalLibraryLoaderConfig =
|
||||
ExternalLibraryLoaderConfig(
|
||||
stem: 'ls_sdk',
|
||||
ioDirectory: '../../../ls-sdk-core/target/release/',
|
||||
stem: 'breez_liquid_sdk',
|
||||
ioDirectory: '../../../core/target/release/',
|
||||
webPrefix: 'pkg/',
|
||||
);
|
||||
}
|
||||
@@ -32,7 +32,7 @@ String dylibPath(String profile) => Uri.base
|
||||
'../../target',
|
||||
if (Platform.isMacOS && hostTriple.startsWith('aarch64')) hostTriple,
|
||||
profile,
|
||||
'ls_sdk'.dylib,
|
||||
'breez_liquid_sdk'.dylib,
|
||||
]))
|
||||
.toFilePath();
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
|
||||
// BreezLiquid initApi({String? profile}) {
|
||||
// return BreezLiquid.wasm(WasmModule.initialize(
|
||||
// kind: const Modules.noModules(root: 'pkg/ls_sdk'),
|
||||
// kind: const Modules.noModules(root: 'pkg/breez_liquid_sdk'),
|
||||
// ));
|
||||
// }
|
||||
|
Before Width: | Height: | Size: 544 B After Width: | Height: | Size: 544 B |
|
Before Width: | Height: | Size: 442 B After Width: | Height: | Size: 442 B |
|
Before Width: | Height: | Size: 721 B After Width: | Height: | Size: 721 B |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
@@ -47,7 +47,7 @@
|
||||
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
|
||||
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||
C57C33264F3AA95B9DE5A13B /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
|
||||
E884E5F32BD4518000044516 /* ls_sdk.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ls_sdk.h; path = ../../ios/Classes/ls_sdk.h; sourceTree = "<group>"; };
|
||||
E884E5F32BD4518000044516 /* breez_liquid_sdk.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = breez_liquid_sdk.h; path = ../../ios/Classes/breez_liquid_sdk.h; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
@@ -84,7 +84,7 @@
|
||||
97C146E51CF9000F007C117D = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
E884E5F32BD4518000044516 /* ls_sdk.h */,
|
||||
E884E5F32BD4518000044516 /* breez_liquid_sdk.h */,
|
||||
9740EEB11CF90186004384FC /* Flutter */,
|
||||
97C146F01CF9000F007C117D /* Runner */,
|
||||
97C146EF1CF9000F007C117D /* Products */,
|
||||
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 564 B After Width: | Height: | Size: 564 B |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |