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.
- Clone the monorepo and compile the libraries using
pnpm build:libs
- Use browserify to wrap everything needed for
JavaScriptCore
to run the binding and put it into theJavaScript
folder inside the Package (should replace the currentbundle.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