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
🕓 28 weeks ago
iOS macOS
.package(url: "https://github.com/LedgerHQ/ios-ble-wrapper-eth.git", from: "v1.0.3")


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"


Stars: 4
Last commit: 2 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

28 weeks ago

Make resolution object decodable, add tests

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