Skip to content
Jop Schaap edited this page Feb 24, 2024 · 4 revisions

Developer Guide

Forking

  1. Make sure you fork the repository on github to your own account

  2. clone the newly forked repository, see: Cloning

  3. In the newly cloned repository perform:

    git remote add upstream https://github.com/Tribler/trustchain-superapphttps://github.com/Tribler/trustchain-superapp
  4. Now you can pull remote changes as such:

    git pull upstream master

Cloning

Make sure when cloning to recurese submodule to ensure ipv8 gets pulled to.

git clone --recurse-submodules-submodules <REPO-URL>

cd into the created directory

cd trustchain-superapp

Building

./gradlew :app:buildDebug

Running debug code(through android studio)

Prerequisites

  • Android studio

  • Android device (Android 11 (API level 30) and higher)

  1. Connect your android device to your android studio (as seen here: https://developer.android.com/tools/adb )

    • Enable developer options for your device see here for details on your phone.

    • Connect device to computer either by connecting to same wifi or by cable.

    • Press the dropdown menu next to the launch icon at the top of android studio screen.

    • Follow the shown instructions to link connect device.

  2. Press the run button, the superapp will now build, launch on the phone and the output should be shown in android studio.

Project structure

app

TODO

common

This module contains functionality and resources that are used by multiple other submodules of the TrustChain Super App.

common-bitcoin

This module contains functionality for storing information about bitcoin wallets.

common-ethereum

This module contains functionality for storing information about ethereum wallets.

Contains a proof-of-concept implementation of a DAO system using Trustchain and Bitcoin.

debug

TODO

Docker

TODO

eurotoken

TODO

freedomOfComputing

TODO

peerai

TODO

valuetransfer

TODO

Adding a new submodule to the TrustChain Super App

See: https://github.com/JopSchaap/trustchain-superapp/blob/master/doc/AppTutorial.md

Creating a fragment

Right click your sub-module and go to

new -> fragment

and select one from the list.