$ git clone https://github.com/superhero-com/superhero-wallet.git
$ cd superhero-wallet
Build locally
$ npm install
$ npm run build
$ npm run build:extension:ff # build firefox extension
$ npm run build:extension:chrome # build chrome extension
$ npm run build:extension # build firefox and chrome extensions
$ npm run build:web # build a web version
$ npm run build:android # to build android application
$ npm run build:ios # to build ios application
Develop locally
Run tests
Add to browser via local build or release zip
Chromium based (Chrome, Brave, Opera)
Open chrome/brave browser Preferences -> More tools > Extensions
Make sure Developer mode is On in the right corner.
Click the Load unpacked button and select the generated dist folder in the cloned repo or the unarchived release folder.
Firefox
Open the Firefox menu and select Add-ons section.
Click the Tools for all add-ons button and select Debug Add-ons
Click Load a temporary add-on and navigate to the generated dist folder in the cloned repo or the unarchived release folder and select the manifest.json file.
Build Cordova version for production
iOS
create Xcode project by npm run build:ios
open created project in Xcode
Go to TARGETS->App
open Signing & Capabilities
enable signing by the corresponding development team
ensure that applinks:wallet.superhero.com is in Associated domains feature
open Build Settings
switch "Code Signing Identity => Release" and "Code Signing Identity => Release => Any iOS SDK" from "iOS Distribution" to "iOS Developer"
In the Info Tab ensure that you have the following permissions set. Privacy - Camera Usage Description, Privacy - Photo Library Usage Description and Privacy - Photo Library Additions Usage Description
Update in General Tab desired Release Version and Build Number
choose Product => Archive
In the organizer you can distribute app to Testflight and AppStore
Android
build a production version signed by the corresponding key (see):
Security
If you discover a security vulnerability within this application, please get in touch with us. All security vulnerabilities will be promptly addressed.
Tooling
This project is tested with BrowserStack.
Contribution
Contributions are more than welcome.
If you spot an issue while testing/using the extension - submit an issue
If you want to help us with building this amazing project submit your PR!