Skip to content

NitinRamnani/superhero-wallet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Superhero Wallet

Superhero is a browser extension that allows you to send and receive value to URLs and content producers across the internet.

Build Status Language grade: JavaScript

Build

Clone the master branch of this repo.

$ git clone https://github.com/aeternity/superhero-wallet.git
$ cd superhero-wallet

Build locally

$ 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

Develop locally

$ npm install
$ npm run watch # watch an extension
$ npm run serve # watch a web version

Run tests

$ npm install
$ npm run test:unit
$ npm run test:e2e
$ npm run test # to run both unit and e2e tests

Add to browser via local build or release zip

  • Chromium based (Chrome, Brave, Opera)
  1. Open chrome/brave browser Preferences -> More tools > Extensions
  2. Make sure Developer mode is On in the right corner.
  3. Click the Load unpacked button and select the generated dist folder in the cloned repo or the unarchived release folder.
  • Firefox
  1. Open the Firefox menu and select Add-ons section.
  2. Click the Tools for all add-ons button and select Debug Add-ons
  3. Click Load a temorary 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 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

Android

build a production version signed by the corresponding key:

cordova build android --release --buildConfig=myBuildConfig.json

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!

About

Superhero wallet

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 62.6%
  • JavaScript 27.6%
  • TypeScript 7.7%
  • SCSS 1.4%
  • HTML 0.7%
  • Dockerfile 0.0%