Coder Social home page Coder Social logo

tct68 / subwallet-mobile Goto Github PK

View Code? Open in Web Editor NEW

This project forked from koniverse/subwallet-mobile

0.0 0.0 0.0 533.8 MB

SubWallet is the comprehensive non-custodial wallet solution for Polkadot, Substrate & Ethereum ecosystems

License: Apache License 2.0

Shell 0.20% JavaScript 1.32% Ruby 0.13% Objective-C 0.12% Java 0.34% TypeScript 97.83% Objective-C++ 0.05% HTML 0.02%

subwallet-mobile's Introduction

SubWallet Mobile

This mobile version of SubWallet Extension that is gateway help you access to Dotsama ecosytem.

Main Concept

image

Mobile version run an app runner run in hidden webview and use message passing to interact with it. There are 2 reasons why we do this:

  • React native is not support WASM, we can't get full features of @polkadot/packages so we need to run most crypto features on webview.
  • Using the same resources saves us not only development time, but also makes extension and mobile versioning more consistent

Development Guild

Requirement

  • Install yarn

  • Setup react native development environment use React Native CLI.

  • [CMake] is required on the build host for web runner.

    • When building for Android, [CMake] should be installed as a part of your Android SDK (open SDK Manager, and look for [CMake] within the SDK Tools tab).

    • On MacOS, the pkg-config dependency is also needed. You can install both via [Homebrew], by executing:

      $ brew install cmake pkg-config

      IMPORTANT: [Homebrew] should have added eval "$(/opt/homebrew/bin/brew shellenv)"' command to your .zshrc or .bashrc. Although this works for interactive terminals, it might not work for sessions inside of other apps, such as XCode, therefore you might need to manually create symbolic links:

      $ sudo ln -s $(which cmake) /usr/local/bin/cmake
      $ sudo ln -s $(which pkg-config) /usr/local/bin/pkg-config

      For details read: https://earthly.dev/blog/homebrew-on-m1, and Issue#29.

Start development

  • From package folder run yarn start to make sure we installed all required packages
  • Android
    • Make sure you started a silumator and check it with command adb devices
    • Run yarn android
  • IOS
    • Run yarn ios to start development

subwallet-mobile's People

Contributors

nguyenduythuc avatar saltict avatar s2kael avatar lw-cdm avatar anhmtvoecsolution avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.