From 1051b3e0da912e9c7baf4cc5431bae96f1ae9157 Mon Sep 17 00:00:00 2001 From: Pranav Raj Singh Chauhan Date: Sun, 15 Apr 2018 13:09:13 +0530 Subject: [PATCH 1/6] Update README.md --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 6dc6bab..967a5ad 100644 --- a/README.md +++ b/README.md @@ -83,3 +83,10 @@ To integrate FileBrowser into your Xcode project using Carthage, specify it in y ```ogdl github "marmelroy/FileBrowser" ``` + + +## Third Party Bindings + +### React Native ++You may now use this library with [React Native](https://github.com/facebook/react-native) via the module [here](https://github.com/prscX/react-native-file-selector) + From d162e2638a52130167f888b8c8e2c807879eb5b9 Mon Sep 17 00:00:00 2001 From: Pranav Raj Singh Chauhan Date: Sun, 15 Apr 2018 13:09:35 +0530 Subject: [PATCH 2/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 967a5ad..3248a0a 100644 --- a/README.md +++ b/README.md @@ -88,5 +88,5 @@ github "marmelroy/FileBrowser" ## Third Party Bindings ### React Native -+You may now use this library with [React Native](https://github.com/facebook/react-native) via the module [here](https://github.com/prscX/react-native-file-selector) +You may now use this library with [React Native](https://github.com/facebook/react-native) via the module [here](https://github.com/prscX/react-native-file-selector) From 10f7b13ab4eec5ebda5cebf01f8d56be6d1f66be Mon Sep 17 00:00:00 2001 From: Pranav Raj Singh Chauhan Date: Mon, 17 Sep 2018 17:29:47 +0530 Subject: [PATCH 3/6] Update FileBrowser.swift --- FileBrowser/FileBrowser.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/FileBrowser/FileBrowser.swift b/FileBrowser/FileBrowser.swift index aad61e3..f282496 100644 --- a/FileBrowser/FileBrowser.swift +++ b/FileBrowser/FileBrowser.swift @@ -16,7 +16,7 @@ open class FileBrowser: UINavigationController { var fileList: FileListViewController? /// File types to exclude from the file browser. - open var excludesFileExtensions: [String]? { + @objc open var excludesFileExtensions: [String]? { didSet { parser.excludesFileExtensions = excludesFileExtensions } @@ -30,7 +30,7 @@ open class FileBrowser: UINavigationController { } /// Override default preview and actionsheet behaviour in favour of custom file handling. - open var didSelectFile: ((FBFile) -> ())? { + @objc open var didSelectFile: ((FBFile) -> ())? { didSet { fileList?.didSelectFile = didSelectFile } @@ -48,7 +48,7 @@ open class FileBrowser: UINavigationController { /// - initialPath: NSURL filepath to containing directory. /// - allowEditing: Whether to allow editing. /// - showCancelButton: Whether to show the cancel button. - public convenience init(initialPath: URL? = nil, allowEditing: Bool = false, showCancelButton: Bool = true) { + @objc public convenience init(initialPath: URL? = nil, allowEditing: Bool = false, showCancelButton: Bool = true) { let validInitialPath = initialPath ?? FileParser.sharedInstance.documentsURL() From d36e59991f81618fc3f2a80650bc4ef1df57b6df Mon Sep 17 00:00:00 2001 From: Pranav Raj Singh Chauhan Date: Mon, 17 Sep 2018 17:30:09 +0530 Subject: [PATCH 4/6] Update FBFile.swift --- FileBrowser/FBFile.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FileBrowser/FBFile.swift b/FileBrowser/FBFile.swift index ff3869d..4090648 100644 --- a/FileBrowser/FBFile.swift +++ b/FileBrowser/FBFile.swift @@ -19,7 +19,7 @@ import Foundation /// File attributes (including size, creation date etc). open let fileAttributes: NSDictionary? /// NSURL file path. - open let filePath: URL + @objc open let filePath: URL // FBFileType open let type: FBFileType From 599ed851b7a93759969c0c52160bd013ec543942 Mon Sep 17 00:00:00 2001 From: Pranav Raj Singh Chauhan Date: Sat, 18 May 2019 17:53:34 +0530 Subject: [PATCH 5/6] adding swift version --- FileBrowser.podspec | 1 + 1 file changed, 1 insertion(+) diff --git a/FileBrowser.podspec b/FileBrowser.podspec index dc0f291..d7d584d 100644 --- a/FileBrowser.podspec +++ b/FileBrowser.podspec @@ -33,6 +33,7 @@ Pod::Spec.new do |s| s.source_files = "FileBrowser" s.resources = "FileBrowser/Resources/*.*" s.pod_target_xcconfig = { 'SWIFT_VERSION' => '4.0' } + s.swift_version = '4.0' # s.public_header_files = 'Pod/Classes/**/*.h' s.frameworks = 'QuickLook', 'WebKit' From b9d90f2c050c0b1564274697c262c1715674593e Mon Sep 17 00:00:00 2001 From: Pranav Raj Singh Chauhan Date: Sat, 18 May 2019 17:54:06 +0530 Subject: [PATCH 6/6] Update FileBrowser.podspec --- FileBrowser.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FileBrowser.podspec b/FileBrowser.podspec index d7d584d..7fcf15e 100644 --- a/FileBrowser.podspec +++ b/FileBrowser.podspec @@ -33,7 +33,7 @@ Pod::Spec.new do |s| s.source_files = "FileBrowser" s.resources = "FileBrowser/Resources/*.*" s.pod_target_xcconfig = { 'SWIFT_VERSION' => '4.0' } - s.swift_version = '4.0' + s.swift_version = '4.1' # s.public_header_files = 'Pod/Classes/**/*.h' s.frameworks = 'QuickLook', 'WebKit'