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.