mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2025-12-18 06:24:21 +01:00
Rename namespace (#345)
* Rename namespace * Fix flutter build * Fix kotlin-multiplatform CI * Rename repositories
This commit is contained in:
@@ -7,12 +7,12 @@ import 'package:cli_script/cli_script.dart';
|
||||
|
||||
import 'utils.dart';
|
||||
|
||||
const framework = 'breez_liquid_sdk.xcframework';
|
||||
const framework = 'breez_sdk_liquid.xcframework';
|
||||
const frameworkZip = '$framework.zip';
|
||||
const libName = 'libbreez_liquid_sdk.a';
|
||||
const libName = 'libbreez_sdk_liquid.a';
|
||||
const iosSimLipo = 'ios-sim-lipo/$libName';
|
||||
const macLipo = 'mac-lipo/$libName';
|
||||
const headers = '../breez_liquid_sdk/include';
|
||||
const headers = '../breez_sdk_liquid/include';
|
||||
const buildDir = 'platform-build';
|
||||
|
||||
Future<void> mainImpl(List<String> args) async {
|
||||
@@ -74,7 +74,7 @@ Future<void> mainImpl(List<String> args) async {
|
||||
for (final target in targets) {
|
||||
print(' Building target $target');
|
||||
await run('rustup target add $target');
|
||||
await run('cargo build --package breez-liquid-sdk --target=$target $profileArg');
|
||||
await run('cargo build --package breez-sdk-liquid --target=$target $profileArg');
|
||||
}
|
||||
|
||||
await run('mkdir -p mac-lipo ios-sim-lipo');
|
||||
|
||||
@@ -7,7 +7,7 @@ import 'package:cli_script/cli_script.dart';
|
||||
|
||||
import 'utils.dart';
|
||||
|
||||
const libName = 'breez_liquid_sdk';
|
||||
const libName = 'breez_sdk_liquid';
|
||||
const linuxLibName = 'lib$libName.so';
|
||||
const windowsLibName = '$libName.dll';
|
||||
const buildDir = 'platform-build';
|
||||
@@ -46,7 +46,7 @@ Future<void> mainImpl(List<String> args) async {
|
||||
final triple = target.triple;
|
||||
final flutterIdentifier = target.flutterIdentifier;
|
||||
await run('rustup target add $triple');
|
||||
await run('${target.compiler} --package breez-liquid-sdk --target $triple $profileArg',
|
||||
await run('${target.compiler} --package breez-sdk-liquid --target $triple $profileArg',
|
||||
args: compilerOpts);
|
||||
await run('mkdir -p $flutterIdentifier');
|
||||
await run('cp ../../../../target/$triple/$profile/${target.libName} $flutterIdentifier/');
|
||||
@@ -89,6 +89,6 @@ enum Targets {
|
||||
}
|
||||
|
||||
String get compiler =>
|
||||
isWindows ? 'cargo xwin build --package breez-liquid-sdk' : 'cargo zigbuild --package breez-liquid-sdk';
|
||||
isWindows ? 'cargo xwin build --package breez-sdk-liquid' : 'cargo zigbuild --package breez-sdk-liquid';
|
||||
String get libName => isWindows ? windowsLibName : linuxLibName;
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ zig_build () {
|
||||
local LIBNAME="$3"
|
||||
local PROFILE="$4"
|
||||
rustup target add "$TARGET"
|
||||
cargo zigbuild --package breez-liquid-sdk --target "$TARGET" --profile $PROFILE
|
||||
cargo zigbuild --package breez-sdk-liquid --target "$TARGET" --profile $PROFILE
|
||||
mkdir -p "$PLATFORM_NAME"
|
||||
cp "../../../../target/$TARGET/$PROFILE/$LIBNAME" "$PLATFORM_NAME/"
|
||||
}
|
||||
@@ -28,14 +28,14 @@ win_build () {
|
||||
local LIBNAME="$3"
|
||||
local PROFILE="$4"
|
||||
rustup target add "$TARGET"
|
||||
cargo xwin build --package breez-liquid-sdk --target "$TARGET" --profile $PROFILE
|
||||
cargo xwin build --package breez-sdk-liquid --target "$TARGET" --profile $PROFILE
|
||||
mkdir -p "$PLATFORM_NAME"
|
||||
cp "../../../../target/$TARGET/$PROFILE/$LIBNAME" "$PLATFORM_NAME/"
|
||||
}
|
||||
|
||||
PROFILE=frb-min
|
||||
# Build all the dynamic libraries
|
||||
LIBNAME=breez_liquid_sdk
|
||||
LIBNAME=breez_sdk_liquid
|
||||
LINUX_LIBNAME=lib$LIBNAME.so
|
||||
zig_build aarch64-unknown-linux-gnu linux-arm64 $LINUX_LIBNAME $PROFILE
|
||||
zig_build x86_64-unknown-linux-gnu linux-x64 $LINUX_LIBNAME $PROFILE
|
||||
|
||||
@@ -2,7 +2,7 @@ name: scripts
|
||||
description: Supporting scripts
|
||||
version: 0.0.1
|
||||
homepage: https://breez.technology
|
||||
repository: https://github.com/breez/breez-liquid-sdk
|
||||
repository: https://github.com/breez/breez-sdk-liquid
|
||||
publish_to: none
|
||||
|
||||
environment:
|
||||
|
||||
Reference in New Issue
Block a user