passforios/pass/Helpers/Globals.swift

24 lines
828 B
Swift
Raw Normal View History

//
// Globals.swift
// pass
//
// Created by Mingshen Sun on 21/1/2017.
// Copyright © 2017 Bob Sun. All rights reserved.
//
import Foundation
class Globals {
2017-02-08 10:15:38 +08:00
static let documentPath = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)[0];
2017-02-10 22:15:01 +08:00
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")
2017-02-10 22:15:01 +08:00
static let repositoryPath = "\(documentPath)/password-store"
2017-02-08 10:15:38 +08:00
static var passcodeConfiguration = PasscodeLockConfiguration()
2017-02-10 00:30:49 +08:00
static let version = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as! String
private init() { }
}