Skip to content

Commit

Permalink
Merge pull request #166 from square/dfed--private-protection-level
Browse files Browse the repository at this point in the history
Make unavailable init() public to avoid Swift erroneously declaring other init calls inaccessible
  • Loading branch information
dfed authored Jan 9, 2019
2 parents ccb78aa + 4c9f81e commit 3be5471
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Sources/SecureEnclaveValet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public final class SecureEnclaveValet: NSObject {
// MARK: Initialization

@available(*, unavailable)
private override init() {
public override init() {
fatalError("Use the class methods above to create usable SecureEnclaveValet objects")
}

Expand Down
2 changes: 1 addition & 1 deletion Sources/SinglePromptSecureEnclaveValet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public final class SinglePromptSecureEnclaveValet: NSObject {
// MARK: Initialization

@available(*, unavailable)
private override init() {
public override init() {
fatalError("Use the class methods above to create usable SinglePromptSecureEnclaveValet objects")
}

Expand Down
2 changes: 1 addition & 1 deletion Sources/Valet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public final class Valet: NSObject, KeychainQueryConvertible {
// MARK: Initialization

@available(*, unavailable)
private override init() {
public override init() {
fatalError("Use the class methods above to create usable Valet objects")
}

Expand Down
2 changes: 1 addition & 1 deletion Valet.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'Valet'
s.version = '3.2.2'
s.version = '3.2.3'
s.license = 'Apache License, Version 2.0'
s.summary = 'Securely store data on iOS, tvOS, watchOS, or macOS without knowing a thing about how the Keychain works. It\'s easy. We promise.'
s.homepage = 'https://github.com/square/Valet'
Expand Down

0 comments on commit 3be5471

Please sign in to comment.