Skip to content
mobile phone app for encointer ceremonies and wallet
Java Rust Shell Batchfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
encointer_android_app
.gitattributes
LICENSE
README.md

README.md

encointer-app

mobile phone app for encointer ceremonies and wallet

Build Instructions

  1. Install Android Studio (We will assume the SDK is installed to ~/Android/Sdk)
  2. Install NDK from Tools -> SDK Manager -> Tab: SDK Tools -> NDK (we will assume the NDK is installed to ~/Android/Sdk/ndk)
  3. install rust toolchain:
    curl https://sh.rustup.rs -sSf | sh
    rustup toolchain install nightly
    
  4. add toolchains
    rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android --toolchain nigthly
    
  5. add the following to ~/.cargo/config
    [target.aarch64-linux-android]
    ar = "/home/<user>/Android/Sdk/ndk/20.0.5594570/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-ar"
    linker = "/home/<user>/Android/Sdk/ndk/20.0.5594570/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang"
    
    [target.armv7-linux-androideabi]
    ar = "/home/<user>/Android/Sdk/ndk/20.0.5594570/toolchains/llvm/prebuilt/linux-x86_64/bin/arm-linux-androideabi-ar"
    linker = "/home/<user>/Android/Sdk/ndk/20.0.5594570/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi16-clang"
    
    [target.i686-linux-android]
    ar = "/home/<user>/Android/Sdk/ndk/20.0.5594570/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android-ar"
    linker = "/home/<user>/Android/Sdk/ndk/20.0.5594570/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android16-clang"
    
  6. add path
    export PATH=~/Android/Sdk/ndk/20.0.5594570/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH
    
  1. build native library
    ./build-native-libs.sh
    
  2. In studio, Choose "Open an existing Anroid Studio project"
  3. If needed, sync Gradle file
  4. Build
  5. Run on Android device (simulator does not work with Android Nearby)

Demo

run node

Somewhere in your local WiFi accessible network, run

substrate --dev --ws-external

We'll assume your node's IP is 192.168.1.4

send extrinsic from app

...TODO

Android Studio

Version: 3.4

You can’t perform that action at this time.