From 7add324b2a4e338a7184adbb6e322a5326015a19 Mon Sep 17 00:00:00 2001 From: Ross Savage Date: Tue, 30 Apr 2024 22:46:27 +0200 Subject: [PATCH] Rename android, swift and react native bindings --- README.md | 2 +- cli/README.md | 2 +- .../bindings-android/.gitignore | 2 +- .../bindings-android/buildForJitpack.sh | 12 +-- .../bindings-android/lib/build.gradle.kts | 16 +-- .../bindings-android/lib/proguard-rules.pro | 4 +- .../src/gen_kotlin/templates/mapper.kt | 4 +- .../src/gen_kotlin/templates/module.kt | 10 +- .../src/gen_swift/mod.rs | 4 +- .../templates/TopLevelFunctionTemplate.swift | 6 +- .../src/gen_swift/templates/extern.m | 2 +- .../src/gen_swift/templates/mapper.swift | 4 +- .../src/gen_swift/templates/module.swift | 24 ++--- .../src/gen_typescript/mod.rs | 2 +- .../src/gen_typescript/templates/Helpers.ts | 5 + .../templates/TopLevelFunctionTemplate.ts | 4 +- .../src/gen_typescript/templates/module.ts | 6 +- .../bindings-react-native/src/generator.rs | 16 +-- lib/ls-sdk-bindings/bindings-swift/.gitignore | 8 +- .../bindings-swift/Package.swift | 6 +- .../Info.plist | 6 +- .../Headers/breez_liquid_sdkFFI-umbrella.h | 1 + .../Modules/module.modulemap | 6 ++ .../Headers/breez_liquid_sdkFFI-umbrella.h | 1 + .../Modules/module.modulemap | 6 ++ .../Headers/breez_liquid_sdkFFI-umbrella.h | 1 + .../Modules/module.modulemap | 6 ++ .../Headers/ls_sdkFFI-umbrella.h | 1 - .../Modules/module.modulemap | 6 -- .../Headers/ls_sdkFFI-umbrella.h | 1 - .../Modules/module.modulemap | 6 -- .../Headers/ls_sdkFFI-umbrella.h | 1 - .../Modules/module.modulemap | 6 -- lib/ls-sdk-bindings/makefile | 40 +++---- lib/ls-sdk-core/README.md | 2 +- lib/ls-sdk-react-native/.gitignore | 2 +- ...podspec.dev => BreezLiquidSDK.podspec.dev} | 6 +- lib/ls-sdk-react-native/DEVELOPING.md | 44 ++++---- lib/ls-sdk-react-native/PUBLISHING.md | 12 +-- lib/ls-sdk-react-native/android/build.gradle | 8 +- .../android/src/main/AndroidManifest.xml | 2 +- .../BreezLiquidSDKMapper.kt} | 4 +- .../BreezLiquidSDKModule.kt} | 10 +- .../BreezLiquidSDKPackage.kt} | 6 +- ...s_sdk.podspec => breez_liquid_sdk.podspec} | 6 +- lib/ls-sdk-react-native/example/App.js | 2 +- lib/ls-sdk-react-native/example/README.md | 6 +- .../example/android/app/_BUCK | 4 +- .../example/android/app/build.gradle | 6 +- .../ReactNativeFlipper.java | 2 +- .../android/app/src/main/AndroidManifest.xml | 2 +- .../MainActivity.java | 4 +- .../MainApplication.java | 10 +- .../MainApplicationReactNativeHost.java | 8 +- .../components/MainComponentsRegistry.java | 2 +- ...ApplicationTurboModuleManagerDelegate.java | 4 +- .../android/app/src/main/jni/CMakeLists.txt | 2 +- ...ainApplicationTurboModuleManagerDelegate.h | 2 +- .../app/src/main/jni/MainComponentsRegistry.h | 2 +- .../app/src/main/res/values/strings.xml | 2 +- .../example/android/settings.gradle | 6 +- lib/ls-sdk-react-native/example/app.json | 4 +- .../project.pbxproj | 100 +++++++++--------- .../xcschemes/BreezLiquidSDKExample.xcscheme} | 24 ++--- .../contents.xcworkspacedata | 2 +- .../xcshareddata/IDEWorkspaceChecks.plist | 0 .../AppDelegate.h | 0 .../AppDelegate.mm | 2 +- .../AppIcon.appiconset/Contents.json | 0 .../Images.xcassets/Contents.json | 0 .../Info.plist | 2 +- .../LaunchScreen.storyboard | 2 +- .../main.m | 0 lib/ls-sdk-react-native/example/ios/Podfile | 2 +- .../example/ios/Podfile.lock | 14 +-- lib/ls-sdk-react-native/example/package.json | 4 +- lib/ls-sdk-react-native/example/yarn.lock | 2 +- ...der.h => BreezLiquidSDK-Bridging-Header.h} | 0 .../project.pbxproj | 74 ++++++------- .../xcschemes/BreezLiquidSDK.xcscheme} | 12 +-- ...apper.swift => BreezLiquidSDKMapper.swift} | 4 +- .../{RNLiquidSwapSDK.m => RNBreezLiquidSDK.m} | 2 +- ...idSwapSDK.swift => RNBreezLiquidSDK.swift} | 38 +++---- lib/ls-sdk-react-native/makefile | 10 +- lib/ls-sdk-react-native/package.json | 10 +- lib/ls-sdk-react-native/src/index.ts | 25 +++-- 86 files changed, 366 insertions(+), 360 deletions(-) rename lib/ls-sdk-bindings/bindings-swift/{ls_sdkFFI.xcframework => breez_liquid_sdkFFI.xcframework}/Info.plist (89%) create mode 100644 lib/ls-sdk-bindings/bindings-swift/breez_liquid_sdkFFI.xcframework/ios-arm64/breez_liquid_sdkFFI.framework/Headers/breez_liquid_sdkFFI-umbrella.h create mode 100644 lib/ls-sdk-bindings/bindings-swift/breez_liquid_sdkFFI.xcframework/ios-arm64/breez_liquid_sdkFFI.framework/Modules/module.modulemap create mode 100644 lib/ls-sdk-bindings/bindings-swift/breez_liquid_sdkFFI.xcframework/ios-arm64_x86_64-simulator/breez_liquid_sdkFFI.framework/Headers/breez_liquid_sdkFFI-umbrella.h create mode 100644 lib/ls-sdk-bindings/bindings-swift/breez_liquid_sdkFFI.xcframework/ios-arm64_x86_64-simulator/breez_liquid_sdkFFI.framework/Modules/module.modulemap create mode 100644 lib/ls-sdk-bindings/bindings-swift/breez_liquid_sdkFFI.xcframework/macos-arm64_x86_64/breez_liquid_sdkFFI.framework/Headers/breez_liquid_sdkFFI-umbrella.h create mode 100644 lib/ls-sdk-bindings/bindings-swift/breez_liquid_sdkFFI.xcframework/macos-arm64_x86_64/breez_liquid_sdkFFI.framework/Modules/module.modulemap delete mode 100644 lib/ls-sdk-bindings/bindings-swift/ls_sdkFFI.xcframework/ios-arm64/ls_sdkFFI.framework/Headers/ls_sdkFFI-umbrella.h delete mode 100644 lib/ls-sdk-bindings/bindings-swift/ls_sdkFFI.xcframework/ios-arm64/ls_sdkFFI.framework/Modules/module.modulemap delete mode 100644 lib/ls-sdk-bindings/bindings-swift/ls_sdkFFI.xcframework/ios-arm64_x86_64-simulator/ls_sdkFFI.framework/Headers/ls_sdkFFI-umbrella.h delete mode 100644 lib/ls-sdk-bindings/bindings-swift/ls_sdkFFI.xcframework/ios-arm64_x86_64-simulator/ls_sdkFFI.framework/Modules/module.modulemap delete mode 100644 lib/ls-sdk-bindings/bindings-swift/ls_sdkFFI.xcframework/macos-arm64_x86_64/ls_sdkFFI.framework/Headers/ls_sdkFFI-umbrella.h delete mode 100644 lib/ls-sdk-bindings/bindings-swift/ls_sdkFFI.xcframework/macos-arm64_x86_64/ls_sdkFFI.framework/Modules/module.modulemap rename lib/ls-sdk-react-native/{LiquidSwapSDK.podspec.dev => BreezLiquidSDK.podspec.dev} (65%) rename lib/ls-sdk-react-native/android/src/main/java/com/{lssdk/LiquidSwapSDKMapper.kt => breezliquidsdk/BreezLiquidSDKMapper.kt} (99%) rename lib/ls-sdk-react-native/android/src/main/java/com/{lssdk/LiquidSwapSDKModule.kt => breezliquidsdk/BreezLiquidSDKModule.kt} (94%) rename lib/ls-sdk-react-native/android/src/main/java/com/{lssdk/LiquidSwapSDKPackage.kt => breezliquidsdk/BreezLiquidSDKPackage.kt} (79%) rename lib/ls-sdk-react-native/{ls_sdk.podspec => breez_liquid_sdk.podspec} (71%) rename lib/ls-sdk-react-native/example/android/app/src/debug/java/com/example/{lssdk => breezliquidsdk}/ReactNativeFlipper.java (98%) rename lib/ls-sdk-react-native/example/android/app/src/main/java/com/example/{lssdk => breezliquidsdk}/MainActivity.java (95%) rename lib/ls-sdk-react-native/example/android/app/src/main/java/com/example/{lssdk => breezliquidsdk}/MainApplication.java (90%) rename lib/ls-sdk-react-native/example/android/app/src/main/java/com/example/{lssdk => breezliquidsdk}/newarchitecture/MainApplicationReactNativeHost.java (93%) rename lib/ls-sdk-react-native/example/android/app/src/main/java/com/example/{lssdk => breezliquidsdk}/newarchitecture/components/MainComponentsRegistry.java (94%) rename lib/ls-sdk-react-native/example/android/app/src/main/java/com/example/{lssdk => breezliquidsdk}/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java (93%) rename lib/ls-sdk-react-native/example/ios/{LiquidSwapSDKExample.xcodeproj => BreezLiquidSDKExample.xcodeproj}/project.pbxproj (81%) rename lib/ls-sdk-react-native/example/ios/{LiquidSwapSDKExample.xcodeproj/xcshareddata/xcschemes/LiquidSwapSDKExample.xcscheme => BreezLiquidSDKExample.xcodeproj/xcshareddata/xcschemes/BreezLiquidSDKExample.xcscheme} (77%) rename lib/ls-sdk-react-native/example/ios/{LiquidSwapSDKExample.xcworkspace => BreezLiquidSDKExample.xcworkspace}/contents.xcworkspacedata (75%) rename lib/ls-sdk-react-native/example/ios/{LiquidSwapSDKExample.xcworkspace => BreezLiquidSDKExample.xcworkspace}/xcshareddata/IDEWorkspaceChecks.plist (100%) rename lib/ls-sdk-react-native/example/ios/{LiquidSwapSDKExample => BreezLiquidSDKExample}/AppDelegate.h (100%) rename lib/ls-sdk-react-native/example/ios/{LiquidSwapSDKExample => BreezLiquidSDKExample}/AppDelegate.mm (97%) rename lib/ls-sdk-react-native/example/ios/{LiquidSwapSDKExample => BreezLiquidSDKExample}/Images.xcassets/AppIcon.appiconset/Contents.json (100%) rename lib/ls-sdk-react-native/example/ios/{LiquidSwapSDKExample => BreezLiquidSDKExample}/Images.xcassets/Contents.json (100%) rename lib/ls-sdk-react-native/example/ios/{LiquidSwapSDKExample => BreezLiquidSDKExample}/Info.plist (97%) rename lib/ls-sdk-react-native/example/ios/{LiquidSwapSDKExample => BreezLiquidSDKExample}/LaunchScreen.storyboard (94%) rename lib/ls-sdk-react-native/example/ios/{LiquidSwapSDKExample => BreezLiquidSDKExample}/main.m (100%) rename lib/ls-sdk-react-native/ios/{LiquidSwapSDK-Bridging-Header.h => BreezLiquidSDK-Bridging-Header.h} (100%) rename lib/ls-sdk-react-native/ios/{LiquidSwapSDK.xcodeproj => BreezLiquidSDK.xcodeproj}/project.pbxproj (73%) rename lib/ls-sdk-react-native/ios/{LiquidSwapSDK.xcodeproj/xcshareddata/xcschemes/LiquidSwapSDK.xcscheme => BreezLiquidSDK.xcodeproj/xcshareddata/xcschemes/BreezLiquidSDK.xcscheme} (85%) rename lib/ls-sdk-react-native/ios/{LiquidSwapSDKMapper.swift => BreezLiquidSDKMapper.swift} (99%) rename lib/ls-sdk-react-native/ios/{RNLiquidSwapSDK.m => RNBreezLiquidSDK.m} (95%) rename lib/ls-sdk-react-native/ios/{RNLiquidSwapSDK.swift => RNBreezLiquidSDK.swift} (76%) diff --git a/README.md b/README.md index e02324474..cae2921ac 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Liquid Swap SDK +# Breez Liquid SDK - `lib`: [lib/README.md](lib/ls-sdk-core/README.md) - `cli`: [cli/README.md](cli/README.md) diff --git a/cli/README.md b/cli/README.md index daf0b6a58..2d0e7f4c5 100644 --- a/cli/README.md +++ b/cli/README.md @@ -1,4 +1,4 @@ -# breez-sdk-liquid-cli +# breez-liquid-sdk-cli ## Setup diff --git a/lib/ls-sdk-bindings/bindings-android/.gitignore b/lib/ls-sdk-bindings/bindings-android/.gitignore index ec3eaa2e5..5253fa852 100644 --- a/lib/ls-sdk-bindings/bindings-android/.gitignore +++ b/lib/ls-sdk-bindings/bindings-android/.gitignore @@ -45,4 +45,4 @@ gen-external-apklibs # End of https://www.toptal.com/developers/gitignore/api/android lib/src/main/jniLibs/ -lib/src/main/kotlin/ls_sdk +lib/src/main/kotlin/breez_liquid_sdk diff --git a/lib/ls-sdk-bindings/bindings-android/buildForJitpack.sh b/lib/ls-sdk-bindings/bindings-android/buildForJitpack.sh index 1d2974e8b..cec7fdb23 100755 --- a/lib/ls-sdk-bindings/bindings-android/buildForJitpack.sh +++ b/lib/ls-sdk-bindings/bindings-android/buildForJitpack.sh @@ -9,15 +9,15 @@ fi echo "JitPack building version $VERSION." cd $(dirname $0) -curl https://mvn.breez.technology/releases/ls_sdk/bindings-android/$VERSION/bindings-android-$VERSION.aar --output bindings-android-$VERSION.aar -curl https://mvn.breez.technology/releases/ls_sdk/bindings-android/$VERSION/bindings-android-$VERSION.module --output bindings-android-$VERSION.module -curl https://mvn.breez.technology/releases/ls_sdk/bindings-android/$VERSION/bindings-android-$VERSION-sources.jar --output bindings-android-$VERSION-sources.jar -curl https://mvn.breez.technology/releases/ls_sdk/bindings-android/$VERSION/bindings-android-$VERSION.pom --output bindings-android-$VERSION.pom +curl https://mvn.breez.technology/releases/breez_liquid_sdk/bindings-android/$VERSION/bindings-android-$VERSION.aar --output bindings-android-$VERSION.aar +curl https://mvn.breez.technology/releases/breez_liquid_sdk/bindings-android/$VERSION/bindings-android-$VERSION.module --output bindings-android-$VERSION.module +curl https://mvn.breez.technology/releases/breez_liquid_sdk/bindings-android/$VERSION/bindings-android-$VERSION-sources.jar --output bindings-android-$VERSION-sources.jar +curl https://mvn.breez.technology/releases/breez_liquid_sdk/bindings-android/$VERSION/bindings-android-$VERSION.pom --output bindings-android-$VERSION.pom mvn org.apache.maven.plugins:maven-install-plugin:3.1.1:install-file -Dfile=bindings-android-$VERSION.aar -DpomFile=bindings-android-$VERSION.pom mvn org.apache.maven.plugins:maven-install-plugin:3.1.1:install-file -Dfile=bindings-android-$VERSION.module -DpomFile=bindings-android-$VERSION.pom mvn org.apache.maven.plugins:maven-install-plugin:3.1.1:install-file -Dfile=bindings-android-$VERSION-sources.jar -DpomFile=bindings-android-$VERSION.pom -Dclassifier=sources -ls /home/jitpack/.m2/repository/ls_sdk/bindings-android +ls /home/jitpack/.m2/repository/breez_liquid_sdk/bindings-android echo "---" -ls /home/jitpack/.m2/repository/ls_sdk/bindings-android/$VERSION/ +ls /home/jitpack/.m2/repository/breez_liquid_sdk/bindings-android/$VERSION/ diff --git a/lib/ls-sdk-bindings/bindings-android/lib/build.gradle.kts b/lib/ls-sdk-bindings/bindings-android/lib/build.gradle.kts index 7e182d2a8..396065b50 100644 --- a/lib/ls-sdk-bindings/bindings-android/lib/build.gradle.kts +++ b/lib/ls-sdk-bindings/bindings-android/lib/build.gradle.kts @@ -54,7 +54,7 @@ publishing { } maven { name = "breezGitHubPackages" - url = uri("https://maven.pkg.github.com/breez/breez-sdk-liquid") + url = uri("https://maven.pkg.github.com/breez/breez-liquid-sdk") credentials { username = System.getenv("GITHUB_ACTOR") password = System.getenv("GITHUB_TOKEN") @@ -63,7 +63,7 @@ publishing { } publications { create("maven") { - groupId = "ls_sdk" + groupId = "breez_liquid_sdk" artifactId = "bindings-android" version = libraryVersion @@ -72,19 +72,19 @@ publishing { } pom { - name.set("ls-sdk") - description.set("The Liquid Swap SDK enables mobile developers to integrate Liquid swaps into their apps with a very shallow learning curve.") + name.set("breez-liquid-sdk") + description.set("The Breez Liquid SDK enables mobile developers to integrate Liquid swaps into their apps with a very shallow learning curve.") url.set("https://breez.technology") licenses { license { name.set("MIT") - url.set("https://github.com/breez/breez-sdk-liquid/blob/main/LICENSE") + url.set("https://github.com/breez/breez-liquid-sdk/blob/main/LICENSE") } } scm { - connection.set("scm:git:github.com/breez/breez-sdk-liquid.git") - developerConnection.set("scm:git:ssh://github.com/breez/breez-sdk-liquid.git") - url.set("https://github.com/breez/breez-sdk-liquid") + connection.set("scm:git:github.com/breez/breez-liquid-sdk.git") + developerConnection.set("scm:git:ssh://github.com/breez/breez-liquid-sdk.git") + url.set("https://github.com/breez/breez-liquid-sdk") } } } diff --git a/lib/ls-sdk-bindings/bindings-android/lib/proguard-rules.pro b/lib/ls-sdk-bindings/bindings-android/lib/proguard-rules.pro index 61f8edf6b..b21d9fdcb 100644 --- a/lib/ls-sdk-bindings/bindings-android/lib/proguard-rules.pro +++ b/lib/ls-sdk-bindings/bindings-android/lib/proguard-rules.pro @@ -24,7 +24,7 @@ -dontwarn java.awt.* -keep class com.sun.jna.** { *; } -keep class technology.breez.* { *; } --keep class ls_sdk.** { *; } +-keep class breez_liquid_sdk.** { *; } -keepclassmembers class * extends technology.breez.* { public *; } --keepclassmembers class * extends ls_sdk.** { public *; } +-keepclassmembers class * extends breez_liquid_sdk.** { public *; } -keepclassmembers class * extends com.sun.jna.** { public *; } diff --git a/lib/ls-sdk-bindings/bindings-react-native/src/gen_kotlin/templates/mapper.kt b/lib/ls-sdk-bindings/bindings-react-native/src/gen_kotlin/templates/mapper.kt index e08a14b85..b94369242 100644 --- a/lib/ls-sdk-bindings/bindings-react-native/src/gen_kotlin/templates/mapper.kt +++ b/lib/ls-sdk-bindings/bindings-react-native/src/gen_kotlin/templates/mapper.kt @@ -1,6 +1,6 @@ {%- import "macros.kt" as kt -%} -package com.lssdk -import ls_sdk.* +package com.breezliquidsdk +import breez_liquid_sdk.* import com.facebook.react.bridge.* import com.facebook.react.modules.core.DeviceEventManagerModule.RCTDeviceEventEmitter import java.io.File diff --git a/lib/ls-sdk-bindings/bindings-react-native/src/gen_kotlin/templates/module.kt b/lib/ls-sdk-bindings/bindings-react-native/src/gen_kotlin/templates/module.kt index 66cc8ef0f..255284f50 100644 --- a/lib/ls-sdk-bindings/bindings-react-native/src/gen_kotlin/templates/module.kt +++ b/lib/ls-sdk-bindings/bindings-react-native/src/gen_kotlin/templates/module.kt @@ -1,6 +1,6 @@ -package com.lssdk +package com.breezliquidsdk -import ls_sdk.* +import breez_liquid_sdk.* import com.facebook.react.bridge.* import com.facebook.react.modules.core.DeviceEventManagerModule.RCTDeviceEventEmitter import java.io.File @@ -9,12 +9,12 @@ import java.util.concurrent.ExecutorService import java.util.concurrent.Executors {% import "macros.kt" as kt %} -class LiquidSwapSDKModule(reactContext: ReactApplicationContext) : ReactContextBaseJavaModule(reactContext) { +class BreezLiquidSDKModule(reactContext: ReactApplicationContext) : ReactContextBaseJavaModule(reactContext) { private lateinit var executor: ExecutorService private var bindingWallet: BindingWallet? = null companion object { - const val TAG = "RNLiquidSwapSDK" + const val TAG = "RNBreezLiquidSDK" } override fun initialize() { @@ -58,7 +58,7 @@ class LiquidSwapSDKModule(reactContext: ReactApplicationContext) : ReactContextB executor.execute { try { - val dataDirTmp = dataDir.takeUnless { it.isEmpty() } ?: run { reactApplicationContext.filesDir.toString() + "/lsSdk" } + val dataDirTmp = dataDir.takeUnless { it.isEmpty() } ?: run { reactApplicationContext.filesDir.toString() + "/breezLiquidSdk" } val networkTmp = asNetwork(network) bindingWallet = connect(mnemonic, dataDirTmp, networkTmp) promise.resolve(readableMapOf("status" to "ok")) diff --git a/lib/ls-sdk-bindings/bindings-react-native/src/gen_swift/mod.rs b/lib/ls-sdk-bindings/bindings-react-native/src/gen_swift/mod.rs index be1e17c55..0cc701511 100644 --- a/lib/ls-sdk-bindings/bindings-react-native/src/gen_swift/mod.rs +++ b/lib/ls-sdk-bindings/bindings-react-native/src/gen_swift/mod.rs @@ -209,14 +209,14 @@ pub mod filters { } match t { Type::Enum(_) | Type::Record(_) => Ok(format!( - "LiquidSwapSDKMapper.dictionaryOf({}: res{})", + "BreezLiquidSDKMapper.dictionaryOf({}: res{})", name, optional_suffix )), Type::Sequence(inner) => { let unboxed = inner.as_ref(); match unboxed { Type::Enum(_) | Type::Record(_) => Ok(format!( - "LiquidSwapSDKMapper.arrayOf({}List: res{})", + "BreezLiquidSDKMapper.arrayOf({}List: res{})", name, optional_suffix )), _ => Ok(format!("res{}", optional_suffix)), diff --git a/lib/ls-sdk-bindings/bindings-react-native/src/gen_swift/templates/TopLevelFunctionTemplate.swift b/lib/ls-sdk-bindings/bindings-react-native/src/gen_swift/templates/TopLevelFunctionTemplate.swift index 7bab4637b..1cc2352ae 100644 --- a/lib/ls-sdk-bindings/bindings-react-native/src/gen_swift/templates/TopLevelFunctionTemplate.swift +++ b/lib/ls-sdk-bindings/bindings-react-native/src/gen_swift/templates/TopLevelFunctionTemplate.swift @@ -7,14 +7,14 @@ {%- when Type::Enum(inner) %} {%- let e = ci.get_enum_definition(inner).unwrap() %} {%- if e.is_flat() %} - let {{arg.name()|var_name|unquote|temporary}} = try LiquidSwapSDKMapper.as{{arg.type_()|type_name}}({{ arg.type_()|type_name|var_name|unquote }}: {{ arg.name()|var_name|unquote }}) + let {{arg.name()|var_name|unquote|temporary}} = try BreezLiquidSDKMapper.as{{arg.type_()|type_name}}({{ arg.type_()|type_name|var_name|unquote }}: {{ arg.name()|var_name|unquote }}) {%- else %} - let {{arg.name()|var_name|unquote|temporary}} = try LiquidSwapSDKMapper.as{{arg.type_()|type_name}}({{ arg.type_()|type_name|var_name|unquote }}: {{ arg.name()|var_name|unquote }}) + let {{arg.name()|var_name|unquote|temporary}} = try BreezLiquidSDKMapper.as{{arg.type_()|type_name}}({{ arg.type_()|type_name|var_name|unquote }}: {{ arg.name()|var_name|unquote }}) {%- endif %} {%- when Type::Optional(_) %} let {{arg.name()|var_name|unquote|temporary}} = {{ arg.type_()|rn_convert_type(arg.name()|var_name|unquote) -}} {%- when Type::Record(_) %} - let {{arg.type_()|type_name|var_name|unquote}} = try LiquidSwapSDKMapper.as{{arg.type_()|type_name}}({{ arg.type_()|type_name|var_name|unquote }}: {{ arg.name()|var_name|unquote }}) + let {{arg.type_()|type_name|var_name|unquote}} = try BreezLiquidSDKMapper.as{{arg.type_()|type_name}}({{ arg.type_()|type_name|var_name|unquote }}: {{ arg.name()|var_name|unquote }}) {%- else %} {%- endmatch %} {%- endfor %} diff --git a/lib/ls-sdk-bindings/bindings-react-native/src/gen_swift/templates/extern.m b/lib/ls-sdk-bindings/bindings-react-native/src/gen_swift/templates/extern.m index 4d84ddeb6..57878f319 100644 --- a/lib/ls-sdk-bindings/bindings-react-native/src/gen_swift/templates/extern.m +++ b/lib/ls-sdk-bindings/bindings-react-native/src/gen_swift/templates/extern.m @@ -1,7 +1,7 @@ #import #import -@interface RCT_EXTERN_MODULE(RNLiquidSwapSDK, RCTEventEmitter) +@interface RCT_EXTERN_MODULE(RNBreezLiquidSDK, RCTEventEmitter) {% for func in ci.function_definitions() %} {%- if func.name()|ignored_function == false -%} {% include "ExternFunctionTemplate.m" %} diff --git a/lib/ls-sdk-bindings/bindings-react-native/src/gen_swift/templates/mapper.swift b/lib/ls-sdk-bindings/bindings-react-native/src/gen_swift/templates/mapper.swift index e768441e3..ea4ed54f0 100644 --- a/lib/ls-sdk-bindings/bindings-react-native/src/gen_swift/templates/mapper.swift +++ b/lib/ls-sdk-bindings/bindings-react-native/src/gen_swift/templates/mapper.swift @@ -1,8 +1,8 @@ {%- import "macros.swift" as swift -%} import Foundation -import LiquidSwapSDK +import BreezLiquidSDK -enum LiquidSwapSDKMapper { +enum BreezLiquidSDKMapper { {%- include "Types.swift" %} diff --git a/lib/ls-sdk-bindings/bindings-react-native/src/gen_swift/templates/module.swift b/lib/ls-sdk-bindings/bindings-react-native/src/gen_swift/templates/module.swift index 246248169..09dc2e63e 100644 --- a/lib/ls-sdk-bindings/bindings-react-native/src/gen_swift/templates/module.swift +++ b/lib/ls-sdk-bindings/bindings-react-native/src/gen_swift/templates/module.swift @@ -1,9 +1,9 @@ import Foundation -import LiquidSwapSDK +import BreezLiquidSDK -@objc(RNLiquidSwapSDK) -class RNLiquidSwapSDK: RCTEventEmitter { - static let TAG: String = "LiquidSwapSDK" +@objc(RNBreezLiquidSDK) +class RNBreezLiquidSDK: RCTEventEmitter { + static let TAG: String = "BreezLiquidSDK" public static var emitter: RCTEventEmitter! public static var hasListeners: Bool = false @@ -13,12 +13,12 @@ class RNLiquidSwapSDK: RCTEventEmitter { static var defaultDataDir: URL { let applicationDirectory = FileManager.default.urls(for: .applicationSupportDirectory, in: .userDomainMask).first! - return applicationDirectory.appendingPathComponent("lsSdk", isDirectory: true) + return applicationDirectory.appendingPathComponent("breezLiquidSdk", isDirectory: true) } override init() { super.init() - RNLiquidSwapSDK.emitter = self + RNBreezLiquidSDK.emitter = self } @objc @@ -31,11 +31,11 @@ class RNLiquidSwapSDK: RCTEventEmitter { } override func startObserving() { - RNLiquidSwapSDK.hasListeners = true + RNBreezLiquidSDK.hasListeners = true } override func stopObserving() { - RNLiquidSwapSDK.hasListeners = false + RNBreezLiquidSDK.hasListeners = false } @objc @@ -51,7 +51,7 @@ class RNLiquidSwapSDK: RCTEventEmitter { throw LsSdkError.Generic(message: "Not initialized") } - {% let obj_interface = "LiquidSwapSDK." -%} + {% let obj_interface = "BreezLiquidSDK." -%} {% for func in ci.function_definitions() %} {%- if func.name()|ignored_function == false -%} {% include "TopLevelFunctionTemplate.swift" %} @@ -65,9 +65,9 @@ class RNLiquidSwapSDK: RCTEventEmitter { } do { - let dataDirTmp = dataDir.isEmpty ? RNLiquidSwapSDK.defaultDataDir.path : dataDir - let networkTmp = try LiquidSwapSDKMapper.asNetwork(network: network) - bindingWallet = try LiquidSwapSDK.connect(mnemonic: mnemonic, dataDir: dataDirTmp, network: networkTmp) + let dataDirTmp = dataDir.isEmpty ? RNBreezLiquidSDK.defaultDataDir.path : dataDir + let networkTmp = try BreezLiquidSDKMapper.asNetwork(network: network) + bindingWallet = try BreezLiquidSDK.connect(mnemonic: mnemonic, dataDir: dataDirTmp, network: networkTmp) resolve(["status": "ok"]) } catch let err { rejectErr(err: err, reject: reject) diff --git a/lib/ls-sdk-bindings/bindings-react-native/src/gen_typescript/mod.rs b/lib/ls-sdk-bindings/bindings-react-native/src/gen_typescript/mod.rs index a98e5f98a..f9b4fcd3c 100644 --- a/lib/ls-sdk-bindings/bindings-react-native/src/gen_typescript/mod.rs +++ b/lib/ls-sdk-bindings/bindings-react-native/src/gen_typescript/mod.rs @@ -26,7 +26,7 @@ static KEYWORDS: Lazy> = Lazy::new(|| { }); static IGNORED_FUNCTIONS: Lazy> = Lazy::new(|| { - let list: Vec<&str> = vec![]; + let list: Vec<&str> = vec!["connect"]; HashSet::from_iter(list.into_iter().map(|s| s.to_string())) }); diff --git a/lib/ls-sdk-bindings/bindings-react-native/src/gen_typescript/templates/Helpers.ts b/lib/ls-sdk-bindings/bindings-react-native/src/gen_typescript/templates/Helpers.ts index e69de29bb..49d13dd54 100644 --- a/lib/ls-sdk-bindings/bindings-react-native/src/gen_typescript/templates/Helpers.ts +++ b/lib/ls-sdk-bindings/bindings-react-native/src/gen_typescript/templates/Helpers.ts @@ -0,0 +1,5 @@ + +export const connect = async (mnemonic: string, dataDir: string = "", network: Network): Promise => { + const response = await BreezLiquidSDK.connect(mnemonic, dataDir, network) + return response +} diff --git a/lib/ls-sdk-bindings/bindings-react-native/src/gen_typescript/templates/TopLevelFunctionTemplate.ts b/lib/ls-sdk-bindings/bindings-react-native/src/gen_typescript/templates/TopLevelFunctionTemplate.ts index f8091b788..47759bc66 100644 --- a/lib/ls-sdk-bindings/bindings-react-native/src/gen_typescript/templates/TopLevelFunctionTemplate.ts +++ b/lib/ls-sdk-bindings/bindings-react-native/src/gen_typescript/templates/TopLevelFunctionTemplate.ts @@ -1,11 +1,11 @@ {%- match func.return_type() -%} {%- when Some with (return_type) %} export const {{ func.name()|fn_name }} = async ({%- call ts::arg_list_decl(func) -%}): Promise<{{ return_type|return_type_name }}> => { - const response = await LiquidSwapSDK.{{func.name()|fn_name}}({%- call ts::arg_list(func) -%}) + const response = await BreezLiquidSDK.{{func.name()|fn_name}}({%- call ts::arg_list(func) -%}) return response } {%- when None %} export const {{ func.name()|fn_name }} = async ({%- call ts::arg_list_decl(func) -%}): Promise => { - await LiquidSwapSDK.{{ func.name()|fn_name }}({%- call ts::arg_list(func) -%}) + await BreezLiquidSDK.{{ func.name()|fn_name }}({%- call ts::arg_list(func) -%}) } {%- endmatch %} diff --git a/lib/ls-sdk-bindings/bindings-react-native/src/gen_typescript/templates/module.ts b/lib/ls-sdk-bindings/bindings-react-native/src/gen_typescript/templates/module.ts index 7ec7751b9..bb069e1b9 100644 --- a/lib/ls-sdk-bindings/bindings-react-native/src/gen_typescript/templates/module.ts +++ b/lib/ls-sdk-bindings/bindings-react-native/src/gen_typescript/templates/module.ts @@ -1,13 +1,13 @@ import { NativeModules, Platform } from "react-native" const LINKING_ERROR = - `The package 'react-native-liquid-swap-sdk' doesn't seem to be linked. Make sure: \n\n` + + `The package 'react-native-breez-liquid-sdk' doesn't seem to be linked. Make sure: \n\n` + Platform.select({ ios: "- You have run 'pod install'\n", default: "" }) + "- You rebuilt the app after installing the package\n" + "- You are not using Expo managed workflow\n" -const LiquidSwapSDK = NativeModules.RNLiquidSwapSDK - ? NativeModules.RNLiquidSwapSDK +const BreezLiquidSDK = NativeModules.RNBreezLiquidSDK + ? NativeModules.RNBreezLiquidSDK : new Proxy( {}, { diff --git a/lib/ls-sdk-bindings/bindings-react-native/src/generator.rs b/lib/ls-sdk-bindings/bindings-react-native/src/generator.rs index 057ceb6e8..2e7d250ea 100644 --- a/lib/ls-sdk-bindings/bindings-react-native/src/generator.rs +++ b/lib/ls-sdk-bindings/bindings-react-native/src/generator.rs @@ -36,7 +36,8 @@ impl RNBindingGenerator { base_output_path: &Utf8Path, ) -> Result<()> { // Create the path - let output_path = base_output_path.join(Utf8Path::new("android/src/main/java/com/lssdk")); + let output_path = + base_output_path.join(Utf8Path::new("android/src/main/java/com/breezliquidsdk")); // Generate and write the binding to file let bindings_output = self::gen_kotlin::MapperGenerator::new(config.clone(), ci) .render() @@ -45,7 +46,7 @@ impl RNBindingGenerator { .write_bindings( &bindings_output, &output_path, - Utf8Path::new("LiquidSwapSDKMapper.kt"), + Utf8Path::new("BreezLiquidSDKMapper.kt"), ) .unwrap(); // Lint binding @@ -60,7 +61,8 @@ impl RNBindingGenerator { base_output_path: &Utf8Path, ) -> Result<()> { // Create the path - let output_path = base_output_path.join(Utf8Path::new("android/src/main/java/com/lssdk")); + let output_path = + base_output_path.join(Utf8Path::new("android/src/main/java/com/breezliquidsdk")); // Generate and write the binding to file let bindings_output = self::gen_kotlin::ModuleGenerator::new(config.clone(), ci) .render() @@ -69,7 +71,7 @@ impl RNBindingGenerator { .write_bindings( &bindings_output, &output_path, - Utf8Path::new("LiquidSwapSDKModule.kt"), + Utf8Path::new("BreezLiquidSDKModule.kt"), ) .unwrap(); // Lint binding @@ -103,7 +105,7 @@ impl RNBindingGenerator { .write_bindings( &bindings_output, &output_path, - Utf8Path::new("LiquidSwapSDKMapper.swift"), + Utf8Path::new("BreezLiquidSDKMapper.swift"), ) .unwrap(); // Lint binding @@ -127,7 +129,7 @@ impl RNBindingGenerator { .write_bindings( &bindings_output, &output_path, - Utf8Path::new("RNLiquidSwapSDK.m"), + Utf8Path::new("RNBreezLiquidSDK.m"), ) .unwrap(); // Lint binding @@ -151,7 +153,7 @@ impl RNBindingGenerator { .write_bindings( &bindings_output, &output_path, - Utf8Path::new("RNLiquidSwapSDK.swift"), + Utf8Path::new("RNBreezLiquidSDK.swift"), ) .unwrap(); // Lint binding diff --git a/lib/ls-sdk-bindings/bindings-swift/.gitignore b/lib/ls-sdk-bindings/bindings-swift/.gitignore index bbefbc0b7..bef2463df 100644 --- a/lib/ls-sdk-bindings/bindings-swift/.gitignore +++ b/lib/ls-sdk-bindings/bindings-swift/.gitignore @@ -2,7 +2,7 @@ .build/ *.xcodeproj *.podspec -Sources/LiquidSwapSDK/LiquidSwapSDK.swift -**/ls_sdkFFI.h -**/ls_sdkFFI -**/ls_sdkFFI.modulemap +Sources/BreezLiquidSDK/BreezLiquidSDK.swift +**/breez_liquid_sdkFFI.h +**/breez_liquid_sdkFFI +**/breez_liquid_sdkFFI.modulemap diff --git a/lib/ls-sdk-bindings/bindings-swift/Package.swift b/lib/ls-sdk-bindings/bindings-swift/Package.swift index d7d1545ad..c1f6bf536 100644 --- a/lib/ls-sdk-bindings/bindings-swift/Package.swift +++ b/lib/ls-sdk-bindings/bindings-swift/Package.swift @@ -10,10 +10,10 @@ let package = Package( .iOS(.v11), ], products: [ - .library(name: "LiquidSwapSDK", targets: ["ls_sdkFFI", "LiquidSwapSDK"]), + .library(name: "BreezLiquidSDK", targets: ["breez_liquid_sdkFFI", "BreezLiquidSDK"]), ], targets: [ - .binaryTarget(name: "ls_sdkFFI", path: "./ls_sdkFFI.xcframework"), - .target(name: "LiquidSwapSDK", dependencies: ["ls_sdkFFI"]), + .binaryTarget(name: "breez_liquid_sdkFFI", path: "./breez_liquid_sdkFFI.xcframework"), + .target(name: "BreezLiquidSDK", dependencies: ["breez_liquid_sdkFFI"]), ] ) diff --git a/lib/ls-sdk-bindings/bindings-swift/ls_sdkFFI.xcframework/Info.plist b/lib/ls-sdk-bindings/bindings-swift/breez_liquid_sdkFFI.xcframework/Info.plist similarity index 89% rename from lib/ls-sdk-bindings/bindings-swift/ls_sdkFFI.xcframework/Info.plist rename to lib/ls-sdk-bindings/bindings-swift/breez_liquid_sdkFFI.xcframework/Info.plist index 9145ac637..356e5e57c 100644 --- a/lib/ls-sdk-bindings/bindings-swift/ls_sdkFFI.xcframework/Info.plist +++ b/lib/ls-sdk-bindings/bindings-swift/breez_liquid_sdkFFI.xcframework/Info.plist @@ -8,7 +8,7 @@ LibraryIdentifier macos-arm64_x86_64 LibraryPath - ls_sdkFFI.framework + breez_liquid_sdkFFI.framework SupportedArchitectures arm64 @@ -21,7 +21,7 @@ LibraryIdentifier ios-arm64_x86_64-simulator LibraryPath - ls_sdkFFI.framework + breez_liquid_sdkFFI.framework SupportedArchitectures arm64 @@ -36,7 +36,7 @@ LibraryIdentifier ios-arm64 LibraryPath - ls_sdkFFI.framework + breez_liquid_sdkFFI.framework SupportedArchitectures arm64 diff --git a/lib/ls-sdk-bindings/bindings-swift/breez_liquid_sdkFFI.xcframework/ios-arm64/breez_liquid_sdkFFI.framework/Headers/breez_liquid_sdkFFI-umbrella.h b/lib/ls-sdk-bindings/bindings-swift/breez_liquid_sdkFFI.xcframework/ios-arm64/breez_liquid_sdkFFI.framework/Headers/breez_liquid_sdkFFI-umbrella.h new file mode 100644 index 000000000..384bf46fe --- /dev/null +++ b/lib/ls-sdk-bindings/bindings-swift/breez_liquid_sdkFFI.xcframework/ios-arm64/breez_liquid_sdkFFI.framework/Headers/breez_liquid_sdkFFI-umbrella.h @@ -0,0 +1 @@ +#import "breez_liquid_sdkFFI.h" diff --git a/lib/ls-sdk-bindings/bindings-swift/breez_liquid_sdkFFI.xcframework/ios-arm64/breez_liquid_sdkFFI.framework/Modules/module.modulemap b/lib/ls-sdk-bindings/bindings-swift/breez_liquid_sdkFFI.xcframework/ios-arm64/breez_liquid_sdkFFI.framework/Modules/module.modulemap new file mode 100644 index 000000000..e637b6ae3 --- /dev/null +++ b/lib/ls-sdk-bindings/bindings-swift/breez_liquid_sdkFFI.xcframework/ios-arm64/breez_liquid_sdkFFI.framework/Modules/module.modulemap @@ -0,0 +1,6 @@ +framework module breez_liquid_sdkFFI { + umbrella header "breez_liquid_sdkFFI-umbrella.h" + + export * + module * { export * } +} diff --git a/lib/ls-sdk-bindings/bindings-swift/breez_liquid_sdkFFI.xcframework/ios-arm64_x86_64-simulator/breez_liquid_sdkFFI.framework/Headers/breez_liquid_sdkFFI-umbrella.h b/lib/ls-sdk-bindings/bindings-swift/breez_liquid_sdkFFI.xcframework/ios-arm64_x86_64-simulator/breez_liquid_sdkFFI.framework/Headers/breez_liquid_sdkFFI-umbrella.h new file mode 100644 index 000000000..384bf46fe --- /dev/null +++ b/lib/ls-sdk-bindings/bindings-swift/breez_liquid_sdkFFI.xcframework/ios-arm64_x86_64-simulator/breez_liquid_sdkFFI.framework/Headers/breez_liquid_sdkFFI-umbrella.h @@ -0,0 +1 @@ +#import "breez_liquid_sdkFFI.h" diff --git a/lib/ls-sdk-bindings/bindings-swift/breez_liquid_sdkFFI.xcframework/ios-arm64_x86_64-simulator/breez_liquid_sdkFFI.framework/Modules/module.modulemap b/lib/ls-sdk-bindings/bindings-swift/breez_liquid_sdkFFI.xcframework/ios-arm64_x86_64-simulator/breez_liquid_sdkFFI.framework/Modules/module.modulemap new file mode 100644 index 000000000..e637b6ae3 --- /dev/null +++ b/lib/ls-sdk-bindings/bindings-swift/breez_liquid_sdkFFI.xcframework/ios-arm64_x86_64-simulator/breez_liquid_sdkFFI.framework/Modules/module.modulemap @@ -0,0 +1,6 @@ +framework module breez_liquid_sdkFFI { + umbrella header "breez_liquid_sdkFFI-umbrella.h" + + export * + module * { export * } +} diff --git a/lib/ls-sdk-bindings/bindings-swift/breez_liquid_sdkFFI.xcframework/macos-arm64_x86_64/breez_liquid_sdkFFI.framework/Headers/breez_liquid_sdkFFI-umbrella.h b/lib/ls-sdk-bindings/bindings-swift/breez_liquid_sdkFFI.xcframework/macos-arm64_x86_64/breez_liquid_sdkFFI.framework/Headers/breez_liquid_sdkFFI-umbrella.h new file mode 100644 index 000000000..384bf46fe --- /dev/null +++ b/lib/ls-sdk-bindings/bindings-swift/breez_liquid_sdkFFI.xcframework/macos-arm64_x86_64/breez_liquid_sdkFFI.framework/Headers/breez_liquid_sdkFFI-umbrella.h @@ -0,0 +1 @@ +#import "breez_liquid_sdkFFI.h" diff --git a/lib/ls-sdk-bindings/bindings-swift/breez_liquid_sdkFFI.xcframework/macos-arm64_x86_64/breez_liquid_sdkFFI.framework/Modules/module.modulemap b/lib/ls-sdk-bindings/bindings-swift/breez_liquid_sdkFFI.xcframework/macos-arm64_x86_64/breez_liquid_sdkFFI.framework/Modules/module.modulemap new file mode 100644 index 000000000..e637b6ae3 --- /dev/null +++ b/lib/ls-sdk-bindings/bindings-swift/breez_liquid_sdkFFI.xcframework/macos-arm64_x86_64/breez_liquid_sdkFFI.framework/Modules/module.modulemap @@ -0,0 +1,6 @@ +framework module breez_liquid_sdkFFI { + umbrella header "breez_liquid_sdkFFI-umbrella.h" + + export * + module * { export * } +} diff --git a/lib/ls-sdk-bindings/bindings-swift/ls_sdkFFI.xcframework/ios-arm64/ls_sdkFFI.framework/Headers/ls_sdkFFI-umbrella.h b/lib/ls-sdk-bindings/bindings-swift/ls_sdkFFI.xcframework/ios-arm64/ls_sdkFFI.framework/Headers/ls_sdkFFI-umbrella.h deleted file mode 100644 index 74b3197ed..000000000 --- a/lib/ls-sdk-bindings/bindings-swift/ls_sdkFFI.xcframework/ios-arm64/ls_sdkFFI.framework/Headers/ls_sdkFFI-umbrella.h +++ /dev/null @@ -1 +0,0 @@ -#import "ls_sdkFFI.h" diff --git a/lib/ls-sdk-bindings/bindings-swift/ls_sdkFFI.xcframework/ios-arm64/ls_sdkFFI.framework/Modules/module.modulemap b/lib/ls-sdk-bindings/bindings-swift/ls_sdkFFI.xcframework/ios-arm64/ls_sdkFFI.framework/Modules/module.modulemap deleted file mode 100644 index 161079d5d..000000000 --- a/lib/ls-sdk-bindings/bindings-swift/ls_sdkFFI.xcframework/ios-arm64/ls_sdkFFI.framework/Modules/module.modulemap +++ /dev/null @@ -1,6 +0,0 @@ -framework module ls_sdkFFI { - umbrella header "ls_sdkFFI-umbrella.h" - - export * - module * { export * } -} diff --git a/lib/ls-sdk-bindings/bindings-swift/ls_sdkFFI.xcframework/ios-arm64_x86_64-simulator/ls_sdkFFI.framework/Headers/ls_sdkFFI-umbrella.h b/lib/ls-sdk-bindings/bindings-swift/ls_sdkFFI.xcframework/ios-arm64_x86_64-simulator/ls_sdkFFI.framework/Headers/ls_sdkFFI-umbrella.h deleted file mode 100644 index 74b3197ed..000000000 --- a/lib/ls-sdk-bindings/bindings-swift/ls_sdkFFI.xcframework/ios-arm64_x86_64-simulator/ls_sdkFFI.framework/Headers/ls_sdkFFI-umbrella.h +++ /dev/null @@ -1 +0,0 @@ -#import "ls_sdkFFI.h" diff --git a/lib/ls-sdk-bindings/bindings-swift/ls_sdkFFI.xcframework/ios-arm64_x86_64-simulator/ls_sdkFFI.framework/Modules/module.modulemap b/lib/ls-sdk-bindings/bindings-swift/ls_sdkFFI.xcframework/ios-arm64_x86_64-simulator/ls_sdkFFI.framework/Modules/module.modulemap deleted file mode 100644 index 161079d5d..000000000 --- a/lib/ls-sdk-bindings/bindings-swift/ls_sdkFFI.xcframework/ios-arm64_x86_64-simulator/ls_sdkFFI.framework/Modules/module.modulemap +++ /dev/null @@ -1,6 +0,0 @@ -framework module ls_sdkFFI { - umbrella header "ls_sdkFFI-umbrella.h" - - export * - module * { export * } -} diff --git a/lib/ls-sdk-bindings/bindings-swift/ls_sdkFFI.xcframework/macos-arm64_x86_64/ls_sdkFFI.framework/Headers/ls_sdkFFI-umbrella.h b/lib/ls-sdk-bindings/bindings-swift/ls_sdkFFI.xcframework/macos-arm64_x86_64/ls_sdkFFI.framework/Headers/ls_sdkFFI-umbrella.h deleted file mode 100644 index 74b3197ed..000000000 --- a/lib/ls-sdk-bindings/bindings-swift/ls_sdkFFI.xcframework/macos-arm64_x86_64/ls_sdkFFI.framework/Headers/ls_sdkFFI-umbrella.h +++ /dev/null @@ -1 +0,0 @@ -#import "ls_sdkFFI.h" diff --git a/lib/ls-sdk-bindings/bindings-swift/ls_sdkFFI.xcframework/macos-arm64_x86_64/ls_sdkFFI.framework/Modules/module.modulemap b/lib/ls-sdk-bindings/bindings-swift/ls_sdkFFI.xcframework/macos-arm64_x86_64/ls_sdkFFI.framework/Modules/module.modulemap deleted file mode 100644 index 161079d5d..000000000 --- a/lib/ls-sdk-bindings/bindings-swift/ls_sdkFFI.xcframework/macos-arm64_x86_64/ls_sdkFFI.framework/Modules/module.modulemap +++ /dev/null @@ -1,6 +0,0 @@ -framework module ls_sdkFFI { - umbrella header "ls_sdkFFI-umbrella.h" - - export * - module * { export * } -} diff --git a/lib/ls-sdk-bindings/makefile b/lib/ls-sdk-bindings/makefile index aa4a17b14..4e1c89189 100644 --- a/lib/ls-sdk-bindings/makefile +++ b/lib/ls-sdk-bindings/makefile @@ -54,7 +54,7 @@ x86_64-linux-android: $(SOURCES) ndk-home bindings-android: android cp -r ffi/kotlin/jniLibs bindings-android/lib/src/main - cp -r ffi/kotlin/ls_sdk bindings-android/lib/src/main/kotlin/ + cp -r ffi/kotlin/breez_liquid_sdk bindings-android/lib/src/main/kotlin/ cd bindings-android && ./gradlew assemble mkdir -p ffi/android cp bindings-android/lib/build/outputs/aar/lib-release.aar ffi/android @@ -72,40 +72,40 @@ ios-universal: $(SOURCES) cargo build --release --target x86_64-apple-ios ;\ cargo build --release --target aarch64-apple-ios-sim ;\ # build universal lib for arm device and x86 sim - lipo -create -output ../target/ios-universal/release/libls_sdk_bindings.a ../target/aarch64-apple-ios/release/libls_sdk_bindings.a ../target/x86_64-apple-ios/release/libls_sdk_bindings.a + lipo -create -output ../target/ios-universal/release/libbreez_liquid_sdk_bindings.a ../target/aarch64-apple-ios/release/libbreez_liquid_sdk_bindings.a ../target/x86_64-apple-ios/release/libbreez_liquid_sdk_bindings.a # build universal lib for arm sim and x86 sim - lipo -create -output ../target/ios-universal-sim/release/libls_sdk_bindings.a ../target/aarch64-apple-ios-sim/release/libls_sdk_bindings.a ../target/x86_64-apple-ios/release/libls_sdk_bindings.a + lipo -create -output ../target/ios-universal-sim/release/libbreez_liquid_sdk_bindings.a ../target/aarch64-apple-ios-sim/release/libbreez_liquid_sdk_bindings.a ../target/x86_64-apple-ios/release/libbreez_liquid_sdk_bindings.a darwin-universal: $(SOURCES) mkdir -p ../target/darwin-universal/release cargo lipo --release --targets aarch64-apple-darwin cargo lipo --release --targets x86_64-apple-darwin - lipo -create -output ../target/darwin-universal/release/libls_sdk_bindings.dylib ../target/aarch64-apple-darwin/release/libls_sdk_bindings.dylib ../target/x86_64-apple-darwin/release/libls_sdk_bindings.dylib - lipo -create -output ../target/darwin-universal/release/libls_sdk_bindings.a ../target/aarch64-apple-darwin/release/libls_sdk_bindings.a ../target/x86_64-apple-darwin/release/libls_sdk_bindings.a + lipo -create -output ../target/darwin-universal/release/libbreez_liquid_sdk_bindings.dylib ../target/aarch64-apple-darwin/release/libbreez_liquid_sdk_bindings.dylib ../target/x86_64-apple-darwin/release/libbreez_liquid_sdk_bindings.dylib + lipo -create -output ../target/darwin-universal/release/libbreez_liquid_sdk_bindings.a ../target/aarch64-apple-darwin/release/libbreez_liquid_sdk_bindings.a ../target/x86_64-apple-darwin/release/libbreez_liquid_sdk_bindings.a ## Swift swift-ios: ios-universal cargo run --features=uniffi/cli --bin uniffi-bindgen generate src/breez_liquid_sdk.udl -l swift -o ffi/swift-ios - cp ../target/ios-universal/release/libls_sdk_bindings.a ffi/swift-ios - cd ffi/swift-ios && "swiftc" "-emit-module" "-module-name" "ls_sdk_bindings" "-Xcc" "-fmodule-map-file=$(CURRENT_DIR)/ffi/swift-ios/ls_sdkFFI.modulemap" "-I" "." "-L" "." "-lls_sdk_bindings" ls_sdk.swift + cp ../target/ios-universal/release/libbreez_liquid_sdk_bindings.a ffi/swift-ios + cd ffi/swift-ios && "swiftc" "-emit-module" "-module-name" "breez_liquid_sdk_bindings" "-Xcc" "-fmodule-map-file=$(CURRENT_DIR)/ffi/swift-ios/breez_liquid_sdkFFI.modulemap" "-I" "." "-L" "." "-lbreez_liquid_sdk_bindings" breez_liquid_sdk.swift swift-darwin: darwin-universal cargo run --features=uniffi/cli --bin uniffi-bindgen generate src/breez_liquid_sdk.udl -l swift -o ffi/swift-darwin - cp ../target/darwin-universal/release/libls_sdk_bindings.dylib ffi/swift-darwin - cd ffi/swift-darwin && "swiftc" "-emit-module" "-module-name" "ls_sdk_bindings" "-Xcc" "-fmodule-map-file=$(CURRENT_DIR)/ffi/swift-darwin/ls_sdkFFI.modulemap" "-I" "." "-L" "." "-lls_sdk_bindings" ls_sdk.swift + cp ../target/darwin-universal/release/libbreez_liquid_sdk_bindings.dylib ffi/swift-darwin + cd ffi/swift-darwin && "swiftc" "-emit-module" "-module-name" "breez_liquid_sdk_bindings" "-Xcc" "-fmodule-map-file=$(CURRENT_DIR)/ffi/swift-darwin/breez_liquid_sdkFFI.modulemap" "-I" "." "-L" "." "-lbreez_liquid_sdk_bindings" breez_liquid_sdk.swift bindings-swift: ios-universal darwin-universal - mkdir -p bindings-swift/Sources/LiquidSwapSDK - cargo run --features=uniffi/cli --bin uniffi-bindgen generate src/breez_liquid_sdk.udl --no-format --language swift -o bindings-swift/Sources/LiquidSwapSDK - mv bindings-swift/Sources/LiquidSwapSDK/ls_sdk.swift bindings-swift/Sources/LiquidSwapSDK/LiquidSwapSDK.swift - cp bindings-swift/Sources/LiquidSwapSDK/ls_sdkFFI.h bindings-swift/ls_sdkFFI.xcframework/ios-arm64/ls_sdkFFI.framework/Headers - cp bindings-swift/Sources/LiquidSwapSDK/ls_sdkFFI.h bindings-swift/ls_sdkFFI.xcframework/ios-arm64_x86_64-simulator/ls_sdkFFI.framework/Headers - cp bindings-swift/Sources/LiquidSwapSDK/ls_sdkFFI.h bindings-swift/ls_sdkFFI.xcframework/macos-arm64_x86_64/ls_sdkFFI.framework/Headers - cp ../target/aarch64-apple-ios/release/libls_sdk_bindings.a bindings-swift/ls_sdkFFI.xcframework/ios-arm64/ls_sdkFFI.framework/ls_sdkFFI - cp ../target/ios-universal-sim/release/libls_sdk_bindings.a bindings-swift/ls_sdkFFI.xcframework/ios-arm64_x86_64-simulator/ls_sdkFFI.framework/ls_sdkFFI - cp ../target/darwin-universal/release/libls_sdk_bindings.a bindings-swift/ls_sdkFFI.xcframework/macos-arm64_x86_64/ls_sdkFFI.framework/ls_sdkFFI - rm bindings-swift/Sources/LiquidSwapSDK/ls_sdkFFI.h - rm bindings-swift/Sources/LiquidSwapSDK/ls_sdkFFI.modulemap + mkdir -p bindings-swift/Sources/BreezLiquidSDK + cargo run --features=uniffi/cli --bin uniffi-bindgen generate src/breez_liquid_sdk.udl --no-format --language swift -o bindings-swift/Sources/BreezLiquidSDK + mv bindings-swift/Sources/BreezLiquidSDK/breez_liquid_sdk.swift bindings-swift/Sources/BreezLiquidSDK/BreezLiquidSDK.swift + cp bindings-swift/Sources/BreezLiquidSDK/breez_liquid_sdkFFI.h bindings-swift/breez_liquid_sdkFFI.xcframework/ios-arm64/breez_liquid_sdkFFI.framework/Headers + cp bindings-swift/Sources/BreezLiquidSDK/breez_liquid_sdkFFI.h bindings-swift/breez_liquid_sdkFFI.xcframework/ios-arm64_x86_64-simulator/breez_liquid_sdkFFI.framework/Headers + cp bindings-swift/Sources/BreezLiquidSDK/breez_liquid_sdkFFI.h bindings-swift/breez_liquid_sdkFFI.xcframework/macos-arm64_x86_64/breez_liquid_sdkFFI.framework/Headers + cp ../target/aarch64-apple-ios/release/libbreez_liquid_sdk_bindings.a bindings-swift/breez_liquid_sdkFFI.xcframework/ios-arm64/breez_liquid_sdkFFI.framework/breez_liquid_sdkFFI + cp ../target/ios-universal-sim/release/libbreez_liquid_sdk_bindings.a bindings-swift/breez_liquid_sdkFFI.xcframework/ios-arm64_x86_64-simulator/breez_liquid_sdkFFI.framework/breez_liquid_sdkFFI + cp ../target/darwin-universal/release/libbreez_liquid_sdk_bindings.a bindings-swift/breez_liquid_sdkFFI.xcframework/macos-arm64_x86_64/breez_liquid_sdkFFI.framework/breez_liquid_sdkFFI + rm bindings-swift/Sources/BreezLiquidSDK/breez_liquid_sdkFFI.h + rm bindings-swift/Sources/BreezLiquidSDK/breez_liquid_sdkFFI.modulemap ## Python python: $(SOURCES) diff --git a/lib/ls-sdk-core/README.md b/lib/ls-sdk-core/README.md index dcc621772..19faffce3 100644 --- a/lib/ls-sdk-core/README.md +++ b/lib/ls-sdk-core/README.md @@ -1,4 +1,4 @@ -# breez-sdk-liquid +# breez-liquid-sdk ## Prerequisites diff --git a/lib/ls-sdk-react-native/.gitignore b/lib/ls-sdk-react-native/.gitignore index 028adaafa..15d134321 100644 --- a/lib/ls-sdk-react-native/.gitignore +++ b/lib/ls-sdk-react-native/.gitignore @@ -68,7 +68,7 @@ android/keystores/debug.keystore lib/ # bindings (used for local development only) -android/src/main/java/com/lssdk/ls_sdk.kt +android/src/main/java/com/breezliquidsdk/breez_liquid_sdk.kt android/src/main/jniLibs ios/include/* ios/libs/* diff --git a/lib/ls-sdk-react-native/LiquidSwapSDK.podspec.dev b/lib/ls-sdk-react-native/BreezLiquidSDK.podspec.dev similarity index 65% rename from lib/ls-sdk-react-native/LiquidSwapSDK.podspec.dev rename to lib/ls-sdk-react-native/BreezLiquidSDK.podspec.dev index de534cda4..09472364b 100644 --- a/lib/ls-sdk-react-native/LiquidSwapSDK.podspec.dev +++ b/lib/ls-sdk-react-native/BreezLiquidSDK.podspec.dev @@ -3,7 +3,7 @@ require "json" package = JSON.parse(File.read(File.join(__dir__, "package.json"))) Pod::Spec.new do |s| - s.name = "LiquidSwapSDK" + s.name = "BreezLiquidSDK" s.version = package["version"] s.summary = package["description"] s.homepage = package["homepage"] @@ -11,10 +11,10 @@ Pod::Spec.new do |s| s.authors = package["author"] s.platforms = { :ios => "11.0" } - s.source = { :git => "https://github.com/breez/breez-sdk-liquid.git", :tag => "#{s.version}" } + s.source = { :git => "https://github.com/breez/breez-liquid-sdk.git", :tag => "#{s.version}" } s.source_files = "ios/**/*.{h,m,mm,swift}" s.dependency "React-Core" - s.vendored_frameworks = "ios/bindings-swift/ls_sdkFFI.xcframework" + s.vendored_frameworks = "ios/bindings-swift/breez_liquid_sdkFFI.xcframework" end diff --git a/lib/ls-sdk-react-native/DEVELOPING.md b/lib/ls-sdk-react-native/DEVELOPING.md index d8a5f0038..0254eb1a4 100644 --- a/lib/ls-sdk-react-native/DEVELOPING.md +++ b/lib/ls-sdk-react-native/DEVELOPING.md @@ -1,12 +1,12 @@ # Setting up a development environment -The Liquid Swap SDK React Native plugin consumes the underlying Liquid Swap SDK from the following sources: +The Breez Liquid SDK React Native plugin consumes the underlying Breez Liquid SDK from the following sources: -- For iOS: The Liquid Swap SDK Swift bindings are integrated via CocoaPods. -- For Android: The Liquid Swap SDK Android bindings are integrated via Jitpack. +- For iOS: The Breez Liquid SDK Swift bindings are integrated via CocoaPods. +- For Android: The Breez Liquid SDK Android bindings are integrated via Jitpack. -When developing, it can be useful to work with a locally built version of the Liquid Swap SDK instead of relying on what is published already on CocoaPods / Jitpack. -To do this, you first need to build the Liquid Swap SDK bindings locally and then point the plugin to make use of the locally built Liquid Swap SDK bindings. +When developing, it can be useful to work with a locally built version of the Breez Liquid SDK instead of relying on what is published already on CocoaPods / Jitpack. +To do this, you first need to build the Breez Liquid SDK bindings locally and then point the plugin to make use of the locally built Breez Liquid SDK bindings. All the following commands can be run in the `lib/ls-sdk-react-native` directory. @@ -38,19 +38,19 @@ make all This will generate the following artifacts: - iOS - - `ios/LiquidSwapSDKMapper.swift` - - `ios/LiquidSwapSDK.m` - - `ios/LiquidSwapSDK.swift` - - `ios/bindings-swift/ls_sdkFFI.xcframework` - - `ios/bindings-swift/Sources/LiquidSwapSDK/LiquidSwapSDK.swift` + - `ios/BreezLiquidSDKMapper.swift` + - `ios/BreezLiquidSDK.m` + - `ios/BreezLiquidSDK.swift` + - `ios/bindings-swift/breez_liquid_sdkFFI.xcframework` + - `ios/bindings-swift/Sources/BreezLiquidSDK/BreezLiquidSDK.swift` - Android - - `android/src/main/java/com/lssdk/ls_sdk.kt` - - `android/src/main/java/com/lssdk/LiquidSwapSDKMapper.kt` - - `android/src/main/java/com/lssdk/LiquidSwapSDKModule.kt` - - `android/src/main/jniLibs/arm64-v8a/libls_sdk_bindings.so` - - `android/src/main/jniLibs/armeabi-v7a/libls_sdk_bindings.so` - - `android/src/main/jniLibs/x86/libls_sdk_bindings.so` - - `android/src/main/jniLibs/x86_64/libls_sdk_bindings.so` + - `android/src/main/java/com/breezliquidsdk/breez_liquid_sdk.kt` + - `android/src/main/java/com/breezliquidsdk/BreezLiquidSDKMapper.kt` + - `android/src/main/java/com/breezliquidsdk/BreezLiquidSDKModule.kt` + - `android/src/main/jniLibs/arm64-v8a/libbreez_liquid_sdk_bindings.so` + - `android/src/main/jniLibs/armeabi-v7a/libbreez_liquid_sdk_bindings.so` + - `android/src/main/jniLibs/x86/libbreez_liquid_sdk_bindings.so` + - `android/src/main/jniLibs/x86_64/libbreez_liquid_sdk_bindings.so` - Typescript - `src/index.ts` @@ -71,11 +71,11 @@ To use the locally built bindings instead of integrating them remotely, make the - For iOS: - Rename the podspec files in `lib/ls-sdk-react-native/`: - - Rename `ls_sdk.podspec` to `ls_sdk.podspec.prod` - - Rename `LiquidSwapSDK.podspec.dev` to `LiquidSwapSDK.podspec` + - Rename `breez_liquid_sdk.podspec` to `breez_liquid_sdk.podspec.prod` + - Rename `BreezLiquidSDK.podspec.dev` to `BreezLiquidSDK.podspec` - For Android: - Comment out the following line from the dependencies section in `lib/ls-sdk-react-native/android/build.gradle`: - - `implementation("com.github.breez:breez-sdk-liquid:${getVersionFromNpmPackage()}") { exclude group:"net.java.dev.jna" }` + - `implementation("com.github.breez:breez-liquid-sdk:${getVersionFromNpmPackage()}") { exclude group:"net.java.dev.jna" }` Reinstall the dependencies in the example project and run it. It will now use the locally built bindings. @@ -85,10 +85,10 @@ It will now use the locally built bindings. To test locally built bindings in the example app, the npm dependencies need to be updated to use the local package. In `lib/ls-sdk-react-native/example/package.json` replace the current version with `file:../`: ```json - "@breeztech/react-native-liquid-swap-sdk": "file:../", + "@breeztech/react-native-breez-liquid-sdk": "file:../", ``` -Run the npm/yarn install to download dependences for both the react-native-liquid-swap-sdk package and the example app: +Run the npm/yarn install to download dependences for both the react-native-breez-liquid-sdk package and the example app: ```bash yarn bootstrap ``` diff --git a/lib/ls-sdk-react-native/PUBLISHING.md b/lib/ls-sdk-react-native/PUBLISHING.md index bedc5a2ce..49e94b374 100644 --- a/lib/ls-sdk-react-native/PUBLISHING.md +++ b/lib/ls-sdk-react-native/PUBLISHING.md @@ -18,19 +18,19 @@ make react-native ### Generated artifacts * Android - >* android/src/main/java/com/lssdk/LiquidSwapSDKMapper.kt - >* android/src/main/java/com/lssdk/LiquidSwapSDKModule.kt + >* android/src/main/java/com/breezliquidsdk/BreezLiquidSDKMapper.kt + >* android/src/main/java/com/breezliquidsdk/BreezLiquidSDKModule.kt * iOS - >* ios/LiquidSwapSDKMapper.swift - >* ios/LiquidSwapSDK.m - >* ios/LiquidSwapSDK.swift + >* ios/BreezLiquidSDKMapper.swift + >* ios/BreezLiquidSDK.m + >* ios/BreezLiquidSDK.swift * Typescript >* src/index.ts ### Publish When publishing, make sure the following are updated: - Update the version number in `package.json`. -- Set the published version of `@breeztech/react-native-liquid-swap-sdk` in `example/package.json`. +- Set the published version of `@breeztech/react-native-breez-liquid-sdk` in `example/package.json`. Then login to npm: ``` diff --git a/lib/ls-sdk-react-native/android/build.gradle b/lib/ls-sdk-react-native/android/build.gradle index 79f6175ad..bf7a8ba9c 100644 --- a/lib/ls-sdk-react-native/android/build.gradle +++ b/lib/ls-sdk-react-native/android/build.gradle @@ -1,7 +1,7 @@ import groovy.json.JsonSlurper def getVersionFromNpmPackage() { - def inputFile = new File("$rootDir/../node_modules/@breeztech/react-native-liquid-swap-sdk/package.json") + def inputFile = new File("$rootDir/../node_modules/@breeztech/react-native-breez-liquid-sdk/package.json") def packageJson = new JsonSlurper().parseText(inputFile.text) return packageJson["version"] @@ -70,9 +70,9 @@ dependencies { implementation "com.facebook.react:react-native:+" // From node_modules implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.21" // Due to an issue with Jitpack (https://github.com/jitpack/jitpack.io/issues/5752) - // the Android platform versions of JNA (specifically libjnadispatch.so) are missing when downloading the Liquid Swap SDK from Jitpack. - // Therefore we ignore the version of JNA that comes with the Liquid Swap SDK from Jitpack + // the Android platform versions of JNA (specifically libjnadispatch.so) are missing when downloading the Breez Liquid SDK from Jitpack. + // Therefore we ignore the version of JNA that comes with the Breez Liquid SDK from Jitpack // and manually add one that does include the necessary Android platform binaries. - implementation("com.github.breez:breez-sdk-liquid:${getVersionFromNpmPackage()}") { exclude group:"net.java.dev.jna" } // remove for using locally built bindings during development + implementation("com.github.breez:breez-liquid-sdk:${getVersionFromNpmPackage()}") { exclude group:"net.java.dev.jna" } // remove for using locally built bindings during development implementation("net.java.dev.jna:jna:5.14.0@aar") } diff --git a/lib/ls-sdk-react-native/android/src/main/AndroidManifest.xml b/lib/ls-sdk-react-native/android/src/main/AndroidManifest.xml index 9f5ffb35c..521526e0e 100644 --- a/lib/ls-sdk-react-native/android/src/main/AndroidManifest.xml +++ b/lib/ls-sdk-react-native/android/src/main/AndroidManifest.xml @@ -1,5 +1,5 @@ + package="com.breezliquidsdk"> diff --git a/lib/ls-sdk-react-native/android/src/main/java/com/lssdk/LiquidSwapSDKMapper.kt b/lib/ls-sdk-react-native/android/src/main/java/com/breezliquidsdk/BreezLiquidSDKMapper.kt similarity index 99% rename from lib/ls-sdk-react-native/android/src/main/java/com/lssdk/LiquidSwapSDKMapper.kt rename to lib/ls-sdk-react-native/android/src/main/java/com/breezliquidsdk/BreezLiquidSDKMapper.kt index 315549601..9817e6845 100644 --- a/lib/ls-sdk-react-native/android/src/main/java/com/lssdk/LiquidSwapSDKMapper.kt +++ b/lib/ls-sdk-react-native/android/src/main/java/com/breezliquidsdk/BreezLiquidSDKMapper.kt @@ -1,6 +1,6 @@ -package com.lssdk +package com.breezliquidsdk +import breez_liquid_sdk.* import com.facebook.react.bridge.* -import ls_sdk.* import java.util.* fun asPrepareReceiveRequest(prepareReceiveRequest: ReadableMap): PrepareReceiveRequest? { diff --git a/lib/ls-sdk-react-native/android/src/main/java/com/lssdk/LiquidSwapSDKModule.kt b/lib/ls-sdk-react-native/android/src/main/java/com/breezliquidsdk/BreezLiquidSDKModule.kt similarity index 94% rename from lib/ls-sdk-react-native/android/src/main/java/com/lssdk/LiquidSwapSDKModule.kt rename to lib/ls-sdk-react-native/android/src/main/java/com/breezliquidsdk/BreezLiquidSDKModule.kt index 1de4986ba..7a43f15ae 100644 --- a/lib/ls-sdk-react-native/android/src/main/java/com/lssdk/LiquidSwapSDKModule.kt +++ b/lib/ls-sdk-react-native/android/src/main/java/com/breezliquidsdk/BreezLiquidSDKModule.kt @@ -1,17 +1,17 @@ -package com.lssdk +package com.breezliquidsdk +import breez_liquid_sdk.* import com.facebook.react.bridge.* -import ls_sdk.* import java.util.* import java.util.concurrent.ExecutorService import java.util.concurrent.Executors -class LiquidSwapSDKModule(reactContext: ReactApplicationContext) : ReactContextBaseJavaModule(reactContext) { +class BreezLiquidSDKModule(reactContext: ReactApplicationContext) : ReactContextBaseJavaModule(reactContext) { private lateinit var executor: ExecutorService private var bindingWallet: BindingWallet? = null companion object { - const val TAG = "RNLiquidSwapSDK" + const val TAG = "RNBreezLiquidSDK" } override fun initialize() { @@ -53,7 +53,7 @@ class LiquidSwapSDKModule(reactContext: ReactApplicationContext) : ReactContextB executor.execute { try { - val dataDirTmp = dataDir.takeUnless { it.isEmpty() } ?: run { reactApplicationContext.filesDir.toString() + "/lsSdk" } + val dataDirTmp = dataDir.takeUnless { it.isEmpty() } ?: run { reactApplicationContext.filesDir.toString() + "/breezLiquidSdk" } val networkTmp = asNetwork(network) bindingWallet = connect(mnemonic, dataDirTmp, networkTmp) promise.resolve(readableMapOf("status" to "ok")) diff --git a/lib/ls-sdk-react-native/android/src/main/java/com/lssdk/LiquidSwapSDKPackage.kt b/lib/ls-sdk-react-native/android/src/main/java/com/breezliquidsdk/BreezLiquidSDKPackage.kt similarity index 79% rename from lib/ls-sdk-react-native/android/src/main/java/com/lssdk/LiquidSwapSDKPackage.kt rename to lib/ls-sdk-react-native/android/src/main/java/com/breezliquidsdk/BreezLiquidSDKPackage.kt index 436ba7777..f7903dc9f 100644 --- a/lib/ls-sdk-react-native/android/src/main/java/com/lssdk/LiquidSwapSDKPackage.kt +++ b/lib/ls-sdk-react-native/android/src/main/java/com/breezliquidsdk/BreezLiquidSDKPackage.kt @@ -1,4 +1,4 @@ -package com.lssdk +package com.breezliquidsdk import android.view.View import com.facebook.react.ReactPackage @@ -7,10 +7,10 @@ import com.facebook.react.bridge.ReactApplicationContext import com.facebook.react.uimanager.ReactShadowNode import com.facebook.react.uimanager.ViewManager -class LiquidSwapSDKPackage : ReactPackage { +class BreezLiquidSDKPackage : ReactPackage { override fun createViewManagers(reactContext: ReactApplicationContext): MutableList>> = mutableListOf() override fun createNativeModules(reactContext: ReactApplicationContext): MutableList = - listOf(LiquidSwapSDKModule(reactContext)).toMutableList() + listOf(BreezLiquidSDKModule(reactContext)).toMutableList() } diff --git a/lib/ls-sdk-react-native/ls_sdk.podspec b/lib/ls-sdk-react-native/breez_liquid_sdk.podspec similarity index 71% rename from lib/ls-sdk-react-native/ls_sdk.podspec rename to lib/ls-sdk-react-native/breez_liquid_sdk.podspec index 0d6f0919e..b625d4d49 100644 --- a/lib/ls-sdk-react-native/ls_sdk.podspec +++ b/lib/ls-sdk-react-native/breez_liquid_sdk.podspec @@ -3,7 +3,7 @@ require "json" package = JSON.parse(File.read(File.join(__dir__, "package.json"))) Pod::Spec.new do |s| - s.name = "ls_sdk" + s.name = "breez_liquid_sdk" s.version = package["version"] s.summary = package["description"] s.homepage = package["homepage"] @@ -11,11 +11,11 @@ Pod::Spec.new do |s| s.authors = package["author"] s.platforms = { :ios => "11.0" } - s.source = { :git => "https://github.com/breez/breez-sdk-liquid.git", :tag => "#{s.version}" } + s.source = { :git => "https://github.com/breez/breez-liquid-sdk.git", :tag => "#{s.version}" } s.source_files = "ios/**/*.{h,m,mm,swift}" s.exclude_files = "ios/bindings-swift/**/*.{h,m,mm,swift}" s.dependency "React-Core" - s.dependency "LiquidSwapSDK", package["version"] + s.dependency "BreezLiquidSDK", package["version"] end diff --git a/lib/ls-sdk-react-native/example/App.js b/lib/ls-sdk-react-native/example/App.js index 707e7d1f6..eb948f146 100644 --- a/lib/ls-sdk-react-native/example/App.js +++ b/lib/ls-sdk-react-native/example/App.js @@ -8,7 +8,7 @@ import React, { useState } from "react" import { SafeAreaView, ScrollView, StatusBar, Text, TouchableOpacity, View } from "react-native" -import { Network, getInfo, connect } from "@breeztech/react-native-liquid-swap-sdk" +import { Network, getInfo, connect } from "@breeztech/react-native-breez-liquid-sdk" import { generateMnemonic } from "@dreson4/react-native-quick-bip39" import { getSecureItem, setSecureItem } from "./utils/storage" diff --git a/lib/ls-sdk-react-native/example/README.md b/lib/ls-sdk-react-native/example/README.md index a77915c26..52b90e14f 100644 --- a/lib/ls-sdk-react-native/example/README.md +++ b/lib/ls-sdk-react-native/example/README.md @@ -1,4 +1,4 @@ -# Liquid Swap SDK React Native Example +# Breez Liquid SDK React Native Example ## Build @@ -24,7 +24,7 @@ yarn android * Before running `yarn android`, stop any `Metro` instances that may be running. * If you get the error ``` - Failed to load dynamic library 'libls_sdk_bindings.so': dlopen failed: cannot locate symbol "__extenddftf2" + Failed to load dynamic library 'libbreez_liquid_sdk_bindings.so': dlopen failed: cannot locate symbol "__extenddftf2" ``` that is likely due to a dependency issue affecting x86_64 images. Try to run the app on a physical Android device or on a x86 image. @@ -37,4 +37,4 @@ yarn ios ## Development -To develop the Liquid Swap SDK alongside the React Native module and example app, please read [DEVELOPING.md](../DEVELOPING.md) for details on how to setup your development environment. +To develop the Breez Liquid SDK alongside the React Native module and example app, please read [DEVELOPING.md](../DEVELOPING.md) for details on how to setup your development environment. diff --git a/lib/ls-sdk-react-native/example/android/app/_BUCK b/lib/ls-sdk-react-native/example/android/app/_BUCK index 102dc6961..64b7b8abd 100644 --- a/lib/ls-sdk-react-native/example/android/app/_BUCK +++ b/lib/ls-sdk-react-native/example/android/app/_BUCK @@ -35,12 +35,12 @@ android_library( android_build_config( name = "build_config", - package = "com.example.lssdk", + package = "com.example.breezliquidsdk", ) android_resource( name = "res", - package = "com.example.lssdk", + package = "com.example.breezliquidsdk", res = "src/main/res", ) diff --git a/lib/ls-sdk-react-native/example/android/app/build.gradle b/lib/ls-sdk-react-native/example/android/app/build.gradle index b06a940da..74a503855 100644 --- a/lib/ls-sdk-react-native/example/android/app/build.gradle +++ b/lib/ls-sdk-react-native/example/android/app/build.gradle @@ -135,7 +135,7 @@ android { compileSdkVersion rootProject.ext.compileSdkVersion defaultConfig { - applicationId "com.example.lssdk" + applicationId "com.example.breezliquidsdk" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion versionCode 1 @@ -157,7 +157,7 @@ android { cppFlags "-std=c++17" // Make sure this target name is the same you specify inside the // src/main/jni/Android.mk file for the `LOCAL_MODULE` variable. - targets "LiquidSwapSDKExample_appmodules" + targets "BreezLiquidSDKExample_appmodules" // Fix for windows limit on number of character in file paths and in command lines if (Os.isFamily(Os.FAMILY_WINDOWS)) { arguments "NDK_APP_SHORT_COMMANDS=true" @@ -269,7 +269,7 @@ android { } dependencies { - implementation project(':breeztech_react-native-liquid-swap-sdk') + implementation project(':breeztech_react-native-breez-liquid-sdk') implementation project(':react-native-build-config') diff --git a/lib/ls-sdk-react-native/example/android/app/src/debug/java/com/example/lssdk/ReactNativeFlipper.java b/lib/ls-sdk-react-native/example/android/app/src/debug/java/com/example/breezliquidsdk/ReactNativeFlipper.java similarity index 98% rename from lib/ls-sdk-react-native/example/android/app/src/debug/java/com/example/lssdk/ReactNativeFlipper.java rename to lib/ls-sdk-react-native/example/android/app/src/debug/java/com/example/breezliquidsdk/ReactNativeFlipper.java index eb56af1ed..7b85ad069 100644 --- a/lib/ls-sdk-react-native/example/android/app/src/debug/java/com/example/lssdk/ReactNativeFlipper.java +++ b/lib/ls-sdk-react-native/example/android/app/src/debug/java/com/example/breezliquidsdk/ReactNativeFlipper.java @@ -4,7 +4,7 @@ *

This source code is licensed under the MIT license found in the LICENSE file in the root * directory of this source tree. */ -package com.example.lssdk; +package com.example.breezliquidsdk; import android.content.Context; import com.facebook.flipper.android.AndroidFlipperClient; diff --git a/lib/ls-sdk-react-native/example/android/app/src/main/AndroidManifest.xml b/lib/ls-sdk-react-native/example/android/app/src/main/AndroidManifest.xml index f02bfe48c..86d221ad4 100644 --- a/lib/ls-sdk-react-native/example/android/app/src/main/AndroidManifest.xml +++ b/lib/ls-sdk-react-native/example/android/app/src/main/AndroidManifest.xml @@ -1,5 +1,5 @@ + package="com.example.breezliquidsdk"> diff --git a/lib/ls-sdk-react-native/example/android/app/src/main/java/com/example/lssdk/MainActivity.java b/lib/ls-sdk-react-native/example/android/app/src/main/java/com/example/breezliquidsdk/MainActivity.java similarity index 95% rename from lib/ls-sdk-react-native/example/android/app/src/main/java/com/example/lssdk/MainActivity.java rename to lib/ls-sdk-react-native/example/android/app/src/main/java/com/example/breezliquidsdk/MainActivity.java index d5dbafc60..c1d2123d4 100644 --- a/lib/ls-sdk-react-native/example/android/app/src/main/java/com/example/lssdk/MainActivity.java +++ b/lib/ls-sdk-react-native/example/android/app/src/main/java/com/example/breezliquidsdk/MainActivity.java @@ -1,4 +1,4 @@ -package com.example.lssdk; +package com.example.breezliquidsdk; import com.facebook.react.ReactActivity; import com.facebook.react.ReactActivityDelegate; @@ -12,7 +12,7 @@ public class MainActivity extends ReactActivity { */ @Override protected String getMainComponentName() { - return "LiquidSwapSDKExample"; + return "BreezLiquidSDKExample"; } /** diff --git a/lib/ls-sdk-react-native/example/android/app/src/main/java/com/example/lssdk/MainApplication.java b/lib/ls-sdk-react-native/example/android/app/src/main/java/com/example/breezliquidsdk/MainApplication.java similarity index 90% rename from lib/ls-sdk-react-native/example/android/app/src/main/java/com/example/lssdk/MainApplication.java rename to lib/ls-sdk-react-native/example/android/app/src/main/java/com/example/breezliquidsdk/MainApplication.java index 1328f13c7..dafba8eb2 100644 --- a/lib/ls-sdk-react-native/example/android/app/src/main/java/com/example/lssdk/MainApplication.java +++ b/lib/ls-sdk-react-native/example/android/app/src/main/java/com/example/breezliquidsdk/MainApplication.java @@ -1,4 +1,4 @@ -package com.example.lssdk; +package com.example.breezliquidsdk; import android.app.Application; import android.content.Context; @@ -9,8 +9,8 @@ import com.facebook.react.ReactPackage; import com.facebook.react.config.ReactFeatureFlags; import com.facebook.soloader.SoLoader; -import com.example.lssdk.newarchitecture.MainApplicationReactNativeHost; -import com.lssdk.LiquidSwapSDKPackage; +import com.example.breezliquidsdk.newarchitecture.MainApplicationReactNativeHost; +import com.breezliquidsdk.BreezLiquidSDKPackage; import java.lang.reflect.InvocationTargetException; @@ -31,7 +31,7 @@ protected List getPackages() { // Packages that cannot be autolinked yet can be added manually here, for // example: // packages.add(new MyReactNativePackage()); - //packages.add(new LiquidSwapSDKPackage()); + //packages.add(new BreezLiquidSDKPackage()); return packages; } @@ -77,7 +77,7 @@ private static void initializeFlipper( * We use reflection here to pick up the class that initializes Flipper, * since Flipper library is not available in release mode */ - Class aClass = Class.forName("com.example.lssdk.ReactNativeFlipper"); + Class aClass = Class.forName("com.example.breezliquidsdk.ReactNativeFlipper"); aClass .getMethod("initializeFlipper", Context.class, ReactInstanceManager.class) .invoke(null, context, reactInstanceManager); diff --git a/lib/ls-sdk-react-native/example/android/app/src/main/java/com/example/lssdk/newarchitecture/MainApplicationReactNativeHost.java b/lib/ls-sdk-react-native/example/android/app/src/main/java/com/example/breezliquidsdk/newarchitecture/MainApplicationReactNativeHost.java similarity index 93% rename from lib/ls-sdk-react-native/example/android/app/src/main/java/com/example/lssdk/newarchitecture/MainApplicationReactNativeHost.java rename to lib/ls-sdk-react-native/example/android/app/src/main/java/com/example/breezliquidsdk/newarchitecture/MainApplicationReactNativeHost.java index 3961085b7..82757ba71 100644 --- a/lib/ls-sdk-react-native/example/android/app/src/main/java/com/example/lssdk/newarchitecture/MainApplicationReactNativeHost.java +++ b/lib/ls-sdk-react-native/example/android/app/src/main/java/com/example/breezliquidsdk/newarchitecture/MainApplicationReactNativeHost.java @@ -1,4 +1,4 @@ -package com.example.lssdk.newarchitecture; +package com.example.breezliquidsdk.newarchitecture; import android.app.Application; import androidx.annotation.NonNull; @@ -19,9 +19,9 @@ import com.facebook.react.fabric.FabricJSIModuleProvider; import com.facebook.react.fabric.ReactNativeConfig; import com.facebook.react.uimanager.ViewManagerRegistry; -import com.example.lssdk.BuildConfig; -import com.example.lssdk.newarchitecture.components.MainComponentsRegistry; -import com.example.lssdk.newarchitecture.modules.MainApplicationTurboModuleManagerDelegate; +import com.example.breezliquidsdk.BuildConfig; +import com.example.breezliquidsdk.newarchitecture.components.MainComponentsRegistry; +import com.example.breezliquidsdk.newarchitecture.modules.MainApplicationTurboModuleManagerDelegate; import java.util.ArrayList; import java.util.List; diff --git a/lib/ls-sdk-react-native/example/android/app/src/main/java/com/example/lssdk/newarchitecture/components/MainComponentsRegistry.java b/lib/ls-sdk-react-native/example/android/app/src/main/java/com/example/breezliquidsdk/newarchitecture/components/MainComponentsRegistry.java similarity index 94% rename from lib/ls-sdk-react-native/example/android/app/src/main/java/com/example/lssdk/newarchitecture/components/MainComponentsRegistry.java rename to lib/ls-sdk-react-native/example/android/app/src/main/java/com/example/breezliquidsdk/newarchitecture/components/MainComponentsRegistry.java index 0ee20aa13..a4fc7df0d 100644 --- a/lib/ls-sdk-react-native/example/android/app/src/main/java/com/example/lssdk/newarchitecture/components/MainComponentsRegistry.java +++ b/lib/ls-sdk-react-native/example/android/app/src/main/java/com/example/breezliquidsdk/newarchitecture/components/MainComponentsRegistry.java @@ -1,4 +1,4 @@ -package com.example.lssdk.newarchitecture.components; +package com.example.breezliquidsdk.newarchitecture.components; import com.facebook.jni.HybridData; import com.facebook.proguard.annotations.DoNotStrip; diff --git a/lib/ls-sdk-react-native/example/android/app/src/main/java/com/example/lssdk/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java b/lib/ls-sdk-react-native/example/android/app/src/main/java/com/example/breezliquidsdk/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java similarity index 93% rename from lib/ls-sdk-react-native/example/android/app/src/main/java/com/example/lssdk/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java rename to lib/ls-sdk-react-native/example/android/app/src/main/java/com/example/breezliquidsdk/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java index 896ee8519..1a74512be 100644 --- a/lib/ls-sdk-react-native/example/android/app/src/main/java/com/example/lssdk/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java +++ b/lib/ls-sdk-react-native/example/android/app/src/main/java/com/example/breezliquidsdk/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java @@ -1,4 +1,4 @@ -package com.example.lssdk.newarchitecture.modules; +package com.example.breezliquidsdk.newarchitecture.modules; import com.facebook.jni.HybridData; import com.facebook.react.ReactPackage; @@ -41,7 +41,7 @@ protected synchronized void maybeLoadOtherSoLibraries() { if (!sIsSoLibraryLoaded) { // If you change the name of your application .so file in the Android.mk file, // make sure you update the name here as well. - SoLoader.loadLibrary("LiquidSwapSDKExample_appmodules"); + SoLoader.loadLibrary("BreezLiquidSDKExample_appmodules"); sIsSoLibraryLoaded = true; } } diff --git a/lib/ls-sdk-react-native/example/android/app/src/main/jni/CMakeLists.txt b/lib/ls-sdk-react-native/example/android/app/src/main/jni/CMakeLists.txt index f84a88fcb..4f83b9534 100644 --- a/lib/ls-sdk-react-native/example/android/app/src/main/jni/CMakeLists.txt +++ b/lib/ls-sdk-react-native/example/android/app/src/main/jni/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.13) # Define the library name here. -project(react-native-liquid-swap-sdk-example_appmodules) +project(react-native-breez-liquid-sdk-example_appmodules) # This file includes all the necessary to let you build your application with the New Architecture. include(${REACT_ANDROID_DIR}/cmake-utils/ReactNative-application.cmake) diff --git a/lib/ls-sdk-react-native/example/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h b/lib/ls-sdk-react-native/example/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h index 47a1fd45a..af5a34976 100644 --- a/lib/ls-sdk-react-native/example/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h +++ b/lib/ls-sdk-react-native/example/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h @@ -14,7 +14,7 @@ class MainApplicationTurboModuleManagerDelegate public: // Adapt it to the package you used for your Java class. static constexpr auto kJavaDescriptor = - "Lcom/example/lssdk/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate;"; + "Lcom/example/breezliquidsdk/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate;"; static jni::local_ref initHybrid(jni::alias_ref); diff --git a/lib/ls-sdk-react-native/example/android/app/src/main/jni/MainComponentsRegistry.h b/lib/ls-sdk-react-native/example/android/app/src/main/jni/MainComponentsRegistry.h index 08f5a3706..cabd0bb10 100644 --- a/lib/ls-sdk-react-native/example/android/app/src/main/jni/MainComponentsRegistry.h +++ b/lib/ls-sdk-react-native/example/android/app/src/main/jni/MainComponentsRegistry.h @@ -13,7 +13,7 @@ class MainComponentsRegistry public: // Adapt it to the package you used for your Java class. constexpr static auto kJavaDescriptor = - "Lcom/example/lssdk/newarchitecture/components/MainComponentsRegistry;"; + "Lcom/example/breezliquidsdk/newarchitecture/components/MainComponentsRegistry;"; static void registerNatives(); diff --git a/lib/ls-sdk-react-native/example/android/app/src/main/res/values/strings.xml b/lib/ls-sdk-react-native/example/android/app/src/main/res/values/strings.xml index 8bd31dfa6..11a0a153b 100644 --- a/lib/ls-sdk-react-native/example/android/app/src/main/res/values/strings.xml +++ b/lib/ls-sdk-react-native/example/android/app/src/main/res/values/strings.xml @@ -1,3 +1,3 @@ - LiquidSwapSDKExample + BreezLiquidSDKExample diff --git a/lib/ls-sdk-react-native/example/android/settings.gradle b/lib/ls-sdk-react-native/example/android/settings.gradle index 0cdd593c0..da00bc794 100644 --- a/lib/ls-sdk-react-native/example/android/settings.gradle +++ b/lib/ls-sdk-react-native/example/android/settings.gradle @@ -1,10 +1,10 @@ -rootProject.name = 'LiquidSwapSDKExample' +rootProject.name = 'BreezLiquidSDKExample' apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) include ':app' includeBuild('../node_modules/react-native-gradle-plugin') -include ':breeztech_react-native-liquid-swap-sdk' -project(':breeztech_react-native-liquid-swap-sdk').projectDir = new File(rootProject.projectDir, '../node_modules/@breeztech/react-native-liquid-swap-sdk/android') +include ':breeztech_react-native-breez-liquid-sdk' +project(':breeztech_react-native-breez-liquid-sdk').projectDir = new File(rootProject.projectDir, '../node_modules/@breeztech/react-native-breez-liquid-sdk/android') include ':react-native-build-config' project(':react-native-build-config').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-build-config/android') diff --git a/lib/ls-sdk-react-native/example/app.json b/lib/ls-sdk-react-native/example/app.json index 4b7761ecf..2f055b758 100644 --- a/lib/ls-sdk-react-native/example/app.json +++ b/lib/ls-sdk-react-native/example/app.json @@ -1,4 +1,4 @@ { - "name": "LiquidSwapSDKExample", - "displayName": "LiquidSwapSDKExample" + "name": "BreezLiquidSDKExample", + "displayName": "BreezLiquidSDKExample" } \ No newline at end of file diff --git a/lib/ls-sdk-react-native/example/ios/LiquidSwapSDKExample.xcodeproj/project.pbxproj b/lib/ls-sdk-react-native/example/ios/BreezLiquidSDKExample.xcodeproj/project.pbxproj similarity index 81% rename from lib/ls-sdk-react-native/example/ios/LiquidSwapSDKExample.xcodeproj/project.pbxproj rename to lib/ls-sdk-react-native/example/ios/BreezLiquidSDKExample.xcodeproj/project.pbxproj index 7c730f8aa..1cdc9c4dd 100644 --- a/lib/ls-sdk-react-native/example/ios/LiquidSwapSDKExample.xcodeproj/project.pbxproj +++ b/lib/ls-sdk-react-native/example/ios/BreezLiquidSDKExample.xcodeproj/project.pbxproj @@ -9,24 +9,24 @@ /* Begin PBXBuildFile section */ 13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.mm */; }; 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; - 29309CB8A7750F8A4E1808B9 /* libPods-LiquidSwapSDKExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 12FBD97DB42BAE625BC18406 /* libPods-LiquidSwapSDKExample.a */; }; + 29309CB8A7750F8A4E1808B9 /* libPods-BreezLiquidSDKExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 12FBD97DB42BAE625BC18406 /* libPods-BreezLiquidSDKExample.a */; }; 7355F8D12996477D0094712A /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7355F8D02996477D0094712A /* LaunchScreen.storyboard */; }; 7355F8D3299647960094712A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7355F8D2299647960094712A /* Images.xcassets */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ - 12FBD97DB42BAE625BC18406 /* libPods-LiquidSwapSDKExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-LiquidSwapSDKExample.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - 13B07F961A680F5B00A75B9A /* LiquidSwapSDKExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = LiquidSwapSDKExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = LiquidSwapSDKExample/AppDelegate.h; sourceTree = ""; }; - 13B07FB01A68108700A75B9A /* AppDelegate.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = AppDelegate.mm; path = LiquidSwapSDKExample/AppDelegate.mm; sourceTree = ""; }; - 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = LiquidSwapSDKExample/Info.plist; sourceTree = ""; }; - 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = LiquidSwapSDKExample/main.m; sourceTree = ""; }; - 581803DA52D7223BC4BD17FA /* Pods-LiquidSwapSDKExample-LiquidSwapSDKExampleTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-LiquidSwapSDKExample-LiquidSwapSDKExampleTests.release.xcconfig"; path = "Target Support Files/Pods-LiquidSwapSDKExample-LiquidSwapSDKExampleTests/Pods-LiquidSwapSDKExample-LiquidSwapSDKExampleTests.release.xcconfig"; sourceTree = ""; }; - 6F82CA2AA8D142F96C6306CB /* Pods-LiquidSwapSDKExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-LiquidSwapSDKExample.release.xcconfig"; path = "Target Support Files/Pods-LiquidSwapSDKExample/Pods-LiquidSwapSDKExample.release.xcconfig"; sourceTree = ""; }; - 7355F8D02996477D0094712A /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = LiquidSwapSDKExample/LaunchScreen.storyboard; sourceTree = ""; }; - 7355F8D2299647960094712A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = LiquidSwapSDKExample/Images.xcassets; sourceTree = ""; }; - BDFB208B0B2CC90B30CD3D09 /* Pods-LiquidSwapSDKExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-LiquidSwapSDKExample.debug.xcconfig"; path = "Target Support Files/Pods-LiquidSwapSDKExample/Pods-LiquidSwapSDKExample.debug.xcconfig"; sourceTree = ""; }; - C0EBEFCA2DF43AFD6252F976 /* Pods-LiquidSwapSDKExample-LiquidSwapSDKExampleTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-LiquidSwapSDKExample-LiquidSwapSDKExampleTests.debug.xcconfig"; path = "Target Support Files/Pods-LiquidSwapSDKExample-LiquidSwapSDKExampleTests/Pods-LiquidSwapSDKExample-LiquidSwapSDKExampleTests.debug.xcconfig"; sourceTree = ""; }; + 12FBD97DB42BAE625BC18406 /* libPods-BreezLiquidSDKExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-BreezLiquidSDKExample.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + 13B07F961A680F5B00A75B9A /* BreezLiquidSDKExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = BreezLiquidSDKExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = BreezLiquidSDKExample/AppDelegate.h; sourceTree = ""; }; + 13B07FB01A68108700A75B9A /* AppDelegate.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = AppDelegate.mm; path = BreezLiquidSDKExample/AppDelegate.mm; sourceTree = ""; }; + 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = BreezLiquidSDKExample/Info.plist; sourceTree = ""; }; + 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = BreezLiquidSDKExample/main.m; sourceTree = ""; }; + 581803DA52D7223BC4BD17FA /* Pods-BreezLiquidSDKExample-BreezLiquidSDKExampleTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BreezLiquidSDKExample-BreezLiquidSDKExampleTests.release.xcconfig"; path = "Target Support Files/Pods-BreezLiquidSDKExample-BreezLiquidSDKExampleTests/Pods-BreezLiquidSDKExample-BreezLiquidSDKExampleTests.release.xcconfig"; sourceTree = ""; }; + 6F82CA2AA8D142F96C6306CB /* Pods-BreezLiquidSDKExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BreezLiquidSDKExample.release.xcconfig"; path = "Target Support Files/Pods-BreezLiquidSDKExample/Pods-BreezLiquidSDKExample.release.xcconfig"; sourceTree = ""; }; + 7355F8D02996477D0094712A /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = BreezLiquidSDKExample/LaunchScreen.storyboard; sourceTree = ""; }; + 7355F8D2299647960094712A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = BreezLiquidSDKExample/Images.xcassets; sourceTree = ""; }; + BDFB208B0B2CC90B30CD3D09 /* Pods-BreezLiquidSDKExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BreezLiquidSDKExample.debug.xcconfig"; path = "Target Support Files/Pods-BreezLiquidSDKExample/Pods-BreezLiquidSDKExample.debug.xcconfig"; sourceTree = ""; }; + C0EBEFCA2DF43AFD6252F976 /* Pods-BreezLiquidSDKExample-BreezLiquidSDKExampleTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BreezLiquidSDKExample-BreezLiquidSDKExampleTests.debug.xcconfig"; path = "Target Support Files/Pods-BreezLiquidSDKExample-BreezLiquidSDKExampleTests/Pods-BreezLiquidSDKExample-BreezLiquidSDKExampleTests.debug.xcconfig"; sourceTree = ""; }; ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; /* End PBXFileReference section */ @@ -35,14 +35,14 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 29309CB8A7750F8A4E1808B9 /* libPods-LiquidSwapSDKExample.a in Frameworks */, + 29309CB8A7750F8A4E1808B9 /* libPods-BreezLiquidSDKExample.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ - 13B07FAE1A68108700A75B9A /* LiquidSwapSDKExample */ = { + 13B07FAE1A68108700A75B9A /* BreezLiquidSDKExample */ = { isa = PBXGroup; children = ( 13B07FAF1A68108700A75B9A /* AppDelegate.h */, @@ -52,14 +52,14 @@ 7355F8D2299647960094712A /* Images.xcassets */, 7355F8D02996477D0094712A /* LaunchScreen.storyboard */, ); - name = LiquidSwapSDKExample; + name = BreezLiquidSDKExample; sourceTree = ""; }; 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { isa = PBXGroup; children = ( ED297162215061F000B7C4FE /* JavaScriptCore.framework */, - 12FBD97DB42BAE625BC18406 /* libPods-LiquidSwapSDKExample.a */, + 12FBD97DB42BAE625BC18406 /* libPods-BreezLiquidSDKExample.a */, ); name = Frameworks; sourceTree = ""; @@ -74,7 +74,7 @@ 83CBB9F61A601CBA00E9B192 = { isa = PBXGroup; children = ( - 13B07FAE1A68108700A75B9A /* LiquidSwapSDKExample */, + 13B07FAE1A68108700A75B9A /* BreezLiquidSDKExample */, 832341AE1AAA6A7D00B99B32 /* Libraries */, 83CBBA001A601CBA00E9B192 /* Products */, 2D16E6871FA4F8E400B85C8A /* Frameworks */, @@ -88,7 +88,7 @@ 83CBBA001A601CBA00E9B192 /* Products */ = { isa = PBXGroup; children = ( - 13B07F961A680F5B00A75B9A /* LiquidSwapSDKExample.app */, + 13B07F961A680F5B00A75B9A /* BreezLiquidSDKExample.app */, ); name = Products; sourceTree = ""; @@ -96,10 +96,10 @@ BBD78D7AC51CEA395F1C20DB /* Pods */ = { isa = PBXGroup; children = ( - BDFB208B0B2CC90B30CD3D09 /* Pods-LiquidSwapSDKExample.debug.xcconfig */, - 6F82CA2AA8D142F96C6306CB /* Pods-LiquidSwapSDKExample.release.xcconfig */, - C0EBEFCA2DF43AFD6252F976 /* Pods-LiquidSwapSDKExample-LiquidSwapSDKExampleTests.debug.xcconfig */, - 581803DA52D7223BC4BD17FA /* Pods-LiquidSwapSDKExample-LiquidSwapSDKExampleTests.release.xcconfig */, + BDFB208B0B2CC90B30CD3D09 /* Pods-BreezLiquidSDKExample.debug.xcconfig */, + 6F82CA2AA8D142F96C6306CB /* Pods-BreezLiquidSDKExample.release.xcconfig */, + C0EBEFCA2DF43AFD6252F976 /* Pods-BreezLiquidSDKExample-BreezLiquidSDKExampleTests.debug.xcconfig */, + 581803DA52D7223BC4BD17FA /* Pods-BreezLiquidSDKExample-BreezLiquidSDKExampleTests.release.xcconfig */, ); path = Pods; sourceTree = ""; @@ -107,9 +107,9 @@ /* End PBXGroup section */ /* Begin PBXNativeTarget section */ - 13B07F861A680F5B00A75B9A /* LiquidSwapSDKExample */ = { + 13B07F861A680F5B00A75B9A /* BreezLiquidSDKExample */ = { isa = PBXNativeTarget; - buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "LiquidSwapSDKExample" */; + buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "BreezLiquidSDKExample" */; buildPhases = ( C38B50BA6285516D6DCD4F65 /* [CP] Check Pods Manifest.lock */, FD10A7F022414F080027D42C /* Start Packager */, @@ -124,9 +124,9 @@ ); dependencies = ( ); - name = LiquidSwapSDKExample; + name = BreezLiquidSDKExample; productName = RustExample; - productReference = 13B07F961A680F5B00A75B9A /* LiquidSwapSDKExample.app */; + productReference = 13B07F961A680F5B00A75B9A /* BreezLiquidSDKExample.app */; productType = "com.apple.product-type.application"; }; /* End PBXNativeTarget section */ @@ -142,7 +142,7 @@ }; }; }; - buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "LiquidSwapSDKExample" */; + buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "BreezLiquidSDKExample" */; compatibilityVersion = "Xcode 12.0"; developmentRegion = en; hasScannedForEncodings = 0; @@ -155,7 +155,7 @@ projectDirPath = ""; projectRoot = ""; targets = ( - 13B07F861A680F5B00A75B9A /* LiquidSwapSDKExample */, + 13B07F861A680F5B00A75B9A /* BreezLiquidSDKExample */, ); }; /* End PBXProject section */ @@ -195,15 +195,15 @@ files = ( ); inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-LiquidSwapSDKExample/Pods-LiquidSwapSDKExample-frameworks-${CONFIGURATION}-input-files.xcfilelist", + "${PODS_ROOT}/Target Support Files/Pods-BreezLiquidSDKExample/Pods-BreezLiquidSDKExample-frameworks-${CONFIGURATION}-input-files.xcfilelist", ); name = "[CP] Embed Pods Frameworks"; outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-LiquidSwapSDKExample/Pods-LiquidSwapSDKExample-frameworks-${CONFIGURATION}-output-files.xcfilelist", + "${PODS_ROOT}/Target Support Files/Pods-BreezLiquidSDKExample/Pods-BreezLiquidSDKExample-frameworks-${CONFIGURATION}-output-files.xcfilelist", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-LiquidSwapSDKExample/Pods-LiquidSwapSDKExample-frameworks.sh\"\n"; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-BreezLiquidSDKExample/Pods-BreezLiquidSDKExample-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; C38B50BA6285516D6DCD4F65 /* [CP] Check Pods Manifest.lock */ = { @@ -221,7 +221,7 @@ outputFileListPaths = ( ); outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-LiquidSwapSDKExample-checkManifestLockResult.txt", + "$(DERIVED_FILE_DIR)/Pods-BreezLiquidSDKExample-checkManifestLockResult.txt", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; @@ -234,15 +234,15 @@ files = ( ); inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-LiquidSwapSDKExample/Pods-LiquidSwapSDKExample-resources-${CONFIGURATION}-input-files.xcfilelist", + "${PODS_ROOT}/Target Support Files/Pods-BreezLiquidSDKExample/Pods-BreezLiquidSDKExample-resources-${CONFIGURATION}-input-files.xcfilelist", ); name = "[CP] Copy Pods Resources"; outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-LiquidSwapSDKExample/Pods-LiquidSwapSDKExample-resources-${CONFIGURATION}-output-files.xcfilelist", + "${PODS_ROOT}/Target Support Files/Pods-BreezLiquidSDKExample/Pods-BreezLiquidSDKExample-resources-${CONFIGURATION}-output-files.xcfilelist", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-LiquidSwapSDKExample/Pods-LiquidSwapSDKExample-resources.sh\"\n"; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-BreezLiquidSDKExample/Pods-BreezLiquidSDKExample-resources.sh\"\n"; showEnvVarsInLog = 0; }; FD10A7F022414F080027D42C /* Start Packager */ = { @@ -281,7 +281,7 @@ /* Begin XCBuildConfiguration section */ 13B07F941A680F5B00A75B9A /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = BDFB208B0B2CC90B30CD3D09 /* Pods-LiquidSwapSDKExample.debug.xcconfig */; + baseConfigurationReference = BDFB208B0B2CC90B30CD3D09 /* Pods-BreezLiquidSDKExample.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; @@ -322,13 +322,13 @@ "\"${PODS_ROOT}/Headers/Public/fmt\"", "\"${PODS_ROOT}/Headers/Public/glog\"", "\"${PODS_ROOT}/Headers/Public/libevent\"", - "\"${PODS_ROOT}/Headers/Public/react-native-liquid-swap-sdk\"", + "\"${PODS_ROOT}/Headers/Public/react-native-breez-liquid-sdk\"", "\"$(PODS_ROOT)/DoubleConversion\"", "\"$(PODS_ROOT)/boost\"", "\"$(PODS_ROOT)/Headers/Private/React-Core\"", "\"$(PODS_TARGET_SRCROOT)/include/\"", ); - INFOPLIST_FILE = LiquidSwapSDKExample/Info.plist; + INFOPLIST_FILE = BreezLiquidSDKExample/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 12.4; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", @@ -373,7 +373,7 @@ "\"${PODS_CONFIGURATION_BUILD_DIR}/fmt\"", "\"${PODS_CONFIGURATION_BUILD_DIR}/glog\"", "\"${PODS_CONFIGURATION_BUILD_DIR}/libevent\"", - "\"${PODS_CONFIGURATION_BUILD_DIR}/react-native-liquid-swap-sdk\"", + "\"${PODS_CONFIGURATION_BUILD_DIR}/react-native-breez-liquid-sdk\"", /usr/lib/swift, ); OTHER_LDFLAGS = ( @@ -381,8 +381,8 @@ "-ObjC", "-lc++", ); - PRODUCT_BUNDLE_IDENTIFIER = com.example.lssdk; - PRODUCT_NAME = LiquidSwapSDKExample; + PRODUCT_BUNDLE_IDENTIFIER = com.example.breezliquidsdk; + PRODUCT_NAME = BreezLiquidSDKExample; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; VERSIONING_SYSTEM = "apple-generic"; @@ -391,7 +391,7 @@ }; 13B07F951A680F5B00A75B9A /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 6F82CA2AA8D142F96C6306CB /* Pods-LiquidSwapSDKExample.release.xcconfig */; + baseConfigurationReference = 6F82CA2AA8D142F96C6306CB /* Pods-BreezLiquidSDKExample.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; @@ -431,13 +431,13 @@ "\"${PODS_ROOT}/Headers/Public/fmt\"", "\"${PODS_ROOT}/Headers/Public/glog\"", "\"${PODS_ROOT}/Headers/Public/libevent\"", - "\"${PODS_ROOT}/Headers/Public/react-native-liquid-swap-sdk\"", + "\"${PODS_ROOT}/Headers/Public/react-native-breez-liquid-sdk\"", "\"$(PODS_ROOT)/DoubleConversion\"", "\"$(PODS_ROOT)/boost\"", "\"$(PODS_ROOT)/Headers/Private/React-Core\"", "\"$(PODS_TARGET_SRCROOT)/include/\"", ); - INFOPLIST_FILE = LiquidSwapSDKExample/Info.plist; + INFOPLIST_FILE = BreezLiquidSDKExample/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 12.4; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", @@ -475,7 +475,7 @@ "\"${PODS_CONFIGURATION_BUILD_DIR}/fmt\"", "\"${PODS_CONFIGURATION_BUILD_DIR}/glog\"", "\"${PODS_CONFIGURATION_BUILD_DIR}/libevent\"", - "\"${PODS_CONFIGURATION_BUILD_DIR}/react-native-liquid-swap-sdk\"", + "\"${PODS_CONFIGURATION_BUILD_DIR}/react-native-breez-liquid-sdk\"", /usr/lib/swift, ); OTHER_LDFLAGS = ( @@ -483,8 +483,8 @@ "-ObjC", "-lc++", ); - PRODUCT_BUNDLE_IDENTIFIER = com.example.lssdk; - PRODUCT_NAME = LiquidSwapSDKExample; + PRODUCT_BUNDLE_IDENTIFIER = com.example.breezliquidsdk; + PRODUCT_NAME = BreezLiquidSDKExample; SWIFT_VERSION = 5.0; VERSIONING_SYSTEM = "apple-generic"; }; @@ -647,7 +647,7 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ - 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "LiquidSwapSDKExample" */ = { + 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "BreezLiquidSDKExample" */ = { isa = XCConfigurationList; buildConfigurations = ( 13B07F941A680F5B00A75B9A /* Debug */, @@ -656,7 +656,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "LiquidSwapSDKExample" */ = { + 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "BreezLiquidSDKExample" */ = { isa = XCConfigurationList; buildConfigurations = ( 83CBBA201A601CBA00E9B192 /* Debug */, diff --git a/lib/ls-sdk-react-native/example/ios/LiquidSwapSDKExample.xcodeproj/xcshareddata/xcschemes/LiquidSwapSDKExample.xcscheme b/lib/ls-sdk-react-native/example/ios/BreezLiquidSDKExample.xcodeproj/xcshareddata/xcschemes/BreezLiquidSDKExample.xcscheme similarity index 77% rename from lib/ls-sdk-react-native/example/ios/LiquidSwapSDKExample.xcodeproj/xcshareddata/xcschemes/LiquidSwapSDKExample.xcscheme rename to lib/ls-sdk-react-native/example/ios/BreezLiquidSDKExample.xcodeproj/xcshareddata/xcschemes/BreezLiquidSDKExample.xcscheme index 0a5bd773c..64c19649b 100644 --- a/lib/ls-sdk-react-native/example/ios/LiquidSwapSDKExample.xcodeproj/xcshareddata/xcschemes/LiquidSwapSDKExample.xcscheme +++ b/lib/ls-sdk-react-native/example/ios/BreezLiquidSDKExample.xcodeproj/xcshareddata/xcschemes/BreezLiquidSDKExample.xcscheme @@ -15,9 +15,9 @@ + BuildableName = "BreezLiquidSDKExample.app" + BlueprintName = "BreezLiquidSDKExample" + ReferencedContainer = "container:BreezLiquidSDKExample.xcodeproj"> @@ -33,9 +33,9 @@ + BuildableName = "BreezLiquidSDKExampleTests.xctest" + BlueprintName = "BreezLiquidSDKExampleTests" + ReferencedContainer = "container:BreezLiquidSDKExample.xcodeproj"> @@ -55,9 +55,9 @@ + BuildableName = "BreezLiquidSDKExample.app" + BlueprintName = "BreezLiquidSDKExample" + ReferencedContainer = "container:BreezLiquidSDKExample.xcodeproj"> @@ -72,9 +72,9 @@ + BuildableName = "BreezLiquidSDKExample.app" + BlueprintName = "BreezLiquidSDKExample" + ReferencedContainer = "container:BreezLiquidSDKExample.xcodeproj"> diff --git a/lib/ls-sdk-react-native/example/ios/LiquidSwapSDKExample.xcworkspace/contents.xcworkspacedata b/lib/ls-sdk-react-native/example/ios/BreezLiquidSDKExample.xcworkspace/contents.xcworkspacedata similarity index 75% rename from lib/ls-sdk-react-native/example/ios/LiquidSwapSDKExample.xcworkspace/contents.xcworkspacedata rename to lib/ls-sdk-react-native/example/ios/BreezLiquidSDKExample.xcworkspace/contents.xcworkspacedata index 233babddd..26c722a46 100644 --- a/lib/ls-sdk-react-native/example/ios/LiquidSwapSDKExample.xcworkspace/contents.xcworkspacedata +++ b/lib/ls-sdk-react-native/example/ios/BreezLiquidSDKExample.xcworkspace/contents.xcworkspacedata @@ -2,7 +2,7 @@ + location = "group:BreezLiquidSDKExample.xcodeproj"> diff --git a/lib/ls-sdk-react-native/example/ios/LiquidSwapSDKExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/lib/ls-sdk-react-native/example/ios/BreezLiquidSDKExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from lib/ls-sdk-react-native/example/ios/LiquidSwapSDKExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to lib/ls-sdk-react-native/example/ios/BreezLiquidSDKExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/lib/ls-sdk-react-native/example/ios/LiquidSwapSDKExample/AppDelegate.h b/lib/ls-sdk-react-native/example/ios/BreezLiquidSDKExample/AppDelegate.h similarity index 100% rename from lib/ls-sdk-react-native/example/ios/LiquidSwapSDKExample/AppDelegate.h rename to lib/ls-sdk-react-native/example/ios/BreezLiquidSDKExample/AppDelegate.h diff --git a/lib/ls-sdk-react-native/example/ios/LiquidSwapSDKExample/AppDelegate.mm b/lib/ls-sdk-react-native/example/ios/BreezLiquidSDKExample/AppDelegate.mm similarity index 97% rename from lib/ls-sdk-react-native/example/ios/LiquidSwapSDKExample/AppDelegate.mm rename to lib/ls-sdk-react-native/example/ios/BreezLiquidSDKExample/AppDelegate.mm index 224090c63..ada3bc04c 100644 --- a/lib/ls-sdk-react-native/example/ios/LiquidSwapSDKExample/AppDelegate.mm +++ b/lib/ls-sdk-react-native/example/ios/BreezLiquidSDKExample/AppDelegate.mm @@ -44,7 +44,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( #endif NSDictionary *initProps = [self prepareInitialProps]; - UIView *rootView = RCTAppSetupDefaultRootView(bridge, @"LiquidSwapSDKExample", initProps); + UIView *rootView = RCTAppSetupDefaultRootView(bridge, @"BreezLiquidSDKExample", initProps); if (@available(iOS 13.0, *)) { rootView.backgroundColor = [UIColor systemBackgroundColor]; diff --git a/lib/ls-sdk-react-native/example/ios/LiquidSwapSDKExample/Images.xcassets/AppIcon.appiconset/Contents.json b/lib/ls-sdk-react-native/example/ios/BreezLiquidSDKExample/Images.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from lib/ls-sdk-react-native/example/ios/LiquidSwapSDKExample/Images.xcassets/AppIcon.appiconset/Contents.json rename to lib/ls-sdk-react-native/example/ios/BreezLiquidSDKExample/Images.xcassets/AppIcon.appiconset/Contents.json diff --git a/lib/ls-sdk-react-native/example/ios/LiquidSwapSDKExample/Images.xcassets/Contents.json b/lib/ls-sdk-react-native/example/ios/BreezLiquidSDKExample/Images.xcassets/Contents.json similarity index 100% rename from lib/ls-sdk-react-native/example/ios/LiquidSwapSDKExample/Images.xcassets/Contents.json rename to lib/ls-sdk-react-native/example/ios/BreezLiquidSDKExample/Images.xcassets/Contents.json diff --git a/lib/ls-sdk-react-native/example/ios/LiquidSwapSDKExample/Info.plist b/lib/ls-sdk-react-native/example/ios/BreezLiquidSDKExample/Info.plist similarity index 97% rename from lib/ls-sdk-react-native/example/ios/LiquidSwapSDKExample/Info.plist rename to lib/ls-sdk-react-native/example/ios/BreezLiquidSDKExample/Info.plist index 810ed10e9..ac849894f 100644 --- a/lib/ls-sdk-react-native/example/ios/LiquidSwapSDKExample/Info.plist +++ b/lib/ls-sdk-react-native/example/ios/BreezLiquidSDKExample/Info.plist @@ -5,7 +5,7 @@ CFBundleDevelopmentRegion en CFBundleDisplayName - LiquidSwapSDKExample + BreezLiquidSDKExample CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier diff --git a/lib/ls-sdk-react-native/example/ios/LiquidSwapSDKExample/LaunchScreen.storyboard b/lib/ls-sdk-react-native/example/ios/BreezLiquidSDKExample/LaunchScreen.storyboard similarity index 94% rename from lib/ls-sdk-react-native/example/ios/LiquidSwapSDKExample/LaunchScreen.storyboard rename to lib/ls-sdk-react-native/example/ios/BreezLiquidSDKExample/LaunchScreen.storyboard index 669221468..d3eed5eda 100644 --- a/lib/ls-sdk-react-native/example/ios/LiquidSwapSDKExample/LaunchScreen.storyboard +++ b/lib/ls-sdk-react-native/example/ios/BreezLiquidSDKExample/LaunchScreen.storyboard @@ -15,7 +15,7 @@ -