소스 검색

one more unsupported class macrod out

Kevin Bradley 5 년 전
부모
커밋
cbe3ae5eec
2개의 변경된 파일8개의 추가작업 그리고 2개의 파일을 삭제
  1. 8 2
      Classes/GlobalStateExplorers/FileBrowser/FLEXFileBrowserController.m
  2. BIN
      layout/Library/Frameworks/FLEX.framework/FLEX

+ 8 - 2
Classes/GlobalStateExplorers/FileBrowser/FLEXFileBrowserController.m

@@ -32,7 +32,9 @@ typedef NS_ENUM(NSUInteger, FLEXFileBrowserSortAttribute) {
 @property (nonatomic) NSNumber *recursiveSize;
 @property (nonatomic) NSNumber *searchPathsSize;
 @property (nonatomic) NSOperationQueue *operationQueue;
+#if !TARGET_OS_TV
 @property (nonatomic) UIDocumentInteractionController *documentController;
+#endif
 @property (nonatomic) FLEXFileBrowserSortAttribute sortAttribute;
 
 @end
@@ -401,11 +403,13 @@ typedef NS_ENUM(NSUInteger, FLEXFileBrowserSortAttribute) {
 #endif
 
 - (void)openFileController:(NSString *)fullPath {
+#if !TARGET_OS_TV
     UIDocumentInteractionController *controller = [UIDocumentInteractionController new];
     controller.URL = [NSURL fileURLWithPath:fullPath];
 
     [controller presentOptionsMenuFromRect:self.view.bounds inView:self.view animated:YES];
     self.documentController = controller;
+#endif
 }
 
 - (void)fileBrowserRename:(UITableViewCell *)sender {
@@ -466,6 +470,7 @@ typedef NS_ENUM(NSUInteger, FLEXFileBrowserSortAttribute) {
 }
 
 - (void)fileBrowserShare:(UITableViewCell *)sender {
+#if !TARGET_OS_TV
     NSIndexPath *indexPath = [self.tableView indexPathForCell:sender];
     NSString *pathString = [self filePathAtIndexPath:indexPath];
     NSURL *filePath = [NSURL fileURLWithPath:pathString];
@@ -478,11 +483,12 @@ typedef NS_ENUM(NSUInteger, FLEXFileBrowserSortAttribute) {
         [self openFileController:pathString];
     } else {
         // Share sheet for files
-#if !TARGET_OS_TV
+
         UIActivityViewController *shareSheet = [[UIActivityViewController alloc] initWithActivityItems:@[filePath] applicationActivities:nil];
         [self presentViewController:shareSheet animated:true completion:nil];
-#endif
+
     }
+#endif
 }
 
 - (void)reloadDisplayedPaths {

BIN
layout/Library/Frameworks/FLEX.framework/FLEX