mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-05 00:15:32 +00:00
Merge pull request #4524 from keymanapp/fix/ios/engine/cherry/file-import-security
fix(ios): now handles security-scoped files
This commit is contained in:
commit
a3b24c8acb
2 changed files with 9 additions and 1 deletions
|
|
@ -32,7 +32,12 @@ public class ResourceFileManager {
|
|||
|
||||
// Throws an error if the destination file already exists, and there's no
|
||||
// built-in override parameter. Hence, the previous if-block.
|
||||
try fileManager.copyItem(at: source, to: destination)
|
||||
if source.startAccessingSecurityScopedResource() {
|
||||
defer { source.stopAccessingSecurityScopedResource() }
|
||||
try fileManager.copyItem(at: source, to: destination)
|
||||
} else {
|
||||
try fileManager.copyItem(at: source, to: destination)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
|
||||
# Keyman for iPhone and iPad Version History
|
||||
|
||||
## 2021-02-25 13.0.117 stable
|
||||
* Fixes an issue that sometimes prevented keyboard and dictionary installation (#4524)
|
||||
|
||||
## 2020-07-16 13.0.109 stable
|
||||
* Improve performance when typing long documents with predictive text (#3302)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue