Swiftpack.co - LedgerHQ/ios-ble-wrapper-eth as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by LedgerHQ.
LedgerHQ/ios-ble-wrapper-eth v1.0.3
The wrapper to use the Ethereum app binding with the iOS BLE Transport extension
⭐️ 4
🕓 1 year ago
iOS macOS
.package(url: "https://github.com/LedgerHQ/ios-ble-wrapper-eth.git", from: "v1.0.3")

EthWrapper

This is the Swift Package to use the JavaScript Eth 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 Eth app binding or the wrapper, bundle.js has to be regenerated using browserify.

How to generate bundle.js

  1. Clone the monorepo and compile the libraries using pnpm build:libs
  2. Run the following commands in Sources/EthWrapper/JavaScript:
pnpm i
pnpm build --entry "<path_to_monorepo>/ledger-live/libs/ledgerjs/packages/swift-bridge-hw-app-eth/lib/Wrapper.js"

For example:

cd ~
git clone https://github.com/LedgerHQ/ledger-live.git
cd ledger-live
pnpm i && pnpm build:libs

cd ~
git clone https://github.com/LedgerHQ/ios-ble-wrapper-eth.git
cd ios-ble-wrapper-eth/Sources/EthWrapper/JavaScript
pnpm i
pnpm build --entry "~/ledger-live/libs/ledgerjs/packages/swift-bridge-hw-app-eth/lib/Wrapper.js"

GitHub

link
Stars: 4
Last commit: 38 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

v1.0.3
1 year ago

Make resolution object decodable, add tests

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics