Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BITBOX iOS Scaffold

Minimal iOS scaffold for BITBOX apps. The native app uses WKWebView to load local web assets that run bitbox-cli in the browser bundle and display a generated BCH mnemonic.

What It Shows

  • A native iOS shell using WKWebView
  • Local www/index.html loaded from the app bundle
  • Hello BITBOX
  • A 128-bit mnemonic generated with:
let BITBOXCli = require("bitbox-cli/lib/bitbox-cli").default
let BITBOX = new BITBOXCli()
let mnemonic = BITBOX.Mnemonic.generate(128)

Quick Start

npm install
npm run build:web
open BitboxScaffoldIOS.xcodeproj

In Xcode, select the BitboxScaffoldIOS scheme and run it in an iOS simulator. The generated BitboxScaffoldIOS/www/bundle.js is committed so the Xcode project can run immediately after cloning.

Files

  • BitboxScaffoldIOS/AppDelegate.swift - app bootstrap
  • BitboxScaffoldIOS/ViewController.swift - WKWebView setup
  • BitboxScaffoldIOS/www/app.js - BITBOX mnemonic demo source
  • BitboxScaffoldIOS/www/bundle.js - browser bundle loaded by the app
  • BitboxScaffoldIOS/www/index.html - local web UI
  • package.json - browserify build for the web bundle

About

Minimal iOS WKWebView scaffold for BITBOX

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages