Permalink
Browse files

Update dependency DirectoryWatcher

Fixes crash when importing multiple files via iTunes
  • Loading branch information...
GianniCarlo committed Nov 7, 2018
1 parent d7de069 commit a60d61f039a592f1cf5c8fea1fb7c012b1d279bc
Showing with 7 additions and 4 deletions.
  1. +5 −2 BookPlayer/AppDelegate.swift
  2. +2 −2 Cartfile.resolved
@@ -237,8 +237,11 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

func setupDocumentListener() {
let documentsUrl = DataManager.getDocumentsFolderURL()
self.watcher = DirectoryWatcher.watch(documentsUrl) {
DataManager.notifyPendingFiles()
self.watcher = DirectoryWatcher.watch(documentsUrl)
self.watcher?.onNewFiles = { newFiles in
for url in newFiles {
DataManager.processFile(at: url)
}
}
}
}
@@ -1,7 +1,7 @@
github "GianniCarlo/DirectoryWatcher" "1.1.0"
github "GianniCarlo/DirectoryWatcher" "2.2.0"
github "GianniCarlo/SwiftReorder" "5.1.1"
github "cbpowell/MarqueeLabel" "3.2.0"
github "dennisweissmann/DeviceKit" "1.8.1"
github "dennisweissmann/DeviceKit" "1.10.0"
github "iosdevzone/IDZSwiftCommonCrypto" "0.10.0"
github "pixelogik/ColorCube" "fe4168fd39e5f37839dcf2995c5da50c1a720515"
github "weichsel/ZIPFoundation" "0.9.6"

0 comments on commit a60d61f

Please sign in to comment.