Files
breez-sdk-liquid/packages/react-native/PUBLISHING.md
ok300 6589a8799b Rename workspace members (subfolders) (#149)
* Rename ls-sdk-bindings workspace member

* Rename ls-sdk-core workspace member

* Rename ls-sdk-react-native
2024-05-02 18:22:32 +00:00

920 B

Build

Prerequisites

  • set the ANDROID_NDK_HOME env variable to your sdk home folder
export ANDROID_NDK_HOME=<your android ndk directory>

Building the plugin

On first usage you will need to run:

make init

Then to generate the React Native code:

make react-native

Generated artifacts

  • Android
  • android/src/main/java/com/breezliquidsdk/BreezLiquidSDKMapper.kt
  • android/src/main/java/com/breezliquidsdk/BreezLiquidSDKModule.kt
  • iOS
  • 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-breez-liquid-sdk in example/package.json.

Then login to npm:

npm login --@scope=@breeztech

Then publish:

npm publish --access public