1.6 KiB
1.6 KiB
Android Build
Build the APK with:
make apk
Environment:
ANDROID_SDK_ROOTdefaults to/opt/android-sdk.ANDROID_NDK_ROOTdefaults to/opt/android-ndk.JAVA_HOMEdefaults to/usr/lib/jvm/java-25-openjdk.APP_IDoverrides the Android application id.APP_VERSIONoverrides the version shown inside KeePassGO itself.APK_OUToverrides the output path.APK_VERSIONoverrides the packaged app version.ANDROID_MIN_SDKoverrides the minimum supported Android SDK.ANDROID_TARGET_SDKoverrides the target Android SDK.
Installed machine prerequisites expected by this repo:
android-sdk-cmdline-tools-latestandroid-sdk-build-toolsandroid-platform-35android-sdk-platform-tools- a working JDK install
The repo tracks gogio as a Go tool, so the build runs through:
go tool gogio -target android ...
The Android build uses the branded icon asset at:
assets/keepassgo-icon.png
Note:
- Gio's Android doc currently references Java 1.8, but the Android build-tools
installed on this machine (
d8from build-tools 37) do not run on Java 8. - In this environment, KeePassGO's APK build requires a newer JDK runtime on
PATH, which is why the repo defaultsJAVA_HOMEto/usr/lib/jvm/java-25-openjdk. - Android runtime testing on the
KeepassGoAPI35emulator showed a black-screen regression withgioui.org v0.9.0while a stock Gio example and KeePassGO both rendered correctly withgioui.org v0.8.0on the same emulator and SDK/JDK pipeline. KeePassGO is pinned to the working Gio line until that regression is understood upstream.