From 16769fda5514247c52e2a7662a8160e4682ba405 Mon Sep 17 00:00:00 2001 From: Chris Li Date: Fri, 14 Apr 2017 14:56:58 -0400 Subject: [PATCH] release note for 1.8.1 --- AppStore/changelog.md | 10 ++++++++++ {iOS/iTunes => AppStore}/description | 0 Shared/Operations/ScanProcedure.swift | 16 +++++++++++----- iOS/iTunes/changelog | 4 ---- 4 files changed, 21 insertions(+), 9 deletions(-) create mode 100644 AppStore/changelog.md rename {iOS/iTunes => AppStore}/description (100%) delete mode 100644 iOS/iTunes/changelog diff --git a/AppStore/changelog.md b/AppStore/changelog.md new file mode 100644 index 00000000..9f725e4e --- /dev/null +++ b/AppStore/changelog.md @@ -0,0 +1,10 @@ +# 1.8 +We have improved Kiwix for you: +- The library has a new look. +- You can now use ZIM files that have a built-in index. +- Better performance. + +# 1.8.1 +- Clear search history & browsing history +- Now remember scroll position when go back / forward when browsing +- Fix: zim files no longer got backed up to iCloud ot iTunes \ No newline at end of file diff --git a/iOS/iTunes/description b/AppStore/description similarity index 100% rename from iOS/iTunes/description rename to AppStore/description diff --git a/Shared/Operations/ScanProcedure.swift b/Shared/Operations/ScanProcedure.swift index 62348404..8aaabcb0 100644 --- a/Shared/Operations/ScanProcedure.swift +++ b/Shared/Operations/ScanProcedure.swift @@ -119,11 +119,17 @@ class ScanLocalBookOperation: Procedure { } private func excludeDocDirFromBackup() { - var docDirURL = (try? FileManager.default.url(for: .documentDirectory, in: .userDomainMask, appropriateFor: nil, create: false))! - guard FileManager.default.fileExists(atPath: docDirURL.path) else {return} - var value = URLResourceValues() - value.isExcludedFromBackup = true - try? docDirURL.setResourceValues(value) + let docDirURL = (try? FileManager.default.url(for: .documentDirectory, in: .userDomainMask, appropriateFor: nil, create: false))! + let contents = (try? FileManager.default.contentsOfDirectory(at: docDirURL, includingPropertiesForKeys: nil, options: .skipsSubdirectoryDescendants)) ?? [URL]() + for var url in contents { + var value = URLResourceValues() + value.isExcludedFromBackup = true + try? url.setResourceValues(value) + } +// guard FileManager.default.fileExists(atPath: docDirURL.path) else {return} +// var value = URLResourceValues() +// value.isExcludedFromBackup = true +// try? docDirURL.setResourceValues(value) } } diff --git a/iOS/iTunes/changelog b/iOS/iTunes/changelog deleted file mode 100644 index 6b622432..00000000 --- a/iOS/iTunes/changelog +++ /dev/null @@ -1,4 +0,0 @@ -We have improved Kiwix for you: -- The library has a new look. -- You can now use ZIM files that have a built-in index. -- Better performance.