1
0
mirror of https://github.com/PurpleI2P/i2pd-android.git synced 2025-01-09 06:17:53 +00:00
i2pd for Android
Go to file
r4sas 27cdad53ba
update README, add libraries rebuild skip flag
Signed-off-by: r4sas <r4sas@i2pmail.org>
2024-07-23 19:02:05 +00:00
.github/workflows move submodules, delete jni, remove ndkBuild from gradle 2024-07-21 20:15:07 +00:00
app move submodules, delete jni, remove ndkBuild from gradle 2024-07-21 20:15:07 +00:00
binary/jni update README, add libraries rebuild skip flag 2024-07-23 19:02:05 +00:00
contrib/binary_pack fix script paths 2022-04-29 15:29:27 +03:00
fastlane/metadata/android [i18n] pull updates 2024-05-13 21:19:33 +00:00
gradle/wrapper fix permissions asker activity start on some android 11+ devices 2023-01-08 20:14:17 +03:00
.gitignore [chore] update i2pd to 2.53.0, change build script 2024-07-21 19:23:54 +00:00
.gitmodules move submodules, delete jni, remove ndkBuild from gradle 2024-07-21 20:15:07 +00:00
build.gradle fix permissions asker activity start on some android 11+ devices 2023-01-08 20:14:17 +03:00
build.xml import android code from i2pd repo 2020-06-06 03:51:41 +03:00
gradle.properties move submodules, delete jni, remove ndkBuild from gradle 2024-07-21 20:15:07 +00: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, add libraries rebuild skip flag 2024-07-23 19:02:05 +00: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;33.0.1" "cmake;3.22.1" "ndk;23.2.8568313"

Clone repository with submodules

git clone --recurse-submodules https://github.com/PurpleI2P/i2pd-android.git
cd i2pd-android

Compile application

# if you are not using Java 11 by default:
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64

export ANDROID_HOME=/opt/android-sdk
export ANDROID_NDK_HOME=$ANDROID_HOME/ndk/23.2.8568313

pushd binary/jni
./build.sh -md
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_HOME 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