Commit 80886144 authored by Volker Krause's avatar Volker Krause
Browse files

Add basic README for KAndroidExtras

parent f4483037
Pipeline #184803 passed with stage
in 1 minute and 35 seconds
# KAndroidExtras
Utilities for using Java Native Interface (JNI) to interface with Android platform API.
## Java Native Interface (JNI) wrapper
C++ header-only code for defining compile-time checked JNI wrappers.
- typed `jobject` wrappers (`Jni::Object`)
- wrappers for Java arrays holding primitive or non-primitive content (`Jni::Array`)
- reading static final properties (`JNI_CONSTANT`)
- reading and writing non-static properties (`JNI_PROPERTY`)
- static and non-static method calls, constructors (`JNI_METHOD`, `JNI_STATIC_METHOD`, `JNI_CONSTRUCTOR`)
Not yet supported:
- registering native methods for Java -> C++ calls
## JNI mock implementation
This is useful for automated testing of JNI code on other platforms than Android.
## Wrappers for Java and Android types
Predefined wrappers for common platform types needed in multiple places.
SPDX-FileCopyrightText: 2022 Volker Krause <>
SPDX-License-Identifier: CC0-1.0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment