Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Commit

Permalink
Merge branch 'main' into CoreBluetooth
Browse files Browse the repository at this point in the history
  • Loading branch information
DantePuglisi committed Oct 3, 2022
2 parents 15c4ac8 + 3fe48b2 commit ea70789
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@
# ios-ble-wrapper-solana
The wrapper to use the Solana app binding with the iOS BLE Transport extension
# SolanaWrapper

This is the Swift Package to use the JavaScript Solana app binding in a native way. It consist of a `bundle.js` which is the compiled app binding (plus a wrapper) and convenience methods.

Whenever there's a change in the Solana app binding or the wrapper, `bundle.js` has to be regenerated using [browserify](https://browserify.org/).

### How to generate `bundle.js`

1. Clone the [monorepo](https://github.com/ledgerhq/ledger-live) and compile the libraries using `pnpm build:libs`
2. Use [browserify](https://browserify.org/) to wrap everything needed for `JavaScriptCore` to run the binding and put it into the `JavaScript` folder inside the Package (should replace the current `bundle.js`) using the following command:

```
browserify <path_to_monorepo>/ledger-live/libs/ledgerjs/iOS-wrappers/ios-wrapper-solana/lib/Wrapper.js -o "<path_to_package>/ios-ble-wrapper-solana/Sources/SolanaWrapper/JavaScript/bundle.js" -d -s TransportModule
```

0 comments on commit ea70789

Please sign in to comment.