Support infra for extensions (#626)

This commit is contained in:
Max Goedjen 2025-08-23 20:41:08 -07:00 committed by GitHub
부모 f259cf6bf3
커밋 75c9b5bb62
No known key found for this signature in database
GPG 키 ID: B5690EEEBB952194
3개의 변경된 파일5개의 추가작업 그리고 6개의 파일을 삭제

파일 보기

@ -3,7 +3,7 @@ import Foundation
/// Type eraser for Secret.
public struct AnySecret: Secret, @unchecked Sendable {
let base: Any
public let base: Any
private let hashable: AnyHashable
private let _id: () -> AnyHashable
private let _name: () -> String

파일 보기

@ -1,8 +1,7 @@
import Foundation
import Combine
/// Type eraser for SecretStore.
public class AnySecretStore: SecretStore, @unchecked Sendable {
open class AnySecretStore: SecretStore, @unchecked Sendable {
let base: any Sendable
private let _isAvailable: @MainActor @Sendable () -> Bool

파일 보기

@ -248,9 +248,9 @@ extension SecureEnclave.Store {
extension SecureEnclave {
enum Constants {
static let keyTag = Data("com.maxgoedjen.secretive.secureenclave.key".utf8)
static let keyType = kSecAttrKeyTypeECSECPrimeRandom as String
public enum Constants {
public static let keyTag = Data("com.maxgoedjen.secretive.secureenclave.key".utf8)
public static let keyType = kSecAttrKeyTypeECSECPrimeRandom as String
static let unauthenticatedThreshold: TimeInterval = 0.05
}