This repository contains the Mist Api library for Android.
Get git submodules
git submodule update --init --recursive
You will need to point to Android SDK local.properties, like this:
sdk.dir=/home/jan/Android/Sdk
Note: Currently we are building with NDK 28.2.13676358, see MistApi/build.gradle
We are using openjdk version "17.0.17" 2025-10-21
The wishcore dependency is distributed via github packages, so this step is required for building MistApi.
Create github.properties in repo root, and add to .gitignore;
gpr.usr=
gpr.key=
Then visit this page to get your Github id: https://api.github.com/users/ like https://api.github.com/users/janyman
Take "id" field, and insert into github.properties as grp.usr.
Then create a publishing key for you, by visinting https://github.com/settings/tokens
Create a token that has "package write" permission, cut&paste into github.properties as grp.key
- Tag release
git tag 0.9.1
MistApi/build.gradle has the magic for setting artifact version according to latest git tag.
- Build only the MistApi module, since the 'app' module has some test code that does not seem to be up to date.
./gradlew :MistApi:assembleRelease
Doing a clean build:
Note: this attempts to build all modules. TODO: fix app module.
$ ./gradlew --refresh-dependencies clean :MistApi:assembleRelease
- Publish the 'aar' artifact
This publishes to Github packages:
./gradlew publish
The publishing is defined in app/build.gradle and requires that you have Github packages set up.
Edit your Android.mk so that you do not define -DRELEASE_BUILD and that you have -O0 -g
Build with:
NDK_DEBUG=1 ndk-build
Then build the project "assembleDebug" with Gradle
Then you can move the resulting aar file MistApi--debug.aar
To get stack traces you should use adb logcat and ndk-stack:
adb logcat | ndk-stack -sym ../obj/local/armeabi-v7a/
Or another example
adb logcat|~/Android/android-ndk-r16b/ndk-stack -sym MistApi/src/main/obj/local/armeabi-v7a/