Mercurial
view gara/android/ndk/app/src/main/cpp/native-lib.cpp @ 50:983769fba767
Updated so that fzf works out of the box.
| author | June Park <me@mrjunejune.com> |
|---|---|
| date | Tue, 16 Dec 2025 21:01:45 -0500 |
| parents | 829623189a57 |
| children |
line wrap: on
line source
#include <jni.h> #include <string> extern "C" JNIEXPORT jstring JNICALL Java_com_example_android_bazel_MainActivity_stringFromJNI( JNIEnv *env, jobject /* this */) { std::string hello = "Hello from C++"; return env->NewStringUTF(hello.c_str()); }