- Clone the eclair project from https://github.com/ACINQ/eclair
- Checkout the
android-phoenix
branch - Follow the instructions provided in the BUILD.md file of the eclair project
Android Studio is the recommended development environment.
- Install Android Studio
- Clone the phoenix project from https://github.com/ACINQ/phoenix
- Checkout the
master
branch (this is the default development branch, using theTESTNET
blockchain) - Open Android Studio, and click on
File
>Open...
, and open the cloned folder - Project initialization will proceed.
Note that if you have an error mentioning that the eclair-core
library could not be found, it's because you need to build it first (see above).
You can check that the corresponding .jar
file is present in your local maven repository (path/to/repo/fr/acinq/eclair/eclair-core_2.11/<version>/
).
Phoenix supports deterministic builds on Linux OSs, this allows anyone to recreate from the sources the exact same APK that was published in the release page.
The deterministic build uses a dockerized build environment and require you to have previously built (and published locally) the artifact for the eclair-core
dependency, follow the instructions to build it.
- A linux machine running on x64 CPU.
- docker-ce installed
- Eclair-core published in your local maven repo, check out the instructions to build it.
- Clone the phoenix project from https://github.com/ACINQ/phoenix
- Run
docker build -t phoenix_build .
to create the build environment - Run
docker run --rm -v $HOME/.m2:/root/.m2 -v $(pwd):/home/ubuntu/phoenix/app/build -w /home/ubuntu/phoenix phoenix_build ./gradlew assemble
- Built artifacts are in $(pwd)/outputs/apk/release