Keep global constants for armor keys and clean them up during migration and user initiated key removal

This commit is contained in:
Danny Moesch 2019-07-02 19:34:12 +02:00 committed by Mingshen Sun
parent 7bee780b46
commit 5f19c348c8
2 changed files with 8 additions and 0 deletions

View file

@ -16,6 +16,10 @@ public extension DefaultsKeys {
static let pgpPublicKeyURL = DefaultsKey<URL?>("pgpPublicKeyURL")
static let pgpPrivateKeyURL = DefaultsKey<URL?>("pgpPrivateKeyURL")
// Keep them for legacy reasons.
static let pgpPublicKeyArmor = DefaultsKey<String?>("pgpPublicKeyArmor")
static let pgpPrivateKeyArmor = DefaultsKey<String?>("pgpPrivateKeyArmor")
static let gitURL = DefaultsKey<URL?>("gitURL")
static let gitAuthenticationMethod = DefaultsKey<String?>("gitAuthenticationMethod")
static let gitUsername = DefaultsKey<String?>("gitUsername")