change a lot, the structure will be stable this time

This commit is contained in:
Bob Sun 2017-01-22 01:42:36 +08:00
parent 8e997cc868
commit 36bf40741c
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4
14 changed files with 579 additions and 208 deletions

20
pass/DefaultKeys.swift Normal file
View file

@ -0,0 +1,20 @@
//
// DefaultKeys.swift
// pass
//
// Created by Mingshen Sun on 21/1/2017.
// Copyright © 2017 Bob Sun. All rights reserved.
//
import Foundation
import SwiftyUserDefaults
extension DefaultsKeys {
static let pgpKeyURL = DefaultsKey<URL?>("pgpKeyURL")
static let pgpKeyPassphrase = DefaultsKey<String>("pgpKeyPassphrase")
static let pgpKeyID = DefaultsKey<String>("pgpKeyID")
static let pgpKeyUserID = DefaultsKey<String>("pgpKeyUserID")
static let gitRepositoryURL = DefaultsKey<URL?>("gitRepositoryURL")
}