Superhero is a browser extension that allows you to send and receive value to URLs and content producers across the internet.
Clone the master branch of this repo.
$ git clone https://github.com/aeternity/superhero-wallet.git
$ cd superhero-wallet
$ npm install
$ npm run build
$ npm run build:cordova # build a Cordova version
$ npm run build:extension # build an extension
$ npm run build:web # build a web version
$ npm run gen:cordova-resources
$ npx cordova build/run android/ios # to build Cordova application
$ npm install
$ npm run watch # watch an extension
$ npm run serve # watch a web version
$ npm install
$ npm run test:unit
$ npm run test:e2e
$ npm run test # to run both unit and e2e tests
- Chromium based (Chrome, Brave, Opera)
- Open chrome/brave browser
Preferences -> More tools > Extensions
- Make sure
Developer mode
isOn
in the right corner. - Click the
Load unpacked
button and select the generateddist
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 selectDebug Add-ons
- Click
Load a temorary add-on
and navigate to the generateddist
folder in the cloned repo or the unarchived 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"
- add those lines to:
platforms/ios/CordovaLib/Classes/Private/Plugins/CDVWebViewEngine/CDVWebViewEngine.m
if (!bounceAllowed) {
if ([wkWebView respondsToSelector:@selector(scrollView)]) {
((UIScrollView*)[wkWebView scrollView]).bounces = NO;
((UIScrollView*)[wkWebView scrollView]).scrollEnabled = NO; // <==
} else {
for (id subview in wkWebView.subviews) {
if ([[subview class] isSubclassOfClass:[UIScrollView class]]) {
((UIScrollView*)subview).scrollEnabled = NO; // <==
((UIScrollView*)subview).bounces = NO;
}
}
}
}
- choose Product => Archive and follow the instructions
build a production version signed by the corresponding key:
cordova build android --release --buildConfig=myBuildConfig.json
If you discover a security vulnerability within this application, please get in touch with us. All security vulnerabilities will be promptly addressed.
This project is tested with BrowserStack.
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!