Browse Source

Merge branch 'develop'

Marino Faggiana 7 years ago
parent
commit
4cb842d642
50 changed files with 25 additions and 38 deletions
  1. 14 8
      iOSClient/AppDelegate.m
  2. 2 2
      iOSClient/Brand/Picker.plist
  3. 2 2
      iOSClient/Brand/PickerFileProvider.plist
  4. 2 2
      iOSClient/Brand/Share.plist
  5. 2 2
      iOSClient/Brand/iOSClient.plist
  6. 0 21
      iOSClient/Main/CCMain.m
  7. BIN
      iOSClient/Supporting Files/cs-CZ.lproj/Localizable.strings
  8. BIN
      iOSClient/Supporting Files/de.lproj/Localizable.strings
  9. BIN
      iOSClient/Supporting Files/en-GB.lproj/Localizable.strings
  10. 1 0
      iOSClient/Supporting Files/en.lproj/Localizable.strings
  11. BIN
      iOSClient/Supporting Files/es-419.lproj/Localizable.strings
  12. BIN
      iOSClient/Supporting Files/es-CL.lproj/Localizable.strings
  13. BIN
      iOSClient/Supporting Files/es-CO.lproj/Localizable.strings
  14. BIN
      iOSClient/Supporting Files/es-CR.lproj/Localizable.strings
  15. BIN
      iOSClient/Supporting Files/es-DO.lproj/Localizable.strings
  16. BIN
      iOSClient/Supporting Files/es-EC.lproj/Localizable.strings
  17. BIN
      iOSClient/Supporting Files/es-GT.lproj/Localizable.strings
  18. BIN
      iOSClient/Supporting Files/es-HN.lproj/Localizable.strings
  19. BIN
      iOSClient/Supporting Files/es-MX.lproj/Localizable.strings
  20. BIN
      iOSClient/Supporting Files/es-NI.lproj/Localizable.strings
  21. BIN
      iOSClient/Supporting Files/es-PA.lproj/Localizable.strings
  22. BIN
      iOSClient/Supporting Files/es-PE.lproj/Localizable.strings
  23. BIN
      iOSClient/Supporting Files/es-PR.lproj/Localizable.strings
  24. BIN
      iOSClient/Supporting Files/es-PY.lproj/Localizable.strings
  25. BIN
      iOSClient/Supporting Files/es-SV.lproj/Localizable.strings
  26. BIN
      iOSClient/Supporting Files/es-UY.lproj/Localizable.strings
  27. BIN
      iOSClient/Supporting Files/es.lproj/Localizable.strings
  28. BIN
      iOSClient/Supporting Files/fi-FI.lproj/Localizable.strings
  29. BIN
      iOSClient/Supporting Files/fr.lproj/Localizable.strings
  30. BIN
      iOSClient/Supporting Files/hu.lproj/Localizable.strings
  31. BIN
      iOSClient/Supporting Files/is.lproj/Localizable.strings
  32. BIN
      iOSClient/Supporting Files/it.lproj/Localizable.strings
  33. BIN
      iOSClient/Supporting Files/ja_JP.lproj/BKPasscodeView.strings
  34. BIN
      iOSClient/Supporting Files/ja_JP.lproj/Error.strings
  35. BIN
      iOSClient/Supporting Files/ja_JP.lproj/Localizable.strings
  36. BIN
      iOSClient/Supporting Files/ka-GE.lproj/Localizable.strings
  37. BIN
      iOSClient/Supporting Files/ko.lproj/Localizable.strings
  38. BIN
      iOSClient/Supporting Files/nb-NO.lproj/Localizable.strings
  39. BIN
      iOSClient/Supporting Files/nl.lproj/Localizable.strings
  40. BIN
      iOSClient/Supporting Files/pl.lproj/Localizable.strings
  41. BIN
      iOSClient/Supporting Files/pt-BR.lproj/Localizable.strings
  42. BIN
      iOSClient/Supporting Files/pt-PT.lproj/Localizable.strings
  43. BIN
      iOSClient/Supporting Files/ru.lproj/Localizable.strings
  44. BIN
      iOSClient/Supporting Files/sk-SK.lproj/Localizable.strings
  45. BIN
      iOSClient/Supporting Files/sr.lproj/Localizable.strings
  46. BIN
      iOSClient/Supporting Files/sv.lproj/Localizable.strings
  47. BIN
      iOSClient/Supporting Files/tr.lproj/Localizable.strings
  48. BIN
      iOSClient/Supporting Files/zh-Hans.lproj/Localizable.strings
  49. BIN
      iOSClient/Supporting Files/zh-Hant-TW.lproj/Localizable.strings
  50. 2 1
      iOSClient/Utility/CCUtility.m

+ 14 - 8
iOSClient/AppDelegate.m

@@ -900,19 +900,25 @@
     [buttonPlus setTranslatesAutoresizingMaskIntoConstraints:NO];
     [tabBarController.tabBar addSubview:buttonPlus];
     
-    constraint =[NSLayoutConstraint constraintWithItem:buttonPlus attribute:NSLayoutAttributeCenterX relatedBy:NSLayoutRelationEqual toItem:tabBarController.tabBar attribute:NSLayoutAttributeCenterX multiplier:1.0 constant:0];
+    multiplier = 1.0;
+    // X
+    constraint =[NSLayoutConstraint constraintWithItem:buttonPlus attribute:NSLayoutAttributeCenterX relatedBy:NSLayoutRelationEqual toItem:tabBarController.tabBar attribute:NSLayoutAttributeCenterX multiplier:multiplier constant:0];
     [tabBarController.view addConstraint:constraint];
-    
-    multiplier = 1 * (tabBarController.tabBar.frame.size.height - safeAreaBottom) / tabBarController.tabBar.frame.size.height;
-    constraint =[NSLayoutConstraint constraintWithItem:buttonPlus attribute:NSLayoutAttributeCenterY relatedBy:NSLayoutRelationEqual toItem:tabBarController.tabBar attribute:NSLayoutAttributeCenterY multiplier:multiplier constant:0];
+    // Y
+    if (safeAreaBottom == 0) {
+        constraint = [NSLayoutConstraint constraintWithItem:buttonPlus attribute:NSLayoutAttributeCenterY relatedBy:NSLayoutRelationEqual toItem:tabBarController.tabBar attribute:NSLayoutAttributeCenterY multiplier:multiplier constant:0];
+    } else {
+        constraint = [NSLayoutConstraint constraintWithItem:buttonPlus attribute:NSLayoutAttributeBottom relatedBy:NSLayoutRelationEqual toItem:tabBarController.tabBar attribute:NSLayoutAttributeCenterY multiplier:1.0 constant:+5];
+    }
     [tabBarController.view addConstraint:constraint];
     
-    multiplier = 0.8 * (tabBarController.tabBar.frame.size.height - safeAreaBottom) / tabBarController.tabBar.frame.size.height;
     
-    constraint =[NSLayoutConstraint constraintWithItem:buttonPlus attribute:NSLayoutAttributeWidth relatedBy:NSLayoutRelationEqual toItem:tabBarController.tabBar attribute:NSLayoutAttributeHeight multiplier:multiplier constant:0];
+    multiplier = 0.8 * (tabBarController.tabBar.frame.size.height - safeAreaBottom) / tabBarController.tabBar.frame.size.height;
+    // Width
+    constraint = [NSLayoutConstraint constraintWithItem:buttonPlus attribute:NSLayoutAttributeWidth relatedBy:NSLayoutRelationEqual toItem:tabBarController.tabBar attribute:NSLayoutAttributeHeight multiplier:multiplier constant:0];
     [tabBarController.view addConstraint:constraint];
-    
-    constraint =[NSLayoutConstraint constraintWithItem:buttonPlus attribute:NSLayoutAttributeHeight relatedBy:NSLayoutRelationEqual toItem:tabBarController.tabBar attribute:NSLayoutAttributeHeight multiplier:multiplier constant:0];
+    // Height
+    constraint = [NSLayoutConstraint constraintWithItem:buttonPlus attribute:NSLayoutAttributeHeight relatedBy:NSLayoutRelationEqual toItem:tabBarController.tabBar attribute:NSLayoutAttributeHeight multiplier:multiplier constant:0];
     [tabBarController.view addConstraint:constraint];
 }
 

+ 2 - 2
iOSClient/Brand/Picker.plist

@@ -17,9 +17,9 @@
 	<key>CFBundlePackageType</key>
 	<string>XPC!</string>
 	<key>CFBundleShortVersionString</key>
-	<string>2.21.2</string>
+	<string>2.21.3</string>
 	<key>CFBundleVersion</key>
-	<string>5</string>
+	<string>1</string>
 	<key>NSAppTransportSecurity</key>
 	<dict>
 		<key>NSAllowsArbitraryLoads</key>

+ 2 - 2
iOSClient/Brand/PickerFileProvider.plist

@@ -17,9 +17,9 @@
 	<key>CFBundlePackageType</key>
 	<string>XPC!</string>
 	<key>CFBundleShortVersionString</key>
-	<string>2.21.2</string>
+	<string>2.21.3</string>
 	<key>CFBundleVersion</key>
-	<string>5</string>
+	<string>1</string>
 	<key>NSExtension</key>
 	<dict>
 		<key>NSExtensionFileProviderDocumentGroup</key>

+ 2 - 2
iOSClient/Brand/Share.plist

@@ -17,9 +17,9 @@
 	<key>CFBundlePackageType</key>
 	<string>XPC!</string>
 	<key>CFBundleShortVersionString</key>
-	<string>2.21.2</string>
+	<string>2.21.3</string>
 	<key>CFBundleVersion</key>
-	<string>5</string>
+	<string>1</string>
 	<key>NSAppTransportSecurity</key>
 	<dict>
 		<key>NSAllowsArbitraryLoads</key>

+ 2 - 2
iOSClient/Brand/iOSClient.plist

@@ -46,7 +46,7 @@
 	<key>CFBundlePackageType</key>
 	<string>APPL</string>
 	<key>CFBundleShortVersionString</key>
-	<string>2.21.2</string>
+	<string>2.21.3</string>
 	<key>CFBundleSignature</key>
 	<string>????</string>
 	<key>CFBundleURLTypes</key>
@@ -69,7 +69,7 @@
 		</dict>
 	</array>
 	<key>CFBundleVersion</key>
-	<string>5</string>
+	<string>1</string>
 	<key>FIREBASE_ANALYTICS_COLLECTION_DEACTIVATED</key>
 	<true/>
 	<key>Fabric</key>

+ 0 - 21
iOSClient/Main/CCMain.m

@@ -50,8 +50,6 @@
     NSUInteger _numSelectedFileIDsMetadatas;
     NSMutableArray *_queueSelector;
     
-    NSMutableDictionary *_statusSwipeCell;
-    
     UIImageView *_ImageTitleHomeCryptoCloud;
     
     NSString *_directoryGroupBy;
@@ -132,7 +130,6 @@
     _metadata = [tableMetadata new];
     _hud = [[CCHud alloc] initWithView:[[[UIApplication sharedApplication] delegate] window]];
     _selectedFileIDsMetadatas = [NSMutableDictionary new];
-    _statusSwipeCell = [NSMutableDictionary new];
     _queueSelector = [NSMutableArray new];
     _isViewDidLoad = YES;
     _fatherPermission = @"";
@@ -4302,14 +4299,6 @@
     // store selected cells before relod
     NSArray *indexPaths = [self.tableView indexPathsForSelectedRows];
     
-    //store swipeOffset before relod
-    [_statusSwipeCell removeAllObjects];
-    for (MGSwipeTableCell *cell in self.tableView.visibleCells) {
-        NSIndexPath *indexPath = [self.tableView indexPathForCell:cell];
-        if (cell != nil && indexPath != nil)
-            [_statusSwipeCell setObject:[NSNumber numberWithDouble:cell.swipeOffset] forKey:indexPath];
-    }
-    
     // reload table view
     [self.tableView reloadData];
     
@@ -4859,16 +4848,6 @@
     //centerIconOverText
     MGSwipeButton *deleteButton = (MGSwipeButton *)[cell.rightButtons objectAtIndex:0];
     [deleteButton centerIconOverText];
-
-    //restore swipeOffset after relod
-    CGFloat swipeOffset = [[_statusSwipeCell objectForKey:indexPath] doubleValue];
-    if (swipeOffset < 0) {
-        [cell showSwipe:MGSwipeDirectionRightToLeft animated:NO];
-        [_statusSwipeCell removeObjectForKey:indexPath];
-    } else if (swipeOffset > 0) {
-        [cell showSwipe:MGSwipeDirectionLeftToRight animated:NO];
-        [_statusSwipeCell removeObjectForKey:indexPath];
-    }
     
     // ----------------------------------------------------------------------------------------------------------
     // more

BIN
iOSClient/Supporting Files/cs-CZ.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/de.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/en-GB.lproj/Localizable.strings


+ 1 - 0
iOSClient/Supporting Files/en.lproj/Localizable.strings

@@ -374,6 +374,7 @@
 "_search_sub_folder_"           = "Search here and in subfolders";
 
 "_theming_is_light_"            = "Server theming too brightly coloured, not applicable";
+"_cancel_all_task_"             = "Cancel all transfers";
 
 // Files Preview
 

BIN
iOSClient/Supporting Files/es-419.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/es-CL.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/es-CO.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/es-CR.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/es-DO.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/es-EC.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/es-GT.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/es-HN.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/es-MX.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/es-NI.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/es-PA.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/es-PE.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/es-PR.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/es-PY.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/es-SV.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/es-UY.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/es.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/fi-FI.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/fr.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/hu.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/is.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/it.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/ja_JP.lproj/BKPasscodeView.strings


BIN
iOSClient/Supporting Files/ja_JP.lproj/Error.strings


BIN
iOSClient/Supporting Files/ja_JP.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/ka-GE.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/ko.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/nb-NO.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/nl.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/pl.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/pt-BR.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/pt-PT.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/ru.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/sk-SK.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/sr.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/sv.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/tr.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/zh-Hans.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/zh-Hant-TW.lproj/Localizable.strings


+ 2 - 1
iOSClient/Utility/CCUtility.m

@@ -741,7 +741,8 @@
 
 + (NSString *)getHomeServerUrlActiveUrl:(NSString *)activeUrl
 {
-    if (activeUrl == nil) return nil;
+    if (activeUrl == nil)
+        return @"";
     
     return [activeUrl stringByAppendingString:webDAV];
 }