You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
R4SAS
8e2e80ea5d
|
3 years ago | |
---|---|---|
.github/workflows | 3 years ago | |
app | 3 years ago | |
binary/jni | 3 years ago | |
contrib/binary_pack | 3 years ago | |
fastlane/metadata/android | 3 years ago | |
gradle/wrapper | 3 years ago | |
.gitignore | 5 years ago | |
.gitmodules | 3 years ago | |
LICENSE | 4 years ago | |
README.md | 3 years ago | |
build.gradle | 3 years ago | |
build.xml | 5 years ago | |
gradle.properties | 4 years ago | |
gradlew | 3 years ago | |
gradlew.bat | 3 years ago | |
settings.gradle | 4 years ago |
README.md
i2pd android
This repository contains Android application sources of i2pd
How to build
Install OpenJDK 11+, g++, rename (used for building modules), gradle 5.1+
sudo apt-get install g++ rename openjdk-11-jdk gradle
If your system provides gradle with version < 5.1, download it from gradle homepage:
Download and prepare Android SDK for building
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
mkdir /tmp/android-sdk
cd /tmp/android-sdk
wget https://dl.google.com/android/repository/commandlinetools-linux-8092744_latest.zip
unzip commandlinetools-linux-8092744_latest.zip
# install required tools
./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
git clone --recurse-submodules https://github.com/PurpleI2P/i2pd-android.git
Compile application
export ANDROID_SDK_ROOT=/opt/android-sdk
export ANDROID_NDK_HOME=$ANDROID_SDK_ROOT/ndk/21.4.7075529
pushd app/jni
./build_boost.sh
./build_openssl.sh
./build_miniupnpc.sh
popd
gradle clean assembleDebug
You will find APKs in app/build/outputs/apk