Files
breez-sdk-liquid/packages/react-native/PUBLISHING.md
Ross Savage da43f7ff78 Rename namespace (#345)
* Rename namespace

* Fix flutter build

* Fix kotlin-multiplatform CI

* Rename repositories
2024-07-09 17:25:05 +02:00

42 lines
920 B
Markdown

## 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/breezsdkliquid/BreezSDKLiquidMapper.kt
>* android/src/main/java/com/breezsdkliquid/BreezSDKLiquidModule.kt
* iOS
>* ios/BreezSDKLiquidMapper.swift
>* ios/BreezSDKLiquid.m
>* ios/BreezSDKLiquid.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-sdk-liquid` in `example/package.json`.
Then login to npm:
```
npm login --@scope=@breeztech
```
Then publish:
```
npm publish --access public
```