Update Android Dependencies, use maplibre-gestures-android (#2714)
This commit is contained in:
@@ -35,7 +35,10 @@ void android_main(struct android_app* app) {
|
||||
|
||||
int finishedTestCount = 0;
|
||||
std::function<void()> testStatus = [&]() {
|
||||
ALooper_pollAll(0, &outFd, &outEvents, reinterpret_cast<void**>(&source));
|
||||
auto result = ALooper_pollOnce(0, &outFd, &outEvents, reinterpret_cast<void**>(&source));
|
||||
if (result == ALOOPER_POLL_ERROR) {
|
||||
throw std::runtime_error("ALooper_pollOnce returned an error");
|
||||
}
|
||||
|
||||
if (source != nullptr) {
|
||||
source->process(app, source);
|
||||
@@ -56,7 +59,10 @@ void android_main(struct android_app* app) {
|
||||
changeState(env, app, result);
|
||||
}
|
||||
while (true) {
|
||||
ALooper_pollAll(0, &outFd, &outEvents, reinterpret_cast<void**>(&source));
|
||||
auto result = ALooper_pollOnce(0, &outFd, &outEvents, reinterpret_cast<void**>(&source));
|
||||
if (result == ALOOPER_POLL_ERROR) {
|
||||
throw std::runtime_error("ALooper_pollOnce returned an error");
|
||||
}
|
||||
|
||||
if (source != nullptr) {
|
||||
source->process(app, source);
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#include "test_runner_common.hpp"
|
||||
#include <android/log.h>
|
||||
|
||||
#include <functional>
|
||||
|
||||
namespace mbgl {
|
||||
|
||||
void Log::platformRecord(EventSeverity severity, const std::string& msg) {
|
||||
|
||||
Reference in New Issue
Block a user