wipedlifepotato
5e4bdfb7ec
|
2 years ago | |
---|---|---|
.github/workflows | 2 years ago | |
app | 2 years ago | |
binary/jni | 2 years ago | |
contrib | 2 years ago | |
fastlane/metadata/android | 2 years ago | |
gradle/wrapper | 2 years ago | |
.gitignore | 5 years ago | |
.gitmodules | 3 years ago | |
LICENSE | 4 years ago | |
README.md | 2 years ago | |
build.gradle | 2 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 g++, OpenJDK 11+, gradle 5.1+
sudo apt-get install g++ 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;22.1.7171670"
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/22.1.7171670
pushd app/jni
./build_boost.sh
pushd boost/build/out
cp ../../../../../contrib/fix_boost.sh .
bash fix_boost.sh
popd
./build_openssl.sh
./build_miniupnpc.sh
popd
./gradlew clean assembleDebug
You will find APKs in app/build/outputs/apk
Building on Windows
For building on Windows you must use MSYS2 with mingw64
or ucrt64
shell and preinstalled gcc
( package mingw-w64-x86_64-gcc
or mingw-w64-ucrt-x86_64-gcc
). But you would to use WSL. Is better way in some things.
Java 11 can be downloaded from jdk.java.com
Download Android SDK command line tools for Windows, unpack and install it replacing --sdk_root=
path.
ANDROID_SDK_ROOT
variable must point to SDK using linux-way path, like /c/dev/android-sdk
when SDK installed to C:\dev\android-sdk
.
Gradle can be called with ./gradlew
command inside project root, or you can install it using pacman
and call gradle
like on linux.
Release signing
Current releases signed with certificate fingerprint (SHA-256):
FC:C3:C7:34:9E:22:6A:77:B3:70:46:BB:00:FD:04:BB:A5:30:32:21:01:F8:62:F3:6D:8C:3D:B0:EB:B6:35:20