mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-05-08 14:33:23 +00:00
fix build iOS
This commit is contained in:
@@ -5,7 +5,9 @@
|
|||||||
#include <QQmlContext>
|
#include <QQmlContext>
|
||||||
#include <QThread>
|
#include <QThread>
|
||||||
|
|
||||||
#include "ui/utils/systemTrayNotificationHandler.h"
|
#if !defined(Q_OS_ANDROID) && !defined(Q_OS_IOS)
|
||||||
|
#include "ui/utils/systemTrayNotificationHandler.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "ui/controllers/api/subscriptionUiController.h"
|
#include "ui/controllers/api/subscriptionUiController.h"
|
||||||
#include "ui/controllers/api/apiNewsUiController.h"
|
#include "ui/controllers/api/apiNewsUiController.h"
|
||||||
@@ -139,7 +141,9 @@ private:
|
|||||||
SecureServersRepository* m_serversRepository;
|
SecureServersRepository* m_serversRepository;
|
||||||
SecureAppSettingsRepository* m_appSettingsRepository;
|
SecureAppSettingsRepository* m_appSettingsRepository;
|
||||||
|
|
||||||
|
#if !defined(Q_OS_ANDROID) && !defined(Q_OS_IOS)
|
||||||
NotificationHandler* m_notificationHandler;
|
NotificationHandler* m_notificationHandler;
|
||||||
|
#endif
|
||||||
|
|
||||||
QMetaObject::Connection m_reloadConfigErrorOccurredConnection;
|
QMetaObject::Connection m_reloadConfigErrorOccurredConnection;
|
||||||
|
|
||||||
|
|||||||
@@ -220,7 +220,7 @@ bool IosController::connectVpn(amnezia::Proto proto, const QJsonObject& configur
|
|||||||
m_rawConfig = configuration;
|
m_rawConfig = configuration;
|
||||||
m_serverAddress = configuration.value(configKey::hostName).toString().toNSString();
|
m_serverAddress = configuration.value(configKey::hostName).toString().toNSString();
|
||||||
|
|
||||||
const QString serverDescription = configuration.value(config_key::description).toString().trimmed();
|
const QString serverDescription = configuration.value(configKey::description).toString().trimmed();
|
||||||
QString tunnelName;
|
QString tunnelName;
|
||||||
if (serverDescription.isEmpty()) {
|
if (serverDescription.isEmpty()) {
|
||||||
tunnelName = ProtocolUtils::protoToString(proto);
|
tunnelName = ProtocolUtils::protoToString(proto);
|
||||||
|
|||||||
@@ -17,6 +17,10 @@
|
|||||||
#include <QFutureWatcher>
|
#include <QFutureWatcher>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
|
|
||||||
|
#ifdef Q_OS_IOS
|
||||||
|
#include "platforms/ios/ios_controller.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
namespace configKey
|
namespace configKey
|
||||||
|
|||||||
Reference in New Issue
Block a user