1
0
Fork
You've already forked i2pd-android
0
i2pd for Android
  • Java 80.7%
  • C++ 6.3%
  • Makefile 5.8%
  • Shell 5.4%
  • C 1.8%
Find a file
R4SAS 67a98991d0
fix binary build
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2022年09月18日 11:45:05 +03:00
.github/workflows rework libraries building scripts, output paths, remove rename usage 2022年05月18日 04:20:07 +00:00
app fix typo 2022年09月18日 11:11:39 +03:00
binary/jni fix binary build 2022年09月18日 11:45:05 +03:00
contrib/binary_pack fix script paths 2022年04月29日 15:29:27 +03:00
fastlane/metadata/android [i18n] add translations from crowdin 2022年09月04日 22:39:26 +03:00
gradle/wrapper rework main ui, change theme, remove unused code 2022年03月30日 03:58:16 +03:00
.gitignore import android code from i2pd repo 2020年06月06日 03:51:41 +03:00
.gitmodules [jni] switch to build from sources ( #32 ) 2022年01月27日 17:39:30 +03:00
build.gradle fix JNI string release before executing C++ functions, update gradle to 7.1.3 2022年04月09日 01:11:53 +03:00
build.xml import android code from i2pd repo 2020年06月06日 03:51:41 +03:00
gradle.properties fix start on API lesser 21 2021年03月17日 12:40:52 +03:00
gradlew update gradlew, gh action 2022年01月28日 10:41:57 +00:00
gradlew.bat update gradlew, gh action 2022年01月28日 10:41:57 +00:00
LICENSE upload license 2021年04月25日 19:17:35 +03:00
README.md update readme 2022年05月19日 13:08:36 +03:00
settings.gradle i2pd 2.33.0-63, tabulation, gradle configuration 2020年10月15日 04:31:35 +03:00

GitHub release License Android CI

i2pd android

This repository contains Android application sources of i2pd

Get it on F-Droid

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:

https://gradle.org/install/

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

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).

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.