Ver código fonte

new library nccommunication

marinofaggiana 4 anos atrás
pai
commit
c96158b9db

+ 1 - 1
Nextcloud.xcodeproj/project.pbxproj

@@ -2807,7 +2807,7 @@
 			repositoryURL = "https://github.com/nextcloud/ios-communication-library/";
 			requirement = {
 				kind = revision;
-				revision = bf4a7a044ff9df2f334649314858ed0299cf21e2;
+				revision = 7375b2eb694aab270bdcb1013c173d7f22fbe5aa;
 			};
 		};
 		F7C4D88B2534887E00C142DA /* XCRemoteSwiftPackageReference "Parchment" */ = {

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

@@ -24,7 +24,7 @@
         "repositoryURL": "https://github.com/nextcloud/ios-communication-library/",
         "state": {
           "branch": null,
-          "revision": "bf4a7a044ff9df2f334649314858ed0299cf21e2",
+          "revision": "7375b2eb694aab270bdcb1013c173d7f22fbe5aa",
           "version": null
         }
       },

+ 4 - 4
iOSClient/Login/CCLogin.m

@@ -339,7 +339,7 @@
                 [self.activity stopAnimating];
                 self.login.enabled = YES;
                 
-                [self AfterLoginWithUrl:url user:user token:token errorCode:errorCode message:errorDescription];
+                [self afterLoginWithUrl:url user:user token:token errorCode:errorCode message:errorDescription];
             }];
         }
     }
@@ -375,17 +375,17 @@
         self.login.enabled = NO;
         [self.activity startAnimating];
 
-        [[NCCommunication shared] getAppPasswordWithServerUrl:url username:user password:password customUserAgent:nil completionHandler:^(NSString *token, NSInteger errorCode, NSString *errorDescription) {
+        [[NCCommunication shared] getAppPasswordWithServerUrl:url username:user password:password userAgent:nil completionHandler:^(NSString *token, NSInteger errorCode, NSString *errorDescription) {
             
             [self.activity stopAnimating];
             self.login.enabled = YES;
             
-            [self AfterLoginWithUrl:url user:user token:token errorCode:errorCode message:errorDescription];
+            [self afterLoginWithUrl:url user:user token:token errorCode:errorCode message:errorDescription];
         }];
     }
 }
 
-- (void)AfterLoginWithUrl:(NSString *)url user:(NSString *)user token:(NSString *)token errorCode:(NSInteger)errorCode message:(NSString *)message
+- (void)afterLoginWithUrl:(NSString *)url user:(NSString *)user token:(NSString *)token errorCode:(NSInteger)errorCode message:(NSString *)message
 {
     if (errorCode == 0) {
         

+ 1 - 1
iOSClient/Login/NCAppConfigView.swift

@@ -73,7 +73,7 @@ class NCAppConfigView: UIViewController {
             return
         }
         
-        NCCommunication.shared.getAppPassword(serverUrl: serverUrl, username: username, password: password, customUserAgent: nil) { (token, errorCode, errorDescription) in
+        NCCommunication.shared.getAppPassword(serverUrl: serverUrl, username: username, password: password, userAgent: nil) { (token, errorCode, errorDescription) in
             DispatchQueue.main.async {
                 if errorCode == 0 && token != nil {
                     let account: String = "\(username) \(serverUrl)"