Tested on version
Node version: v18.17.0
NPM version : v16.14.13
$ yarn
$ yarn build
$ yarn build:Testnet # build for Testnet
$ yarn build:Mainnet # build for Mainnet
$ npm install
$ npm run watch:dev
$ npm run watch:dev:Testnet
$ npm run watch:dev:Mainnet
$ npm install
$ npm run test
- Chromium based (Chrome, Brave, Opera)
- Open chrome/brave browser
Preferences -> More tools > Extensions
- Make sure
Developer mode
isOn
in the right corner. - Click
Load unpacked
button and select the generateddist
folder in the cloned repo or the unacrhived release folder.
- Firefox
- Open the Firefox menu and select
Add-ons
section. - Click the
Tools for all add-ons
button and selectDebug Add-ons
- Click
Load a temorary add-on
navigate to the generateddist
folder in the cloned repo or the unacrhived release folder and select themanifest.json
file.
- create Xcode project by
cordova prepare ios
- open created project in Xcode
- 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"
- choose Product => Archive and follow the instructions
build a production version signed by the corresponding key:
cordova build android --release --buildConfig=build.json
If you discover a security vulnerability within this application, please get in touch with us. All security vulnerabilities will be promptly addressed.
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!
-
Clone the repo
git clone https://github.com/hypersign-protocol/hypersign-identity-wallet.git cd hypersign-identity-wallet
-
Run the following commands
npm install npm run build npm run gen:cordova-resources
If you face dimensions error in the last command, replace image files in /resources/ directory with these files
-
Run
npx cordova platform add android
If you face problem in adding android into the project, due to jdk , download the JDK version 1.8 from this link
- Follow either of the below steps to get an apk
- Place your build.json and hypersign.keystore file in the root directory and run
npx cordova build android
- Open up the android folder in your android studio, and run it in a emulator
- Go to Build, and click on Build APK(s), to build the apk
If you are getting the error while running command npm run watch:dev
, run these command from the project root:
node node_modules/node-sass/scripts/install.js
npm rebuild node-sass
Then the dev server app should run on