From 13bf3a57cdebe0783e0175329613501e1b62cb27 Mon Sep 17 00:00:00 2001 From: dorian Date: Sun, 19 Jan 2020 16:34:01 +0100 Subject: [PATCH] re added compatibility with IOS 9.x --- fannyapp.pro | 3 +++ headers/ios/iosshareutils.hpp | 4 ++-- sources/ios/iosshareutils.mm | 4 ++-- sources/main.cpp | 1 + 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/fannyapp.pro b/fannyapp.pro index a331cfb..ea18781 100644 --- a/fannyapp.pro +++ b/fannyapp.pro @@ -67,6 +67,9 @@ win { ios { QMAKE_ASSET_CATALOGS += shared/Assets.xcassets + xcode_product_bundle_identifier_setting.value = "de.itsblue.fannyapp" + + QMAKE_IOS_DEPLOYMENT_TARGET=9.0 OBJECTIVE_SOURCES += \ sources/ios/docviewcontroller.mm \ diff --git a/headers/ios/iosshareutils.hpp b/headers/ios/iosshareutils.hpp index 8d1acc6..7445bb3 100755 --- a/headers/ios/iosshareutils.hpp +++ b/headers/ios/iosshareutils.hpp @@ -12,7 +12,7 @@ class IosShareUtils : public QObject Q_OBJECT public: - explicit IosShareUtils(QObject *parent = 0); + explicit IosShareUtils(); bool checkMimeTypeView(const QString &mimeType); bool checkMimeTypeEdit(const QString &mimeType); void sendFile(const QString &filePath, const QString &title, const QString &mimeType, const int &requestId); @@ -22,7 +22,7 @@ public: signals: void shareFinished(int requestCode); void shareNoAppAvailable(int requestCode); - void shareError(int requestCode, QString message); + //void shareError(int requestCode, QString message); }; #endif diff --git a/sources/ios/iosshareutils.mm b/sources/ios/iosshareutils.mm index 3938aa7..841568f 100755 --- a/sources/ios/iosshareutils.mm +++ b/sources/ios/iosshareutils.mm @@ -15,7 +15,7 @@ #import "headers/ios/docviewcontroller.hpp" -IosShareUtils::IosShareUtils(QObject *parent) : QObject(parent) +IosShareUtils::IosShareUtils() : QObject(nullptr) { // Sharing Files from other iOS Apps I got the ideas and some code contribution from: // Thomas K. Fischer (@taskfabric) - http://taskfabric.com - thx @@ -68,7 +68,7 @@ void IosShareUtils::sendFile(const QString &filePath, const QString &title, cons // [documentInteractionController presentPreviewAnimated:YES]; if(![documentInteractionController presentPreviewAnimated:YES]) { - emit shareError(0, tr("No App found to open: %1").arg(filePath)); + //emit shareError(0, tr("No App found to open: %1").arg(filePath)); } } } diff --git a/sources/main.cpp b/sources/main.cpp index 651e3c2..8e7870c 100644 --- a/sources/main.cpp +++ b/sources/main.cpp @@ -34,6 +34,7 @@ #include #include #include + #include "headers/serverconn.h" #include "headers/appsettings.h" #include "headers/foodplanmodel.h"