user 4 years ago
parent
commit
ae3cb54514
  1. 10
      docs/devs/building/android.md

10
docs/devs/building/android.md

@ -6,7 +6,7 @@ There are two versions: with QT and without QT. @@ -6,7 +6,7 @@ There are two versions: with QT and without QT.
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")
- [NDK](https://developer.android.com/ndk/downloads/index.html)
@ -28,7 +28,7 @@ Dependencies @@ -28,7 +28,7 @@ Dependencies
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/MiniUPnP-for-Android-Prebuilt.git
git clone https://github.com/PurpleI2P/android-ifaddrs.git
@ -53,8 +53,8 @@ Building the app without QT @@ -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
- 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
- Create or edit file 'local.properties'. Place 'sdk.dir=`<path to SDK>`' and 'ndk.dir=`<path to NDK>`'
- Run `gradle clean cleanBuildCache assembleDebug` from `android` folder
- You will find an .apk file in `android/build/outputs/apk` folder
Creating release .apk
@ -86,7 +86,7 @@ Change file 'build.gradle': @@ -86,7 +86,7 @@ Change file 'build.gradle':
+ signingConfig signingConfigs.release
```
Run `gradle clean assembleRelease`
Run `gradle clean cleanBuildCache assembleRelease`
Building executable android binary
------------------------------

Loading…
Cancel
Save