[android] Fix JNI building in no-unity mode

Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
Konstantin Pastbin
2025-05-17 00:26:15 +07:00
committed by Konstantin Pastbin
parent 381642b0c9
commit 724feb151b
3 changed files with 5 additions and 1 deletions

View File

@@ -2,6 +2,8 @@
#include "map/gps_tracker.hpp"
#include "app/organicmaps/core/jni_helper.hpp"
#include <chrono>
extern "C"

View File

@@ -10,7 +10,7 @@ GuiThread::GuiThread()
{
JNIEnv * env = jni::GetEnv();
m_class = GetGlobalClassRef(env, "app/organicmaps/util/concurrency/UiThread");
m_class = jni::GetGlobalClassRef(env, "app/organicmaps/util/concurrency/UiThread");
ASSERT(m_class, ());
m_method = env->GetStaticMethodID(m_class, "forwardToMainThread", "(J)V");

View File

@@ -2,6 +2,8 @@
#include "platform/settings.hpp"
#include "app/organicmaps/core/jni_helper.hpp"
extern "C"
{
JNIEXPORT void JNICALL