marinofaggiana 4 жил өмнө
parent
commit
b2030d3888

+ 9 - 8
iOSClient/AppDelegate.swift

@@ -11,12 +11,13 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
 
 
     var window: UIWindow?
     var window: UIWindow?
     var backgroundSessionCompletionHandler: (() -> Void)?
     var backgroundSessionCompletionHandler: (() -> Void)?
-
-    var account: String = ""
-    var urlBase: String = ""
-    var user: String = ""
-    var userID: String = ""
-    var password: String = ""
+    var preferredUserInterfaceStyle: UIUserInterfaceStyle?
+    
+    @objc var account: String = ""
+    @objc var urlBase: String = ""
+    @objc var user: String = ""
+    @objc var userID: String = ""
+    @objc var password: String = ""
     
     
     var activeFavorite: NCFavorite?
     var activeFavorite: NCFavorite?
     var activeFiles: NCFiles?
     var activeFiles: NCFiles?
@@ -51,7 +52,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
     var passcodeViewController: TOPasscodeViewController?
     var passcodeViewController: TOPasscodeViewController?
     var pasteboardOcIds: [String] = []
     var pasteboardOcIds: [String] = []
     var shares: [tableShare] = []
     var shares: [tableShare] = []
-    var timerErrorNetworking: Timer?
+    @objc var timerErrorNetworking: Timer?
 
 
     /*
     /*
     @property (nonatomic) UIUserInterfaceStyle preferredUserInterfaceStyle API_AVAILABLE(ios(12.0));
     @property (nonatomic) UIUserInterfaceStyle preferredUserInterfaceStyle API_AVAILABLE(ios(12.0));
@@ -91,7 +92,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
         
         
     }
     }
 
 
-    func startTimerErrorNetworking() {
+    @objc func startTimerErrorNetworking() {
         timerErrorNetworking = Timer.scheduledTimer(timeInterval: 3, target: self, selector: #selector(checkErrorNetworking), userInfo: nil, repeats: true)
         timerErrorNetworking = Timer.scheduledTimer(timeInterval: 3, target: self, selector: #selector(checkErrorNetworking), userInfo: nil, repeats: true)
     }
     }
     
     

+ 3 - 1
iOSClient/PushNotification/NCPushNotification.m

@@ -21,14 +21,16 @@
 //  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 //  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 //
 //
 
 
+#import <UserNotifications/UserNotifications.h>
 #import "NCBridgeSwift.h"
 #import "NCBridgeSwift.h"
 #import "NCPushNotification.h"
 #import "NCPushNotification.h"
 #import "NCPushNotificationEncryption.h"
 #import "NCPushNotificationEncryption.h"
+#import "NCEndToEndEncryption.h"
 #import "CCUtility.h"
 #import "CCUtility.h"
 
 
 @interface NCPushNotification ()
 @interface NCPushNotification ()
 {
 {
-    AppDelegate *appDelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
+    AppDelegate *appDelegate;
 }
 }
 @end
 @end
 
 

+ 0 - 1
iOSClient/Settings/CCAdvanced.m

@@ -23,7 +23,6 @@
 
 
 #import "CCAdvanced.h"
 #import "CCAdvanced.h"
 #import "CCUtility.h"
 #import "CCUtility.h"
-#import "AppDelegate.h"
 #import "NSNotificationCenter+MainThread.h"
 #import "NSNotificationCenter+MainThread.h"
 #import <KTVHTTPCache/KTVHTTPCache.h>
 #import <KTVHTTPCache/KTVHTTPCache.h>
 #import "NCBridgeSwift.h"
 #import "NCBridgeSwift.h"

+ 2 - 0
iOSClient/Settings/CCManageAutoUpload.m

@@ -21,7 +21,9 @@
 //  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 //  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 //
 //
 
 
+#import <Photos/Photos.h>
 #import "CCManageAutoUpload.h"
 #import "CCManageAutoUpload.h"
+#import "CCUtility.h"
 #import "NCBridgeSwift.h"
 #import "NCBridgeSwift.h"
 
 
 @interface CCManageAutoUpload () <NCSelectDelegate>
 @interface CCManageAutoUpload () <NCSelectDelegate>