Add permission manager from Itinerary so that Android permissions can be checked. Note at the moment the request permission functions are not hooked up so on Android the permission will need to be manually set on. I'll hook this up later but I wanted to confirm my suspicion on notifications being the current cause of crashes.
25 lines
502 B
Plaintext
25 lines
502 B
Plaintext
/*
|
|
SPDX-FileCopyrightText: 2022 Volker Krause <vkrause@kde.org>
|
|
SPDX-License-Identifier: LGPL-2.0-or-later
|
|
*/
|
|
|
|
#ifndef KANDROIDEXTRAS_MOCK_QCOREAPPLICATION_H
|
|
#define KANDROIDEXTRAS_MOCK_QCOREAPPLICATION_H
|
|
|
|
#include_next <QCoreApplication>
|
|
|
|
#include <QJniObject>
|
|
|
|
namespace QNativeInterface {
|
|
namespace QAndroidApplication {
|
|
inline QJniObject context()
|
|
{
|
|
QJniObject obj;
|
|
obj.addToProtocol(QStringLiteral("global androidContext()"));
|
|
return obj;
|
|
}
|
|
}
|
|
}
|
|
|
|
#endif
|