mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03:36 +00:00
[android] Fix JNI building in no-unity mode
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
committed by
Konstantin Pastbin
parent
381642b0c9
commit
724feb151b
@@ -2,6 +2,8 @@
|
||||
|
||||
#include "map/gps_tracker.hpp"
|
||||
|
||||
#include "app/organicmaps/core/jni_helper.hpp"
|
||||
|
||||
#include <chrono>
|
||||
|
||||
extern "C"
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
#include "platform/settings.hpp"
|
||||
|
||||
#include "app/organicmaps/core/jni_helper.hpp"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
JNIEXPORT void JNICALL
|
||||
|
||||
Reference in New Issue
Block a user