Ver Fonte

new build

marinofaggiana há 4 anos atrás
pai
commit
8aa205762b
2 ficheiros alterados com 60 adições e 60 exclusões
  1. 8 8
      Nextcloud.xcodeproj/project.pbxproj
  2. 52 52
      iOSClient/AppDelegate.m

+ 8 - 8
Nextcloud.xcodeproj/project.pbxproj

@@ -2229,7 +2229,7 @@
 				CODE_SIGN_IDENTITY = "iPhone Developer";
 				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
 				CODE_SIGN_STYLE = Automatic;
-				CURRENT_PROJECT_VERSION = 15;
+				CURRENT_PROJECT_VERSION = 16;
 				DEBUG_INFORMATION_FORMAT = dwarf;
 				DEVELOPMENT_TEAM = 6JLRKY9ZV7;
 				FRAMEWORK_SEARCH_PATHS = (
@@ -2284,7 +2284,7 @@
 				CODE_SIGN_IDENTITY = "iPhone Developer";
 				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
 				CODE_SIGN_STYLE = Automatic;
-				CURRENT_PROJECT_VERSION = 15;
+				CURRENT_PROJECT_VERSION = 16;
 				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
 				DEVELOPMENT_TEAM = 6JLRKY9ZV7;
 				FRAMEWORK_SEARCH_PATHS = (
@@ -2331,7 +2331,7 @@
 				CODE_SIGN_ENTITLEMENTS = iOSClient/Brand/Share.entitlements;
 				CODE_SIGN_IDENTITY = "iPhone Developer";
 				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
-				CURRENT_PROJECT_VERSION = 15;
+				CURRENT_PROJECT_VERSION = 16;
 				DEBUG_INFORMATION_FORMAT = dwarf;
 				DEVELOPMENT_TEAM = 6JLRKY9ZV7;
 				FRAMEWORK_SEARCH_PATHS = (
@@ -2379,7 +2379,7 @@
 				CODE_SIGN_ENTITLEMENTS = iOSClient/Brand/Share.entitlements;
 				CODE_SIGN_IDENTITY = "iPhone Developer";
 				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
-				CURRENT_PROJECT_VERSION = 15;
+				CURRENT_PROJECT_VERSION = 16;
 				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
 				DEVELOPMENT_TEAM = 6JLRKY9ZV7;
 				FRAMEWORK_SEARCH_PATHS = (
@@ -2433,7 +2433,7 @@
 				CODE_SIGN_IDENTITY = "iPhone Developer";
 				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
 				CODE_SIGN_STYLE = Automatic;
-				CURRENT_PROJECT_VERSION = 15;
+				CURRENT_PROJECT_VERSION = 16;
 				DEBUG_INFORMATION_FORMAT = dwarf;
 				DEVELOPMENT_TEAM = 6JLRKY9ZV7;
 				FRAMEWORK_SEARCH_PATHS = (
@@ -2487,7 +2487,7 @@
 				CODE_SIGN_IDENTITY = "iPhone Developer";
 				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
 				CODE_SIGN_STYLE = Automatic;
-				CURRENT_PROJECT_VERSION = 15;
+				CURRENT_PROJECT_VERSION = 16;
 				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
 				DEVELOPMENT_TEAM = 6JLRKY9ZV7;
 				FRAMEWORK_SEARCH_PATHS = (
@@ -2533,7 +2533,7 @@
 				CODE_SIGN_ENTITLEMENTS = iOSClient/Brand/iOSClient.entitlements;
 				CODE_SIGN_IDENTITY = "iPhone Developer";
 				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
-				CURRENT_PROJECT_VERSION = 15;
+				CURRENT_PROJECT_VERSION = 16;
 				DEVELOPMENT_TEAM = 6JLRKY9ZV7;
 				ENABLE_BITCODE = YES;
 				FRAMEWORK_SEARCH_PATHS = (
@@ -2582,7 +2582,7 @@
 				CODE_SIGN_IDENTITY = "iPhone Developer";
 				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
 				COPY_PHASE_STRIP = NO;
-				CURRENT_PROJECT_VERSION = 15;
+				CURRENT_PROJECT_VERSION = 16;
 				DEVELOPMENT_TEAM = 6JLRKY9ZV7;
 				ENABLE_BITCODE = YES;
 				FRAMEWORK_SEARCH_PATHS = (

+ 52 - 52
iOSClient/AppDelegate.m

@@ -367,74 +367,74 @@
 
 - (void)openLoginView:(UIViewController *)viewController selector:(NSInteger)selector openLoginWeb:(BOOL)openLoginWeb
 {
-        // use appConfig [MDM]
-        if ([NCBrandOptions sharedInstance].use_configuration) {
-            
-            if (!(_appConfigView.isViewLoaded && _appConfigView.view.window)) {
-            
-                self.appConfigView = [[UIStoryboard storyboardWithName:@"CCLogin" bundle:nil] instantiateViewControllerWithIdentifier:@"NCAppConfigView"];
-                
-                [self showLoginViewController:self.appConfigView forContext:viewController];
-            }
+    // use appConfig [MDM]
+    if ([NCBrandOptions sharedInstance].use_configuration) {
         
-            return;
-        }
+        if (!(_appConfigView.isViewLoaded && _appConfigView.view.window)) {
         
-        // only for personalized LoginWeb [customer]
-        if ([NCBrandOptions sharedInstance].use_login_web_personalized) {
+            self.appConfigView = [[UIStoryboard storyboardWithName:@"CCLogin" bundle:nil] instantiateViewControllerWithIdentifier:@"NCAppConfigView"];
             
-            if (!(_activeLoginWeb.isViewLoaded && _activeLoginWeb.view.window)) {
-                
-                self.activeLoginWeb = [[UIStoryboard storyboardWithName:@"CCLogin" bundle:nil] instantiateViewControllerWithIdentifier:@"NCLoginWeb"];
-                self.activeLoginWeb.urlBase = [[NCBrandOptions sharedInstance] loginBaseUrl];
-
-                [self showLoginViewController:self.activeLoginWeb forContext:viewController];
-            }
-            
-            return;
+            [self showLoginViewController:self.appConfigView forContext:viewController];
         }
+    
+        return;
+    }
+    
+    // only for personalized LoginWeb [customer]
+    if ([NCBrandOptions sharedInstance].use_login_web_personalized) {
         
-        // normal login
-        if (selector == k_intro_signup) {
-            
-            if (!(_activeLoginWeb.isViewLoaded && _activeLoginWeb.view.window)) {
-                
-                self.activeLoginWeb = [[UIStoryboard storyboardWithName:@"CCLogin" bundle:nil] instantiateViewControllerWithIdentifier:@"NCLoginWeb"];
-                
-                if (selector == k_intro_signup) {
-                    self.activeLoginWeb.urlBase = [[NCBrandOptions sharedInstance] linkloginPreferredProviders];
-                } else {
-                    self.activeLoginWeb.urlBase = self.urlBase;
-                }
-                
-               [self showLoginViewController:self.activeLoginWeb forContext:viewController];
-            }
-            
-        } else if ([NCBrandOptions sharedInstance].disable_intro && [NCBrandOptions sharedInstance].disable_request_login_url) {
+        if (!(_activeLoginWeb.isViewLoaded && _activeLoginWeb.view.window)) {
             
             self.activeLoginWeb = [[UIStoryboard storyboardWithName:@"CCLogin" bundle:nil] instantiateViewControllerWithIdentifier:@"NCLoginWeb"];
             self.activeLoginWeb.urlBase = [[NCBrandOptions sharedInstance] loginBaseUrl];
-            
+
             [self showLoginViewController:self.activeLoginWeb forContext:viewController];
+        }
+        
+        return;
+    }
+    
+    // normal login
+    if (selector == k_intro_signup) {
+        
+        if (!(_activeLoginWeb.isViewLoaded && _activeLoginWeb.view.window)) {
             
-        } else if (openLoginWeb) {
+            self.activeLoginWeb = [[UIStoryboard storyboardWithName:@"CCLogin" bundle:nil] instantiateViewControllerWithIdentifier:@"NCLoginWeb"];
             
-            if (!(_activeLoginWeb.isViewLoaded && _activeLoginWeb.view.window)) {
-                self.activeLoginWeb = [[UIStoryboard storyboardWithName:@"CCLogin" bundle:nil] instantiateViewControllerWithIdentifier:@"NCLoginWeb"];
+            if (selector == k_intro_signup) {
+                self.activeLoginWeb.urlBase = [[NCBrandOptions sharedInstance] linkloginPreferredProviders];
+            } else {
                 self.activeLoginWeb.urlBase = self.urlBase;
-
-                [self showLoginViewController:self.activeLoginWeb forContext:viewController];
             }
             
-        } else {
+           [self showLoginViewController:self.activeLoginWeb forContext:viewController];
+        }
+        
+    } else if ([NCBrandOptions sharedInstance].disable_intro && [NCBrandOptions sharedInstance].disable_request_login_url) {
+        
+        self.activeLoginWeb = [[UIStoryboard storyboardWithName:@"CCLogin" bundle:nil] instantiateViewControllerWithIdentifier:@"NCLoginWeb"];
+        self.activeLoginWeb.urlBase = [[NCBrandOptions sharedInstance] loginBaseUrl];
+        
+        [self showLoginViewController:self.activeLoginWeb forContext:viewController];
+        
+    } else if (openLoginWeb) {
+        
+        if (!(_activeLoginWeb.isViewLoaded && _activeLoginWeb.view.window)) {
+            self.activeLoginWeb = [[UIStoryboard storyboardWithName:@"CCLogin" bundle:nil] instantiateViewControllerWithIdentifier:@"NCLoginWeb"];
+            self.activeLoginWeb.urlBase = self.urlBase;
+
+            [self showLoginViewController:self.activeLoginWeb forContext:viewController];
+        }
+        
+    } else {
+        
+        if (!(_activeLogin.isViewLoaded && _activeLogin.view.window)) {
             
-            if (!(_activeLogin.isViewLoaded && _activeLogin.view.window)) {
-                
-                _activeLogin = [[UIStoryboard storyboardWithName:@"CCLogin" bundle:nil] instantiateViewControllerWithIdentifier:@"CCLoginNextcloud"];
-                
-                [self showLoginViewController:_activeLogin forContext:viewController];
-            }
+            _activeLogin = [[UIStoryboard storyboardWithName:@"CCLogin" bundle:nil] instantiateViewControllerWithIdentifier:@"CCLoginNextcloud"];
+            
+            [self showLoginViewController:_activeLogin forContext:viewController];
         }
+    }
 }
 
 -(void)showLoginViewController:(UIViewController *)viewController forContext:(UIViewController *)contextViewController