Move repository to a private directory

This commit is contained in:
Evgeny Morozov 2017-02-24 20:16:11 +03:00
parent 8e580e3dad
commit c6db44ace7
No known key found for this signature in database
GPG key ID: 0CA3DE8CE6E23F4F
2 changed files with 4 additions and 3 deletions

View file

@ -11,13 +11,14 @@ import UIKit
class Globals {
static let documentPath = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)[0];
static let libraryPath = NSSearchPathForDirectoriesInDomains(.libraryDirectory, .userDomainMask, true)[0];
static let pgpPublicKeyPath = "\(documentPath)/gpg_key.pub"
static let pgpPrivateKeyPath = "\(documentPath)/gpg_key"
static let sshPublicKeyURL = URL(fileURLWithPath: "\(documentPath)/ssh_key.pub")
static let sshPrivateKeyURL = URL(fileURLWithPath: "\(documentPath)/ssh_key")
static let repositoryPath = "\(documentPath)/password-store"
static let repositoryPath = "\(libraryPath)/password-store"
static var passcodeConfiguration = PasscodeLockConfiguration()
static let version = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as! String