diff --git a/packages/react-native/DEVELOPMENT.md b/packages/react-native/DEVELOPMENT.md index a3b5b3d..51de18d 100644 --- a/packages/react-native/DEVELOPMENT.md +++ b/packages/react-native/DEVELOPMENT.md @@ -74,8 +74,10 @@ To use the locally built bindings instead of integrating them remotely, make the - Rename `breez_sdk_liquid.podspec` to `breez_sdk_liquid.podspec.prod` - Rename `BreezSDKLiquid.podspec.dev` to `BreezSDKLiquid.podspec` - For Android: - - Comment out the following line from the dependencies section in `packages/react-native/android/build.gradle`: + - Comment the following line from the dependencies section in `packages/react-native/android/build.gradle`: - `implementation("com.github.breez:breez-sdk-liquid:${getVersionFromNpmPackage()}") { exclude group:"net.java.dev.jna" }` + - Uncomment the following line from the dependencies section in `packages/react-native/android/build.gradle`: + - `implementation "org.jetbrains.kotlinx:atomicfu:0.23.1"` Reinstall the dependencies in the example project and run it. It will now use the locally built bindings. diff --git a/packages/react-native/android/build.gradle b/packages/react-native/android/build.gradle index 3435b31..befff0f 100644 --- a/packages/react-native/android/build.gradle +++ b/packages/react-native/android/build.gradle @@ -75,7 +75,9 @@ dependencies { // 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 "org.jetbrains.kotlinx:atomicfu:0.23.1" implementation("net.java.dev.jna:jna:5.14.0@aar") + // Comment this line for using locally built bindings during development + implementation("com.github.breez:breez-sdk-liquid:${getVersionFromNpmPackage()}") { exclude group:"net.java.dev.jna" } + // Uncomment this line for using locally built bindings during development + // implementation "org.jetbrains.kotlinx:atomicfu:0.23.1" }