From d63e9c7f048ffa5f85a4f356f40cb517f0ab3594 Mon Sep 17 00:00:00 2001 From: Amir Abbas Mousavian Date: Fri, 16 Sep 2016 05:20:34 +0430 Subject: [PATCH] Swift 3 travis & podspec update --- .travis.yml | 2 +- FileProvider.podspec | 4 ++-- README.md | 2 +- Sources/DropboxFileProvider.swift | 2 +- Sources/FileProvider.swift | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 383388f..1a36ae1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ language: objective-c -osx_image: xcode7.3 +osx_image: xcode8.0 script: - set pipefail - xcodebuild -project FileProvider.xcodeproj -scheme "FileProvider OSX" -sdk macosx | xcpretty diff --git a/FileProvider.podspec b/FileProvider.podspec index 0d2b302..5ea5a86 100644 --- a/FileProvider.podspec +++ b/FileProvider.podspec @@ -16,8 +16,8 @@ Pod::Spec.new do |s| # s.name = "FileProvider" - s.version = "0.4.1" - s.summary = "NSFileManager replacement for Local and Remote (WebDAV/Dropbox/SMB2) files on iOS and MacOS." + s.version = "0.5.0" + s.summary = "FileManager replacement for Local and Remote (WebDAV/Dropbox/SMB2) files on iOS and MacOS." # This description is used to generate tags and improve search results. # * Think: What does it do? Why did you write it? What is the focus? diff --git a/README.md b/README.md index 6b80838..7f02b16 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Local and WebDAV providers are fully tested and can be used in production enviro ## Features -- [x] **LocalFileProvider** a wrapper around `NSFileManager` with some additions like searching and reading a portion of file. +- [x] **LocalFileProvider** a wrapper around `FileManager` with some additions like searching and reading a portion of file. - [x] **WebDAVFileProvider** WebDAV protocol is defacto file transmission standard, replaced FTP. - [x] **DropboxFileProvider** A wrapper around Dropbox Web API. For now it has limitation in uploading files up to 150MB. - [ ] **SMBFileProvider** SMB2/3 introduced in 2006, which is a file and printer sharing protocol originated from Microsoft Windows and now is replacing AFP protocol on MacOS. I implemented data types and some basic functions but *main interface is not implemented yet!*. SMB1/CIFS is depericated and very tricky to be implemented diff --git a/Sources/DropboxFileProvider.swift b/Sources/DropboxFileProvider.swift index 5daf750..fa34b5e 100644 --- a/Sources/DropboxFileProvider.swift +++ b/Sources/DropboxFileProvider.swift @@ -326,7 +326,7 @@ extension DropboxFileProvider: ExtendedFileProvider { }) } - public func propertiesOfFile(path: String, completionHandler: @escaping ((_ propertiesDictionary: [String : AnyObject], _ keys: [String], _ error: Error?) -> Void)) { + public func propertiesOfFile(path: String, completionHandler: @escaping ((_ propertiesDictionary: [String : Any], _ keys: [String], _ error: Error?) -> Void)) { NotImplemented() } } diff --git a/Sources/FileProvider.swift b/Sources/FileProvider.swift index dfd13ac..f67b2d2 100644 --- a/Sources/FileProvider.swift +++ b/Sources/FileProvider.swift @@ -265,7 +265,7 @@ public protocol ExtendedFileProvider: FileProvider { func thumbnailOfFileSupported(path: String) -> Bool func propertiesOfFileSupported(path: String) -> Bool func thumbnailOfFile(path: String, dimension: CGSize, completionHandler: @escaping ((_ image: ImageClass?, _ error: Error?) -> Void)) - func propertiesOfFile(path: String, completionHandler: @escaping ((_ propertiesDictionary: [String: AnyObject], _ keys: [String], _ error: Error?) -> Void)) + func propertiesOfFile(path: String, completionHandler: @escaping ((_ propertiesDictionary: [String: Any], _ keys: [String], _ error: Error?) -> Void)) } public enum FileOperation: CustomStringConvertible {