1
0
mirror of https://github.com/PurpleI2P/i2pd-android.git synced 2025-02-03 18:34:20 +00:00

update README

Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
R4SAS 2022-04-13 13:47:35 +03:00
parent 7611296f63
commit 9b4ee8447a
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2

View File

@ -12,29 +12,28 @@ This repository contains Android application sources of i2pd
## How to build ## How to build
### Install OpenJDK, g++, rename (used for building modules), gradle 5.1+, download Android SDK ### Install OpenJDK 11+, g++, rename (used for building modules), gradle 5.1+
```bash ```bash
sudo apt-get install g++ rename gradle sudo apt-get install g++ rename openjdk-11-jdk gradle
``` ```
Android SDK Available here:
https://developer.android.com/studio#downloads
If your system provides gradle with version < 5.1, download it from gradle homepage: If your system provides gradle with version < 5.1, download it from gradle homepage:
https://gradle.org/install/ https://gradle.org/install/
### Prepare Android SDK for building ### Download and prepare Android SDK for building
Download Android SDK, unpack it to any directory (`/opt/anrdoid-sdk` for example) and install required packages Android SDK Available here:
https://developer.android.com/studio#downloads
Download Android SDK, unpack it to temporary directory `/tmp/anrdoid-sdk` and install it (in `/opt/android-sdk` for example) with required packages
```bash ```bash
mkdir /opt/android-sdk mkdir /tmp/android-sdk
cd /opt/android-sdk cd /tmp/android-sdk
wget https://dl.google.com/android/repository/commandlinetools-linux-8092744_latest.zip wget https://dl.google.com/android/repository/commandlinetools-linux-8092744_latest.zip
unzip commandlinetools-linux-8092744_latest.zip unzip commandlinetools-linux-8092744_latest.zip
# install required tools # install required tools
./cmdline-tools/bin/sdkmanager --sdk_root=/opt/android-sdk "build-tools;29.0.3" "cmake;3.18.1" "ndk;23.1.7779620" ./cmdline-tools/bin/sdkmanager --sdk_root=/opt/android-sdk "build-tools;31.0.0" "cmake;3.18.1" "ndk;21.4.7075529"
``` ```
### Clone repository with submodules ### Clone repository with submodules
@ -45,7 +44,7 @@ git clone --recurse-submodules https://github.com/PurpleI2P/i2pd-android.git
### Compile application ### Compile application
```bash ```bash
export ANDROID_SDK_ROOT=/opt/android-sdk export ANDROID_SDK_ROOT=/opt/android-sdk
export ANDROID_NDK_HOME=$ANDROID_SDK_ROOT/ndk/23.1.7779620 export ANDROID_NDK_HOME=$ANDROID_SDK_ROOT/ndk/21.4.7075529
pushd app/jni pushd app/jni
./build_boost.sh ./build_boost.sh