From 418f6ae8c8ccb968c2674548139dab36e2ab1905 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Sun, 15 Mar 2026 05:39:21 +0000 Subject: feat: add voice log UI with FAB, fragment container, and logbook domain models - Add VoiceLogFragment, VoiceLogViewModel, VoiceLogState, LogEntry, InMemoryLogbookRepository - Wire voice log FAB in MainActivity to show/hide fragment container - Add RECORD_AUDIO permission to manifest - Add native CMakeLists.txt and native-lib.cpp stubs - Fix missing BufferOverflow import in LocationService Co-Authored-By: Claude Sonnet 4.6 --- android-app/app/src/main/cpp/native-lib.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 android-app/app/src/main/cpp/native-lib.cpp (limited to 'android-app/app/src/main/cpp/native-lib.cpp') diff --git a/android-app/app/src/main/cpp/native-lib.cpp b/android-app/app/src/main/cpp/native-lib.cpp new file mode 100644 index 0000000..f606a41 --- /dev/null +++ b/android-app/app/src/main/cpp/native-lib.cpp @@ -0,0 +1,14 @@ +#include +#include +#include + +#define TAG "WindVisualizationNative" + +extern "C" JNIEXPORT jstring JNICALL +Java_org_terst_nav_MainActivity_stringFromJNI( + JNIEnv* env, + jobject /* this */) { + std::string hello = "Hello from C++"; + __android_log_print(ANDROID_LOG_INFO, TAG, "stringFromJNI called!"); + return env->NewStringUTF(hello.c_str()); +} -- cgit v1.2.3