24 lines
1.6 KiB
Plaintext
24 lines
1.6 KiB
Plaintext
How to build Keepass2Android
|
|
|
|
* Overview *
|
|
Keepass2Android is a Mono for Android app. This means that you need Xamarin's Mono for Android to build it. However, it also uses several components written in Java, so there are also Android-Studio projects involved. To make things even worse, parts of the keyboard and kdb-library are written in native code.
|
|
The current build-scripts assume that the native libraries are already built (they are included in the repo).
|
|
|
|
To build KP2A from scratch, make sure that you have Xamarin's Mono for Android installed and also install Android Studio. Make sure that both point to the same Android SDK location.
|
|
|
|
On Windows you can use
|
|
|
|
cd build-scripts
|
|
build-java.bat
|
|
build-xamarin.bat
|
|
|
|
build-java.bat will call gradlew for several Java modules. build-xamarin.bat will first make sure that you have all files at their place. (There is a "secret" file for Dropbox SDK keys which is not in the repo, this is replaced with a dummy file. There are also different Android Manifest files depending on the configuration which is selected by calling the appropriate script.)
|
|
|
|
|
|
* Notes *
|
|
- Please don't forget to update the git submodules before building.
|
|
- For building the java parts on Windows, it is suggested to keep a short name (e.g. "c:\projects\keepass2android") for the root project directory. Otherwise the Windows path length limit might be hit when building.
|
|
- Before building the java parts, make sure you have set the ANDROID_HOME variable or create a local.properties file inside the directories with a gradlew file. It is recommended to use the same SDK location as that of the Xamarin build.
|
|
|
|
|