浏览代码

new lib version

marinofaggiana 3 年之前
父节点
当前提交
4a2b69ffa0

+ 2 - 2
Nextcloud.xcodeproj/project.pbxproj

@@ -2941,7 +2941,7 @@
 			repositoryURL = "https://github.com/realm/realm-cocoa";
 			requirement = {
 				kind = exactVersion;
-				version = 10.16.0;
+				version = 10.17.0;
 			};
 		};
 		F786D58B253454BF00E3DD7B /* XCRemoteSwiftPackageReference "ios-communication-library" */ = {
@@ -2949,7 +2949,7 @@
 			repositoryURL = "https://github.com/nextcloud/ios-communication-library/";
 			requirement = {
 				kind = revision;
-				revision = 191b69d74ed12acc76a3d291542f0c587c43c7c0;
+				revision = 2e4363dc1689282e957fcbef430cdc6ffde94147;
 			};
 		};
 		F788ECC5263AAAF900ADC67F /* XCRemoteSwiftPackageReference "MarkdownKit" */ = {

+ 3 - 3
Nextcloud.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

@@ -105,7 +105,7 @@
         "repositoryURL": "https://github.com/nextcloud/ios-communication-library/",
         "state": {
           "branch": null,
-          "revision": "191b69d74ed12acc76a3d291542f0c587c43c7c0",
+          "revision": "2e4363dc1689282e957fcbef430cdc6ffde94147",
           "version": null
         }
       },
@@ -186,8 +186,8 @@
         "repositoryURL": "https://github.com/realm/realm-cocoa",
         "state": {
           "branch": null,
-          "revision": "052f92ef8dd411616cfcfae8dd82888dcd4ecf45",
-          "version": "10.16.0"
+          "revision": "7ca0ce1dd58553d5be1ec9cc7283b068c256979d",
+          "version": "10.17.0"
         }
       },
       {

+ 19 - 17
iOSClient/NCGlobal.swift

@@ -329,26 +329,28 @@ class NCGlobal: NSObject {
 
 //let rootView = UIApplication.shared.keyWindow?.rootViewController?.view
 
-//DispatchQueue.main.async
-//DispatchQueue.main.asyncAfter(deadline: .now() + 0.1)
-//DispatchQueue.global().async
-//DispatchQueue.global(qos: .background).async
+/*
+DispatchQueue.main.async {
+DispatchQueue.main.asyncAfter(deadline: .now() + 0.1)
+DispatchQueue.global().async
+DispatchQueue.global(qos: .background).async
 
-//#if targetEnvironment(simulator)
-//#endif
+#if targetEnvironment(simulator)
+#endif
 
-//dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
-//dispatch_async(dispatch_get_main_queue(), ^{
-//dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 0.3 * NSEC_PER_SEC), dispatch_get_main_queue(), ^(void) {
+dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
+dispatch_async(dispatch_get_main_queue(), ^{
+dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 0.3 * NSEC_PER_SEC), dispatch_get_main_queue(), ^(void) {
 
-//#if TARGET_OS_SIMULATOR
-//#endif
+#if TARGET_OS_SIMULATOR
+#endif
 
-//if let popoverController = alertController.popoverPresentationController {
-//    popoverController.sourceView = self.view
-//    popoverController.sourceRect = CGRect(x: self.view.bounds.midX, y: self.view.bounds.midY, width: 0, height: 0)
-//    popoverController.permittedArrowDirections = []
-//}
+if let popoverController = alertController.popoverPresentationController {
+    popoverController.sourceView = self.view
+    popoverController.sourceRect = CGRect(x: self.view.bounds.midX, y: self.view.bounds.midY, width: 0, height: 0)
+    popoverController.permittedArrowDirections = []
+}
 
-// @discardableResult
+@discardableResult
+*/