|
|
@ -6,7 +6,7 @@ There are two versions: with QT and without QT. |
|
|
|
Pre-requisites |
|
|
|
Pre-requisites |
|
|
|
-------------- |
|
|
|
-------------- |
|
|
|
|
|
|
|
|
|
|
|
You need to install Android SDK, NDK and QT with android support. |
|
|
|
You need to install Android SDK and NDK. For QT version, you also need QT with android support. |
|
|
|
|
|
|
|
|
|
|
|
- [SDK](https://developer.android.com/studio/index.html) (choose command line tools only, and make sure you installed "Android SDK Build-Tools") |
|
|
|
- [SDK](https://developer.android.com/studio/index.html) (choose command line tools only, and make sure you installed "Android SDK Build-Tools") |
|
|
|
- [NDK](https://developer.android.com/ndk/downloads/index.html) |
|
|
|
- [NDK](https://developer.android.com/ndk/downloads/index.html) |
|
|
@ -28,7 +28,7 @@ Dependencies |
|
|
|
|
|
|
|
|
|
|
|
Take following pre-compiled binaries from PurpleI2P's repositories. |
|
|
|
Take following pre-compiled binaries from PurpleI2P's repositories. |
|
|
|
|
|
|
|
|
|
|
|
git clone https://github.com/PurpleI2P/Boost-for-Android-Prebuilt.git |
|
|
|
git clone https://github.com/PurpleI2P/Boost-for-Android-Prebuilt.git -b boost-1_72_0 |
|
|
|
git clone https://github.com/PurpleI2P/OpenSSL-for-Android-Prebuilt.git |
|
|
|
git clone https://github.com/PurpleI2P/OpenSSL-for-Android-Prebuilt.git |
|
|
|
git clone https://github.com/PurpleI2P/MiniUPnP-for-Android-Prebuilt.git |
|
|
|
git clone https://github.com/PurpleI2P/MiniUPnP-for-Android-Prebuilt.git |
|
|
|
git clone https://github.com/PurpleI2P/android-ifaddrs.git |
|
|
|
git clone https://github.com/PurpleI2P/android-ifaddrs.git |
|
|
@ -53,8 +53,8 @@ Building the app without QT |
|
|
|
--------------------------- |
|
|
|
--------------------------- |
|
|
|
|
|
|
|
|
|
|
|
- Change line `I2PD_LIBS_PATH` in `android/jni/Application.mk` to an actual path where you put the dependencies to |
|
|
|
- Change line `I2PD_LIBS_PATH` in `android/jni/Application.mk` to an actual path where you put the dependencies to |
|
|
|
- Create or edit file 'local.properties'. Place 'sdk.dir=<path to SDK>' and 'ndk.dir=<path to NDK>' |
|
|
|
- Create or edit file 'local.properties'. Place 'sdk.dir=`<path to SDK>`' and 'ndk.dir=`<path to NDK>`' |
|
|
|
- Run `gradle clean assembleDebug` from `android` folder |
|
|
|
- Run `gradle clean cleanBuildCache assembleDebug` from `android` folder |
|
|
|
- You will find an .apk file in `android/build/outputs/apk` folder |
|
|
|
- You will find an .apk file in `android/build/outputs/apk` folder |
|
|
|
|
|
|
|
|
|
|
|
Creating release .apk |
|
|
|
Creating release .apk |
|
|
@ -86,7 +86,7 @@ Change file 'build.gradle': |
|
|
|
+ signingConfig signingConfigs.release |
|
|
|
+ signingConfig signingConfigs.release |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
Run `gradle clean assembleRelease` |
|
|
|
Run `gradle clean cleanBuildCache assembleRelease` |
|
|
|
|
|
|
|
|
|
|
|
Building executable android binary |
|
|
|
Building executable android binary |
|
|
|
------------------------------ |
|
|
|
------------------------------ |
|
|
|