4
0
mirror of https://github.com/QuasarApp/QuasarAppLib.git synced 2025-05-02 12:39:41 +00:00

fix build on android and ios

This commit is contained in:
Andrei Yankovich 2024-01-21 10:47:50 +01:00
parent 00b80d9454
commit ad27b38b10

@ -11,8 +11,10 @@
#include <QDir>
#include <QFileInfo>
#include <QProcessEnvironment>
#elif Q_OS_ANDROID
#elif Q_OS_WIN32
#elif Q_OS_MACOS
#elif Q_OS_IOS
#endif
namespace QuasarAppUtils {
@ -52,41 +54,38 @@ bool PlatformUtils::checkSystemBakupSnapInterface() {
return QDir(snapRootFS()).entryList(QDir::AllEntries | QDir::NoDotAndDotDot).size();
}
#elif Q_OS_ANDROID
bool PlatformUtils::isSnap() { return false;}
QString PlatformUtils::snapRootFS() { return "";}
QString PlatformUtils::transportPathToSnapRoot(const QString &path) { return path; }
bool PlatformUtils::checkSystemBakupSnapInterface() { return false; }
#elif Q_OS_WIN32
bool PlatformUtils::isSnap() {
return false;
}
bool PlatformUtils::isSnap() { return false;}
QString PlatformUtils::snapRootFS() {
return "";
}
QString PlatformUtils::snapRootFS() { return "";}
QString PlatformUtils::transportPathToSnapRoot(const QString &path) {
return path;
}
bool PlatformUtils::checkSystemBakupSnapInterface() {
return false;
}
QString PlatformUtils::transportPathToSnapRoot(const QString &path) { return path; }
bool PlatformUtils::checkSystemBakupSnapInterface() { return false; }
#elif Q_OS_MACOS
bool PlatformUtils::isSnap() {
return false;
}
bool PlatformUtils::isSnap() { return false;}
QString PlatformUtils::snapRootFS() {
return "";
}
QString PlatformUtils::snapRootFS() { return "";}
QString PlatformUtils::transportPathToSnapRoot(const QString &path) {
return path;
}
QString PlatformUtils::transportPathToSnapRoot(const QString &path) { return path; }
bool PlatformUtils::checkSystemBakupSnapInterface() {
return false;
}
bool PlatformUtils::checkSystemBakupSnapInterface() { return false; }
#elif Q_OS_IOS
bool PlatformUtils::isSnap() { return false;}
QString PlatformUtils::snapRootFS() { return "";}
QString PlatformUtils::transportPathToSnapRoot(const QString &path) { return path; }
bool PlatformUtils::checkSystemBakupSnapInterface() { return false; }
#endif
}