Skip to content

Commit

Permalink
update massively outdated ANDROID docs
Browse files Browse the repository at this point in the history
Signed-off-by: onur-ozkan <work@onurozkan.dev>
  • Loading branch information
onur-ozkan committed Jan 13, 2025
1 parent 2522712 commit 25c8578
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions docs/ANDROID.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,34 @@ We need a Unix operating system (the build has been tested on Linux and Mac).

We need a free access to the Docker (`docker run hello-world` should work).

We need the Nightly revision of Rust, such as

rustup default nightly-2021-05-17

### Install cross

cargo install cross

### Get the source code

git clone --depth=1 git@gitlab.com:KomodoPlatform/supernet.git -b mm2.1-cross
cd supernet
git log --pretty=format:'%h' -n 1 > MM_VERSION
git log --pretty=format:'%cI' -n 1 > MM_DATETIME
git clone --depth=1 https://github.com/KomodoPlatform/komodo-defi-framework
cd komodo-defi-framework

### Install extra packages into the Docker image

The [Android NDK installer](https://github.com/rust-embedded/cross/tree/master/docker/android-ndk.sh) used by the ['cross' docker image](https://github.com/rust-embedded/cross/tree/master/docker/armv7-linux-androideabi) for the cross-compilation uses out-of-date NDK version. So we're going to build a patched up image.

#### armeabi-v7a ABI Docker image

(cd supernet && docker build --tag armv7-linux-androideabi-aga -f .docker/Dockerfile.armv7-linux-androideabi .)
(cd komodo-defi-framework && docker build --tag armv7-linux-androideabi-aga -f .docker/Dockerfile.armv7-linux-androideabi .)

#### arm64-v8a ABI Docker image

(cd supernet && docker build --tag aarch64-linux-android-aga -f .docker/Dockerfile.aarch64-linux-android .)
(cd komodo-defi-framework && docker build --tag aarch64-linux-android-aga -f .docker/Dockerfile.aarch64-linux-android .)

### x86 ABI Docker image

(cd supernet && docker build --tag i686-linux-android-aga -f .docker/Dockerfile.i686-linux-android .)
(cd komodo-defi-framework && docker build --tag i686-linux-android-aga -f .docker/Dockerfile.i686-linux-android .)

### x86_64 ABI Docker image

(cd supernet && docker build --tag x86_64-linux-android-aga -f .docker/Dockerfile.x86_64-linux-android .)
(cd komodo-defi-framework && docker build --tag x86_64-linux-android-aga -f .docker/Dockerfile.x86_64-linux-android .)

### Setup the NDK_HOME variable

Expand Down

0 comments on commit 25c8578

Please sign in to comment.