diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1706aa9..1245d81 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,9 +20,12 @@ jobs: APPLE_API_KEY_ID: ${{ secrets.APPLE_API_KEY_ID }} run: ./.github/scripts/signing.sh - name: Set Environment - run: sudo xcrun xcode-select -s /Applications/Xcode_13.1.app + run: sudo xcrun xcode-select -s /Applications/Xcode_13.2.1.app - name: Test - run: xcrun xcodebuild test -project Secretive.xcodeproj -scheme Secretive + run: | + pushd Sources/Packages + swift test + popd build: runs-on: macos-11.0 timeout-minutes: 10 @@ -38,18 +41,18 @@ jobs: APPLE_API_KEY_ID: ${{ secrets.APPLE_API_KEY_ID }} run: ./.github/scripts/signing.sh - name: Set Environment - run: sudo xcrun xcode-select -s /Applications/Xcode_13.1.app + run: sudo xcrun xcode-select -s /Applications/Xcode_13.2.1.app - name: Update Build Number env: TAG_NAME: ${{ github.ref }} RUN_ID: ${{ github.run_id }} run: | export CLEAN_TAG=$(echo $TAG_NAME | sed -e 's/refs\/tags\/v//') - sed -i '' -e "s/GITHUB_CI_VERSION/$CLEAN_TAG/g" Config/Config.xcconfig - sed -i '' -e "s/GITHUB_BUILD_NUMBER/1.$RUN_ID/g" Config/Config.xcconfig - sed -i '' -e "s/GITHUB_BUILD_URL/https:\/\/github.com\/maxgoedjen\/secretive\/actions\/runs\/$RUN_ID/g" Secretive/Credits.rtf + sed -i '' -e "s/GITHUB_CI_VERSION/$CLEAN_TAG/g" Sources/Config/Config.xcconfig + sed -i '' -e "s/GITHUB_BUILD_NUMBER/1.$RUN_ID/g" Sources/Config/Config.xcconfig + sed -i '' -e "s/GITHUB_BUILD_URL/https:\/\/github.com\/maxgoedjen\/secretive\/actions\/runs\/$RUN_ID/g" Sources/Secretive/Credits.rtf - name: Build - run: xcrun xcodebuild -project Secretive.xcodeproj -scheme Secretive -configuration Release -archivePath Archive.xcarchive archive + run: xcrun xcodebuild -project Sources/Secretive.xcodeproj -scheme Secretive -configuration Release -archivePath Archive.xcarchive archive - name: Create ZIPs run: | ditto -c -k --sequesterRsrc --keepParent Archive.xcarchive/Products/Applications/Secretive.app ./Secretive.zip @@ -88,7 +91,7 @@ jobs: draft: true prerelease: false - name: Upload App to Release - id: upload-release-asset + id: upload-release-asset-app uses: actions/upload-release-asset@v1.0.1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -97,13 +100,13 @@ jobs: asset_path: ./Secretive.zip asset_name: Secretive.zip asset_content_type: application/zip - - name: Upload Archive to Artifacts - uses: actions/upload-artifact@v1 - with: - name: Archive.zip - path: Archive.zip - - name: Upload Archive to Artifacts + - name: Upload App to Artifacts uses: actions/upload-artifact@v1 with: name: Secretive.zip path: Secretive.zip + - name: Upload Archive to Artifacts + uses: actions/upload-artifact@v1 + with: + name: Xcode_Archive.zip + path: Archive.zip diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 95579d8..c21d0c5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,6 +8,9 @@ jobs: steps: - uses: actions/checkout@v2 - name: Set Environment - run: sudo xcrun xcode-select -s /Applications/Xcode_13.1.app + run: sudo xcrun xcode-select -s /Applications/Xcode_13.2.1.app - name: Test - run: xcrun xcodebuild test -project Secretive.xcodeproj -scheme Secretive + run: | + pushd Sources/Packages + swift test + popd diff --git a/.gitignore b/.gitignore index 45d21c2..d0d8b7c 100644 --- a/.gitignore +++ b/.gitignore @@ -92,3 +92,4 @@ iOSInjectionProject/ # Build script products Archive.xcarchive .DS_Store +contents.xcworkspacedata diff --git a/Brief/Brief.h b/Brief/Brief.h deleted file mode 100644 index acf94a4..0000000 --- a/Brief/Brief.h +++ /dev/null @@ -1,19 +0,0 @@ -// -// Brief.h -// Brief -// -// Created by Max Goedjen on 3/21/20. -// Copyright © 2020 Max Goedjen. All rights reserved. -// - -#import - -//! Project version number for Brief. -FOUNDATION_EXPORT double BriefVersionNumber; - -//! Project version string for Brief. -FOUNDATION_EXPORT const unsigned char BriefVersionString[]; - -// In this header, you should import all the public headers of your framework using statements like #import - - diff --git a/Brief/Info.plist b/Brief/Info.plist deleted file mode 100644 index 48059f2..0000000 --- a/Brief/Info.plist +++ /dev/null @@ -1,24 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - $(PRODUCT_BUNDLE_PACKAGE_TYPE) - CFBundleShortVersionString - 1.0 - CFBundleVersion - $(CURRENT_PROJECT_VERSION) - NSHumanReadableCopyright - $(PRODUCT_NAME) is MIT Licensed. - - diff --git a/Brief/Updater.swift b/Brief/Updater.swift deleted file mode 100644 index 1d75a09..0000000 --- a/Brief/Updater.swift +++ /dev/null @@ -1,178 +0,0 @@ -import Foundation -import Combine - -public protocol UpdaterProtocol: ObservableObject { - - var update: Release? { get } - -} - -public class Updater: ObservableObject, UpdaterProtocol { - - @Published public var update: Release? - - private let osVersion: SemVer - private let currentVersion: SemVer - - public init(checkOnLaunch: Bool, osVersion: SemVer = SemVer(ProcessInfo.processInfo.operatingSystemVersion), currentVersion: SemVer = SemVer(Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? "0.0.0")) { - self.osVersion = osVersion - self.currentVersion = currentVersion - if checkOnLaunch { - // Don't do a launch check if the user hasn't seen the setup prompt explaining updater yet. - checkForUpdates() - } - let timer = Timer.scheduledTimer(withTimeInterval: 60*60*24, repeats: true) { _ in - self.checkForUpdates() - } - timer.tolerance = 60*60 - } - - public func checkForUpdates() { - URLSession.shared.dataTask(with: Constants.updateURL) { data, _, _ in - guard let data = data else { return } - guard let releases = try? JSONDecoder().decode([Release].self, from: data) else { return } - self.evaluate(releases: releases) - }.resume() - } - - public func ignore(release: Release) { - guard !release.critical else { return } - defaults.set(true, forKey: release.name) - DispatchQueue.main.async { - self.update = nil - } - } - -} - -extension Updater { - - func evaluate(releases: [Release]) { - guard let release = releases - .sorted() - .reversed() - .filter({ !$0.prerelease }) - .first(where: { $0.minimumOSVersion <= osVersion }) else { return } - guard !userIgnored(release: release) else { return } - guard !release.prerelease else { return } - let latestVersion = SemVer(release.name) - if latestVersion > currentVersion { - DispatchQueue.main.async { - self.update = release - } - } - } - - func userIgnored(release: Release) -> Bool { - guard !release.critical else { return false } - return defaults.bool(forKey: release.name) - } - - var defaults: UserDefaults { - UserDefaults(suiteName: "com.maxgoedjen.Secretive.updater.ignorelist")! - } -} - -public struct SemVer { - - let versionNumbers: [Int] - - public init(_ version: String) { - // Betas have the format 1.2.3_beta1 - let strippedBeta = version.split(separator: "_").first! - var split = strippedBeta.split(separator: ".").compactMap { Int($0) } - while split.count < 3 { - split.append(0) - } - versionNumbers = split - } - - public init(_ version: OperatingSystemVersion) { - versionNumbers = [version.majorVersion, version.minorVersion, version.patchVersion] - } - -} - -extension SemVer: Comparable { - - public static func < (lhs: SemVer, rhs: SemVer) -> Bool { - for (latest, current) in zip(lhs.versionNumbers, rhs.versionNumbers) { - if latest < current { - return true - } else if latest > current { - return false - } - } - return false - } - - -} - -extension Updater { - - enum Constants { - static let updateURL = URL(string: "https://api.github.com/repos/maxgoedjen/secretive/releases")! - } - -} - -public struct Release: Codable { - - public let name: String - public let prerelease: Bool - public let html_url: URL - public let body: String - - public init(name: String, prerelease: Bool, html_url: URL, body: String) { - self.name = name - self.prerelease = prerelease - self.html_url = html_url - self.body = body - } - -} - -extension Release: Identifiable { - - public var id: String { - html_url.absoluteString - } - -} - -extension Release: Comparable { - - public static func < (lhs: Release, rhs: Release) -> Bool { - lhs.version < rhs.version - } - -} - -extension Release { - - public var critical: Bool { - body.contains(Constants.securityContent) - } - - public var version: SemVer { - SemVer(name) - } - - public var minimumOSVersion: SemVer { - guard let range = body.range(of: "Minimum macOS Version"), - let numberStart = body.rangeOfCharacter(from: CharacterSet.decimalDigits, options: [], range: range.upperBound.. - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - $(PRODUCT_BUNDLE_PACKAGE_TYPE) - CFBundleShortVersionString - $(CI_VERSION) - CFBundleVersion - $(CURRENT_PROJECT_VERSION) - NSHumanReadableCopyright - $(PRODUCT_NAME) is MIT Licensed. - - diff --git a/SecretAgentKit/SigningWitness.swift b/SecretAgentKit/SigningWitness.swift deleted file mode 100644 index 59e2b6b..0000000 --- a/SecretAgentKit/SigningWitness.swift +++ /dev/null @@ -1,9 +0,0 @@ -import Foundation -import SecretKit - -public protocol SigningWitness { - - func speakNowOrForeverHoldYourPeace(forAccessTo secret: AnySecret, from store: AnySecretStore, by provenance: SigningRequestProvenance) throws - func witness(accessTo secret: AnySecret, from store: AnySecretStore, by provenance: SigningRequestProvenance, requiredAuthentication: Bool) throws - -} diff --git a/SecretAgentKitTests/Info.plist b/SecretAgentKitTests/Info.plist deleted file mode 100644 index 64d65ca..0000000 --- a/SecretAgentKitTests/Info.plist +++ /dev/null @@ -1,22 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - $(PRODUCT_BUNDLE_PACKAGE_TYPE) - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - - diff --git a/SecretKit/Common/Types/SecretStore.swift b/SecretKit/Common/Types/SecretStore.swift deleted file mode 100644 index 9a8a76e..0000000 --- a/SecretKit/Common/Types/SecretStore.swift +++ /dev/null @@ -1,30 +0,0 @@ -import Combine - -public protocol SecretStore: ObservableObject, Identifiable { - - associatedtype SecretType: Secret - - var isAvailable: Bool { get } - var id: UUID { get } - var name: String { get } - var secrets: [SecretType] { get } - - func sign(data: Data, with secret: SecretType, for provenance: SigningRequestProvenance) throws -> SignedData - - func persistAuthentication(secret: SecretType, forDuration duration: TimeInterval) throws - -} - -public protocol SecretStoreModifiable: SecretStore { - - func create(name: String, requiresAuthentication: Bool) throws - func delete(secret: SecretType) throws - func update(secret: SecretType, name: String) throws - -} - -extension NSNotification.Name { - - static let secretStoreUpdated = NSNotification.Name("com.maxgoedjen.Secretive.secretStore.updated") - -} diff --git a/SecretKit/Common/Types/SignedData.swift b/SecretKit/Common/Types/SignedData.swift deleted file mode 100644 index bcaf171..0000000 --- a/SecretKit/Common/Types/SignedData.swift +++ /dev/null @@ -1,13 +0,0 @@ -import Foundation - -public struct SignedData { - - public let data: Data - public let requiredAuthentication: Bool - - public init(data: Data, requiredAuthentication: Bool) { - self.data = data - self.requiredAuthentication = requiredAuthentication - } - -} diff --git a/SecretKit/Common/Types/SigningRequestProvenance.swift b/SecretKit/Common/Types/SigningRequestProvenance.swift deleted file mode 100644 index 271c8c0..0000000 --- a/SecretKit/Common/Types/SigningRequestProvenance.swift +++ /dev/null @@ -1,53 +0,0 @@ -import Foundation -import AppKit - -public struct SigningRequestProvenance: Equatable { - - public var chain: [Process] - public init(root: Process) { - self.chain = [root] - } - -} - -extension SigningRequestProvenance { - - public var origin: Process { - chain.last! - } - - public var intact: Bool { - chain.allSatisfy { $0.validSignature } - } - -} - -extension SigningRequestProvenance { - - public struct Process: Equatable { - - public let pid: Int32 - public let processName: String - public let appName: String? - public let iconURL: URL? - public let path: String - public let validSignature: Bool - public let parentPID: Int32? - - public init(pid: Int32, processName: String, appName: String?, iconURL: URL?, path: String, validSignature: Bool, parentPID: Int32?) { - self.pid = pid - self.processName = processName - self.appName = appName - self.iconURL = iconURL - self.path = path - self.validSignature = validSignature - self.parentPID = parentPID - } - - public var displayName: String { - appName ?? processName - } - - } - -} diff --git a/SecretKit/Info.plist b/SecretKit/Info.plist deleted file mode 100644 index e1f909c..0000000 --- a/SecretKit/Info.plist +++ /dev/null @@ -1,24 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - $(PRODUCT_BUNDLE_PACKAGE_TYPE) - CFBundleShortVersionString - $(CI_VERSION) - CFBundleVersion - $(CURRENT_PROJECT_VERSION) - NSHumanReadableCopyright - $(PRODUCT_NAME) is MIT Licensed. - - diff --git a/SecretKit/SecretKit.h b/SecretKit/SecretKit.h deleted file mode 100644 index 2824974..0000000 --- a/SecretKit/SecretKit.h +++ /dev/null @@ -1,11 +0,0 @@ -#import - -//! Project version number for SecretKit. -FOUNDATION_EXPORT double SecretKitVersionNumber; - -//! Project version string for SecretKit. -FOUNDATION_EXPORT const unsigned char SecretKitVersionString[]; - -// In this header, you should import all the public headers of your framework using statements like #import - - diff --git a/SecretKit/SecureEnclave/SecureEnclave.swift b/SecretKit/SecureEnclave/SecureEnclave.swift deleted file mode 100644 index 5955575..0000000 --- a/SecretKit/SecureEnclave/SecureEnclave.swift +++ /dev/null @@ -1 +0,0 @@ -public enum SecureEnclave {} diff --git a/SecretKit/SmartCard/SmartCard.swift b/SecretKit/SmartCard/SmartCard.swift deleted file mode 100644 index db0eced..0000000 --- a/SecretKit/SmartCard/SmartCard.swift +++ /dev/null @@ -1 +0,0 @@ -public enum SmartCard {} diff --git a/SecretKitTests/Info.plist b/SecretKitTests/Info.plist deleted file mode 100644 index 64d65ca..0000000 --- a/SecretKitTests/Info.plist +++ /dev/null @@ -1,22 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - $(PRODUCT_BUNDLE_PACKAGE_TYPE) - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - - diff --git a/Secretive.xcodeproj/project.pbxproj b/Secretive.xcodeproj/project.pbxproj deleted file mode 100644 index c025620..0000000 --- a/Secretive.xcodeproj/project.pbxproj +++ /dev/null @@ -1,2131 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 50; - objects = { - -/* Begin PBXBuildFile section */ - 2C4A9D2F2636FFD3008CC8E2 /* RenameSecretView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2C4A9D2E2636FFD3008CC8E2 /* RenameSecretView.swift */; }; - 50020BB024064869003D4025 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50020BAF24064869003D4025 /* AppDelegate.swift */; }; - 50153E20250AFCB200525160 /* UpdateView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50153E1F250AFCB200525160 /* UpdateView.swift */; }; - 50153E22250DECA300525160 /* SecretListItemView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50153E21250DECA300525160 /* SecretListItemView.swift */; }; - 5018F54F24064786002EB505 /* Notifier.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5018F54E24064786002EB505 /* Notifier.swift */; }; - 501B7AE1251C56F700776EC7 /* SigningRequestProvenance.swift in Sources */ = {isa = PBXBuildFile; fileRef = 507CE4F32420A8C10029F750 /* SigningRequestProvenance.swift */; }; - 5035FF6E2737A2F4006FE1F6 /* SignedData.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5035FF6D2737A2F4006FE1F6 /* SignedData.swift */; }; - 50524B442420969E008DBD97 /* OpenSSHWriterTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50524B432420969D008DBD97 /* OpenSSHWriterTests.swift */; }; - 50571E0324393C2600F76F6C /* JustUpdatedChecker.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50571E0224393C2600F76F6C /* JustUpdatedChecker.swift */; }; - 50571E0524393D1500F76F6C /* LaunchAgentController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50571E0424393D1500F76F6C /* LaunchAgentController.swift */; }; - 50617D8323FCE48E0099B055 /* App.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50617D8223FCE48E0099B055 /* App.swift */; }; - 50617D8523FCE48E0099B055 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50617D8423FCE48E0099B055 /* ContentView.swift */; }; - 50617D8723FCE48E0099B055 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 50617D8623FCE48E0099B055 /* Assets.xcassets */; }; - 50617D8A23FCE48E0099B055 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 50617D8923FCE48E0099B055 /* Preview Assets.xcassets */; }; - 50617D9923FCE48E0099B055 /* SecretiveTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50617D9823FCE48E0099B055 /* SecretiveTests.swift */; }; - 50617DB123FCE4AB0099B055 /* SecretKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 50617DA823FCE4AB0099B055 /* SecretKit.framework */; }; - 50617DBA23FCE4AB0099B055 /* SecretKit.h in Headers */ = {isa = PBXBuildFile; fileRef = 50617DAA23FCE4AB0099B055 /* SecretKit.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 50617DBD23FCE4AB0099B055 /* SecretKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 50617DA823FCE4AB0099B055 /* SecretKit.framework */; }; - 50617DBE23FCE4AB0099B055 /* SecretKit.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 50617DA823FCE4AB0099B055 /* SecretKit.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; - 50617DC723FCE4EA0099B055 /* SecretStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50617DC623FCE4EA0099B055 /* SecretStore.swift */; }; - 50617DC923FCE50E0099B055 /* SecureEnclaveStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50617DC823FCE50E0099B055 /* SecureEnclaveStore.swift */; }; - 50617DCB23FCECA10099B055 /* Secret.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50617DCA23FCECA10099B055 /* Secret.swift */; }; - 50617DCE23FCECFA0099B055 /* SecureEnclaveSecret.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50617DCD23FCECFA0099B055 /* SecureEnclaveSecret.swift */; }; - 50617DD023FCED2C0099B055 /* SecureEnclave.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50617DCF23FCED2C0099B055 /* SecureEnclave.swift */; }; - 50617DD223FCEFA90099B055 /* PreviewStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50617DD123FCEFA90099B055 /* PreviewStore.swift */; }; - 5066A6C22516F303004B5A36 /* SetupView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5066A6C12516F303004B5A36 /* SetupView.swift */; }; - 5066A6C82516FE6E004B5A36 /* CopyableView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5066A6C72516FE6E004B5A36 /* CopyableView.swift */; }; - 5066A6F7251829B1004B5A36 /* ShellConfigurationController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5066A6F6251829B1004B5A36 /* ShellConfigurationController.swift */; }; - 506772C72424784600034DED /* Credits.rtf in Resources */ = {isa = PBXBuildFile; fileRef = 506772C62424784600034DED /* Credits.rtf */; }; - 506772C92425BB8500034DED /* NoStoresView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 506772C82425BB8500034DED /* NoStoresView.swift */; }; - 506772FF2426F3F400034DED /* Brief.h in Headers */ = {isa = PBXBuildFile; fileRef = 506772FD2426F3F400034DED /* Brief.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 506773022426F3F400034DED /* Brief.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 506772FB2426F3F400034DED /* Brief.framework */; }; - 506773032426F3F400034DED /* Brief.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 506772FB2426F3F400034DED /* Brief.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; - 506773092426F3FD00034DED /* Updater.swift in Sources */ = {isa = PBXBuildFile; fileRef = 506773082426F3FD00034DED /* Updater.swift */; }; - 5067730C2426F40E00034DED /* Brief.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 506772FB2426F3F400034DED /* Brief.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; - 5067730E242701BA00034DED /* OpenSSHReaderTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5067730D242701BA00034DED /* OpenSSHReaderTests.swift */; }; - 506773102427057600034DED /* AnySecretTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5067730F2427057600034DED /* AnySecretTests.swift */; }; - 5068389E241471CD00F55094 /* SecretStoreList.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5068389D241471CD00F55094 /* SecretStoreList.swift */; }; - 506838A12415EA5600F55094 /* AnySecret.swift in Sources */ = {isa = PBXBuildFile; fileRef = 506838A02415EA5600F55094 /* AnySecret.swift */; }; - 506838A32415EA5D00F55094 /* AnySecretStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = 506838A22415EA5D00F55094 /* AnySecretStore.swift */; }; - 506AB87E2412334700335D91 /* SecretAgent.app in CopyFiles */ = {isa = PBXBuildFile; fileRef = 50A3B78A24026B7500D209EA /* SecretAgent.app */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; - 5079BA0F250F29BF00EA86F4 /* StoreListView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5079BA0E250F29BF00EA86F4 /* StoreListView.swift */; }; - 507CBBC92744AE4E00A0D79A /* PublicKeyStandinFileController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 507CBBC82744AE4E00A0D79A /* PublicKeyStandinFileController.swift */; }; - 507CE4ED2420A3C70029F750 /* Agent.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50A3B79F24026B9900D209EA /* Agent.swift */; }; - 507CE4EE2420A3CA0029F750 /* SocketController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50A3B79D24026B9900D209EA /* SocketController.swift */; }; - 507CE4F02420A4C50029F750 /* SigningWitness.swift in Sources */ = {isa = PBXBuildFile; fileRef = 507CE4EF2420A4C50029F750 /* SigningWitness.swift */; }; - 507CE4F62420A96F0029F750 /* SigningRequestTracer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 507CE4F52420A96F0029F750 /* SigningRequestTracer.swift */; }; - 507EE34224281E12003C4FE3 /* FileHandleProtocols.swift in Sources */ = {isa = PBXBuildFile; fileRef = 507EE34124281E12003C4FE3 /* FileHandleProtocols.swift */; }; - 507EE34624281F89003C4FE3 /* StubFileHandleReader.swift in Sources */ = {isa = PBXBuildFile; fileRef = 507EE34524281F89003C4FE3 /* StubFileHandleReader.swift */; }; - 507EE34824281FB8003C4FE3 /* StubFileHandleWriter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 507EE34724281FB8003C4FE3 /* StubFileHandleWriter.swift */; }; - 507EE34A2428263B003C4FE3 /* StubStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = 507EE3492428263B003C4FE3 /* StubStore.swift */; }; - 507EE34E2428784F003C4FE3 /* StubWitness.swift in Sources */ = {isa = PBXBuildFile; fileRef = 507EE34D2428784F003C4FE3 /* StubWitness.swift */; }; - 508A58AA241E06B40069DC07 /* PreviewUpdater.swift in Sources */ = {isa = PBXBuildFile; fileRef = 508A58A9241E06B40069DC07 /* PreviewUpdater.swift */; }; - 508A58B3241ED2180069DC07 /* AgentStatusChecker.swift in Sources */ = {isa = PBXBuildFile; fileRef = 508A58B2241ED2180069DC07 /* AgentStatusChecker.swift */; }; - 508A58B5241ED48F0069DC07 /* PreviewAgentStatusChecker.swift in Sources */ = {isa = PBXBuildFile; fileRef = 508A58B4241ED48F0069DC07 /* PreviewAgentStatusChecker.swift */; }; - 508A5911241EF09C0069DC07 /* SecretAgentKit.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 5099A06C240242BA0062B6F2 /* SecretAgentKit.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; - 508A5913241EF0B20069DC07 /* SecretKit.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 50617DA823FCE4AB0099B055 /* SecretKit.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; - 508BF28E25B4F005009EFB7E /* InternetAccessPolicy.plist in Resources */ = {isa = PBXBuildFile; fileRef = 508BF28D25B4F005009EFB7E /* InternetAccessPolicy.plist */; }; - 508BF2AA25B4F1CB009EFB7E /* InternetAccessPolicy.plist in Resources */ = {isa = PBXBuildFile; fileRef = 508BF29425B4F140009EFB7E /* InternetAccessPolicy.plist */; }; - 5091D2BC25183B830049FD9B /* ApplicationDirectoryController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5091D2BB25183B830049FD9B /* ApplicationDirectoryController.swift */; }; - 5091D3222519D56D0049FD9B /* SemVerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5091D3212519D56D0049FD9B /* SemVerTests.swift */; }; - 5091D3242519D56D0049FD9B /* Brief.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 506772FB2426F3F400034DED /* Brief.framework */; }; - 5099A02423FD2AAA0062B6F2 /* CreateSecretView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5099A02323FD2AAA0062B6F2 /* CreateSecretView.swift */; }; - 5099A02723FE34FA0062B6F2 /* SmartCard.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5099A02623FE34FA0062B6F2 /* SmartCard.swift */; }; - 5099A02923FE35240062B6F2 /* SmartCardStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5099A02823FE35240062B6F2 /* SmartCardStore.swift */; }; - 5099A02B23FE352C0062B6F2 /* SmartCardSecret.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5099A02A23FE352C0062B6F2 /* SmartCardSecret.swift */; }; - 5099A02E23FE56E10062B6F2 /* OpenSSHKeyWriter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5099A02D23FE56E10062B6F2 /* OpenSSHKeyWriter.swift */; }; - 5099A075240242BA0062B6F2 /* SecretAgentKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5099A06C240242BA0062B6F2 /* SecretAgentKit.framework */; }; - 5099A07C240242BA0062B6F2 /* AgentTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5099A07B240242BA0062B6F2 /* AgentTests.swift */; }; - 5099A07E240242BA0062B6F2 /* SecretAgentKit.h in Headers */ = {isa = PBXBuildFile; fileRef = 5099A06E240242BA0062B6F2 /* SecretAgentKit.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5099A08A240242C20062B6F2 /* SSHAgentProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5099A089240242C20062B6F2 /* SSHAgentProtocol.swift */; }; - 509FA3B625B53C49005E2535 /* ReleaseParsingTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 509FA3B525B53C49005E2535 /* ReleaseParsingTests.swift */; }; - 50A3B79124026B7600D209EA /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 50A3B79024026B7600D209EA /* Assets.xcassets */; }; - 50A3B79424026B7600D209EA /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 50A3B79324026B7600D209EA /* Preview Assets.xcassets */; }; - 50A3B79724026B7600D209EA /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 50A3B79524026B7600D209EA /* Main.storyboard */; }; - 50A5C18C240E4B4B00E2996C /* SecretAgentKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5099A06C240242BA0062B6F2 /* SecretAgentKit.framework */; }; - 50A5C18D240E4B4B00E2996C /* SecretAgentKit.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 5099A06C240242BA0062B6F2 /* SecretAgentKit.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; - 50A5C18F240E4B4C00E2996C /* SecretKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 50617DA823FCE4AB0099B055 /* SecretKit.framework */; }; - 50A5C190240E4B4C00E2996C /* SecretKit.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 50617DA823FCE4AB0099B055 /* SecretKit.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; - 50B8550D24138C4F009958AC /* DeleteSecretView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50B8550C24138C4F009958AC /* DeleteSecretView.swift */; }; - 50BB046B2418AAAE00D6E079 /* EmptyStoreView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50BB046A2418AAAE00D6E079 /* EmptyStoreView.swift */; }; - 50C385A3240789E600AF2719 /* OpenSSHReader.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50C385A2240789E600AF2719 /* OpenSSHReader.swift */; }; - 50C385A52407A76D00AF2719 /* SecretDetailView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50C385A42407A76D00AF2719 /* SecretDetailView.swift */; }; - FA0B34672599619E0013AB3A /* BundleIDs.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA0B34662599619E0013AB3A /* BundleIDs.swift */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 5018F5482402736A002EB505 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 50617D7723FCE48D0099B055 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 5099A06B240242BA0062B6F2; - remoteInfo = SecretAgentKit; - }; - 5018F54A2402736A002EB505 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 50617D7723FCE48D0099B055 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 50617DA723FCE4AB0099B055; - remoteInfo = SecretKit; - }; - 50617D9523FCE48E0099B055 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 50617D7723FCE48D0099B055 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 50617D7E23FCE48D0099B055; - remoteInfo = Secretive; - }; - 50617DB223FCE4AB0099B055 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 50617D7723FCE48D0099B055 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 50617DA723FCE4AB0099B055; - remoteInfo = SecretKit; - }; - 50617DBB23FCE4AB0099B055 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 50617D7723FCE48D0099B055 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 50617DA723FCE4AB0099B055; - remoteInfo = SecretKit; - }; - 506773002426F3F400034DED /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 50617D7723FCE48D0099B055 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 506772FA2426F3F400034DED; - remoteInfo = Brief; - }; - 5067730A2426F40A00034DED /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 50617D7723FCE48D0099B055 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 506772FA2426F3F400034DED; - remoteInfo = Brief; - }; - 507CE4F12420A6B50029F750 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 50617D7723FCE48D0099B055 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 50617DA723FCE4AB0099B055; - remoteInfo = SecretKit; - }; - 5091D3252519D56D0049FD9B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 50617D7723FCE48D0099B055 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 506772FA2426F3F400034DED; - remoteInfo = Brief; - }; - 5099A076240242BA0062B6F2 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 50617D7723FCE48D0099B055 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 5099A06B240242BA0062B6F2; - remoteInfo = SecretAgentKit; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXCopyFilesBuildPhase section */ - 50617DBF23FCE4AB0099B055 /* Embed Frameworks */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 10; - files = ( - 50617DBE23FCE4AB0099B055 /* SecretKit.framework in Embed Frameworks */, - 506773032426F3F400034DED /* Brief.framework in Embed Frameworks */, - ); - name = "Embed Frameworks"; - runOnlyForDeploymentPostprocessing = 0; - }; - 508A5910241EF0920069DC07 /* CopyFiles */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 10; - files = ( - 508A5911241EF09C0069DC07 /* SecretAgentKit.framework in CopyFiles */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 508A5912241EF0AC0069DC07 /* CopyFiles */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 10; - files = ( - 508A5913241EF0B20069DC07 /* SecretKit.framework in CopyFiles */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 50A5C18E240E4B4B00E2996C /* Embed Frameworks */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 10; - files = ( - 5067730C2426F40E00034DED /* Brief.framework in Embed Frameworks */, - 50A5C18D240E4B4B00E2996C /* SecretAgentKit.framework in Embed Frameworks */, - 50A5C190240E4B4C00E2996C /* SecretKit.framework in Embed Frameworks */, - ); - name = "Embed Frameworks"; - runOnlyForDeploymentPostprocessing = 0; - }; - 50C385AF240E438B00AF2719 /* CopyFiles */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = Contents/Library/LoginItems; - dstSubfolderSpec = 1; - files = ( - 506AB87E2412334700335D91 /* SecretAgent.app in CopyFiles */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXCopyFilesBuildPhase section */ - -/* Begin PBXFileReference section */ - 2C4A9D2E2636FFD3008CC8E2 /* RenameSecretView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RenameSecretView.swift; sourceTree = ""; }; - 50020BAF24064869003D4025 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; - 50153E1F250AFCB200525160 /* UpdateView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UpdateView.swift; sourceTree = ""; }; - 50153E21250DECA300525160 /* SecretListItemView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SecretListItemView.swift; sourceTree = ""; }; - 5018F54E24064786002EB505 /* Notifier.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Notifier.swift; sourceTree = ""; }; - 5035FF6D2737A2F4006FE1F6 /* SignedData.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SignedData.swift; sourceTree = ""; }; - 50524B432420969D008DBD97 /* OpenSSHWriterTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OpenSSHWriterTests.swift; sourceTree = ""; }; - 50571E0224393C2600F76F6C /* JustUpdatedChecker.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = JustUpdatedChecker.swift; sourceTree = ""; }; - 50571E0424393D1500F76F6C /* LaunchAgentController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LaunchAgentController.swift; sourceTree = ""; }; - 50617D7F23FCE48E0099B055 /* Secretive.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Secretive.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 50617D8223FCE48E0099B055 /* App.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = App.swift; sourceTree = ""; }; - 50617D8423FCE48E0099B055 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; - 50617D8623FCE48E0099B055 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 50617D8923FCE48E0099B055 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; - 50617D8E23FCE48E0099B055 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 50617D8F23FCE48E0099B055 /* Secretive.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Secretive.entitlements; sourceTree = ""; }; - 50617D9423FCE48E0099B055 /* SecretiveTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SecretiveTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - 50617D9823FCE48E0099B055 /* SecretiveTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SecretiveTests.swift; sourceTree = ""; }; - 50617D9A23FCE48E0099B055 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 50617DA823FCE4AB0099B055 /* SecretKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SecretKit.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 50617DAA23FCE4AB0099B055 /* SecretKit.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SecretKit.h; sourceTree = ""; }; - 50617DAB23FCE4AB0099B055 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 50617DB023FCE4AB0099B055 /* SecretKitTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SecretKitTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - 50617DB923FCE4AB0099B055 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 50617DC623FCE4EA0099B055 /* SecretStore.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SecretStore.swift; sourceTree = ""; }; - 50617DC823FCE50E0099B055 /* SecureEnclaveStore.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SecureEnclaveStore.swift; sourceTree = ""; }; - 50617DCA23FCECA10099B055 /* Secret.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Secret.swift; sourceTree = ""; }; - 50617DCD23FCECFA0099B055 /* SecureEnclaveSecret.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SecureEnclaveSecret.swift; sourceTree = ""; }; - 50617DCF23FCED2C0099B055 /* SecureEnclave.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SecureEnclave.swift; sourceTree = ""; }; - 50617DD123FCEFA90099B055 /* PreviewStore.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PreviewStore.swift; sourceTree = ""; }; - 5066A6C12516F303004B5A36 /* SetupView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SetupView.swift; sourceTree = ""; }; - 5066A6C72516FE6E004B5A36 /* CopyableView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CopyableView.swift; sourceTree = ""; }; - 5066A6F6251829B1004B5A36 /* ShellConfigurationController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShellConfigurationController.swift; sourceTree = ""; }; - 506772C62424784600034DED /* Credits.rtf */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; path = Credits.rtf; sourceTree = ""; }; - 506772C82425BB8500034DED /* NoStoresView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NoStoresView.swift; sourceTree = ""; }; - 506772FB2426F3F400034DED /* Brief.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Brief.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 506772FD2426F3F400034DED /* Brief.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Brief.h; sourceTree = ""; }; - 506772FE2426F3F400034DED /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 506773082426F3FD00034DED /* Updater.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Updater.swift; sourceTree = ""; }; - 5067730D242701BA00034DED /* OpenSSHReaderTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OpenSSHReaderTests.swift; sourceTree = ""; }; - 5067730F2427057600034DED /* AnySecretTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AnySecretTests.swift; sourceTree = ""; }; - 5068389D241471CD00F55094 /* SecretStoreList.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SecretStoreList.swift; sourceTree = ""; }; - 506838A02415EA5600F55094 /* AnySecret.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AnySecret.swift; sourceTree = ""; }; - 506838A22415EA5D00F55094 /* AnySecretStore.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AnySecretStore.swift; sourceTree = ""; }; - 5079BA0E250F29BF00EA86F4 /* StoreListView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StoreListView.swift; sourceTree = ""; }; - 507CBBC82744AE4E00A0D79A /* PublicKeyStandinFileController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PublicKeyStandinFileController.swift; sourceTree = ""; }; - 507CE4EF2420A4C50029F750 /* SigningWitness.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SigningWitness.swift; sourceTree = ""; }; - 507CE4F32420A8C10029F750 /* SigningRequestProvenance.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SigningRequestProvenance.swift; sourceTree = ""; }; - 507CE4F52420A96F0029F750 /* SigningRequestTracer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SigningRequestTracer.swift; sourceTree = ""; }; - 507EE34124281E12003C4FE3 /* FileHandleProtocols.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FileHandleProtocols.swift; sourceTree = ""; }; - 507EE34524281F89003C4FE3 /* StubFileHandleReader.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StubFileHandleReader.swift; sourceTree = ""; }; - 507EE34724281FB8003C4FE3 /* StubFileHandleWriter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StubFileHandleWriter.swift; sourceTree = ""; }; - 507EE3492428263B003C4FE3 /* StubStore.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StubStore.swift; sourceTree = ""; }; - 507EE34D2428784F003C4FE3 /* StubWitness.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StubWitness.swift; sourceTree = ""; }; - 508A58A9241E06B40069DC07 /* PreviewUpdater.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PreviewUpdater.swift; sourceTree = ""; }; - 508A58AB241E121B0069DC07 /* Config.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Config.xcconfig; sourceTree = ""; }; - 508A58B2241ED2180069DC07 /* AgentStatusChecker.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AgentStatusChecker.swift; sourceTree = ""; }; - 508A58B4241ED48F0069DC07 /* PreviewAgentStatusChecker.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PreviewAgentStatusChecker.swift; sourceTree = ""; }; - 508A590F241EEF6D0069DC07 /* Secretive.xctestplan */ = {isa = PBXFileReference; lastKnownFileType = text; path = Secretive.xctestplan; sourceTree = ""; }; - 508BF28D25B4F005009EFB7E /* InternetAccessPolicy.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = InternetAccessPolicy.plist; sourceTree = ""; }; - 508BF29425B4F140009EFB7E /* InternetAccessPolicy.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; name = InternetAccessPolicy.plist; path = SecretAgent/InternetAccessPolicy.plist; sourceTree = SOURCE_ROOT; }; - 5091D2BB25183B830049FD9B /* ApplicationDirectoryController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ApplicationDirectoryController.swift; sourceTree = ""; }; - 5091D31F2519D56D0049FD9B /* BriefTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = BriefTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - 5091D3212519D56D0049FD9B /* SemVerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SemVerTests.swift; sourceTree = ""; }; - 5091D3232519D56D0049FD9B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 5099A02323FD2AAA0062B6F2 /* CreateSecretView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CreateSecretView.swift; sourceTree = ""; }; - 5099A02623FE34FA0062B6F2 /* SmartCard.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SmartCard.swift; sourceTree = ""; }; - 5099A02823FE35240062B6F2 /* SmartCardStore.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SmartCardStore.swift; sourceTree = ""; }; - 5099A02A23FE352C0062B6F2 /* SmartCardSecret.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SmartCardSecret.swift; sourceTree = ""; }; - 5099A02D23FE56E10062B6F2 /* OpenSSHKeyWriter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OpenSSHKeyWriter.swift; sourceTree = ""; }; - 5099A06C240242BA0062B6F2 /* SecretAgentKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SecretAgentKit.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 5099A06E240242BA0062B6F2 /* SecretAgentKit.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SecretAgentKit.h; sourceTree = ""; }; - 5099A06F240242BA0062B6F2 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 5099A074240242BA0062B6F2 /* SecretAgentKitTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SecretAgentKitTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - 5099A07B240242BA0062B6F2 /* AgentTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AgentTests.swift; sourceTree = ""; }; - 5099A07D240242BA0062B6F2 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 5099A089240242C20062B6F2 /* SSHAgentProtocol.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SSHAgentProtocol.swift; sourceTree = ""; }; - 509FA3B525B53C49005E2535 /* ReleaseParsingTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReleaseParsingTests.swift; sourceTree = ""; }; - 50A3B78A24026B7500D209EA /* SecretAgent.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SecretAgent.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 50A3B79024026B7600D209EA /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 50A3B79324026B7600D209EA /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; - 50A3B79624026B7600D209EA /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 50A3B79824026B7600D209EA /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 50A3B79924026B7600D209EA /* SecretAgent.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = SecretAgent.entitlements; sourceTree = ""; }; - 50A3B79D24026B9900D209EA /* SocketController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SocketController.swift; sourceTree = ""; }; - 50A3B79F24026B9900D209EA /* Agent.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Agent.swift; sourceTree = ""; }; - 50B8550C24138C4F009958AC /* DeleteSecretView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DeleteSecretView.swift; sourceTree = ""; }; - 50BB046A2418AAAE00D6E079 /* EmptyStoreView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmptyStoreView.swift; sourceTree = ""; }; - 50C385A2240789E600AF2719 /* OpenSSHReader.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = OpenSSHReader.swift; path = SecretKit/Common/OpenSSH/OpenSSHReader.swift; sourceTree = SOURCE_ROOT; }; - 50C385A42407A76D00AF2719 /* SecretDetailView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SecretDetailView.swift; sourceTree = ""; }; - FA0B34662599619E0013AB3A /* BundleIDs.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BundleIDs.swift; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 50617D7C23FCE48D0099B055 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 50617DBD23FCE4AB0099B055 /* SecretKit.framework in Frameworks */, - 506773022426F3F400034DED /* Brief.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 50617D9123FCE48E0099B055 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 50617DA523FCE4AB0099B055 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 50617DAD23FCE4AB0099B055 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 50617DB123FCE4AB0099B055 /* SecretKit.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 506772F82426F3F400034DED /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 5091D31C2519D56D0049FD9B /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 5091D3242519D56D0049FD9B /* Brief.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 5099A069240242BA0062B6F2 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 5099A071240242BA0062B6F2 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 5099A075240242BA0062B6F2 /* SecretAgentKit.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 50A3B78724026B7500D209EA /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 50A5C18C240E4B4B00E2996C /* SecretAgentKit.framework in Frameworks */, - 50A5C18F240E4B4C00E2996C /* SecretKit.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 504BA92D243171F20064740E /* Types */ = { - isa = PBXGroup; - children = ( - 507CE4F32420A8C10029F750 /* SigningRequestProvenance.swift */, - 50617DCA23FCECA10099B055 /* Secret.swift */, - 50617DC623FCE4EA0099B055 /* SecretStore.swift */, - 5035FF6D2737A2F4006FE1F6 /* SignedData.swift */, - ); - path = Types; - sourceTree = ""; - }; - 50617D7623FCE48D0099B055 = { - isa = PBXGroup; - children = ( - 50617D8123FCE48E0099B055 /* Secretive */, - 50617D9723FCE48E0099B055 /* SecretiveTests */, - 50617DA923FCE4AB0099B055 /* SecretKit */, - 50617DB623FCE4AB0099B055 /* SecretKitTests */, - 50A3B78B24026B7500D209EA /* SecretAgent */, - 5099A06D240242BA0062B6F2 /* SecretAgentKit */, - 5099A07A240242BA0062B6F2 /* SecretAgentKitTests */, - 508A58AF241E144C0069DC07 /* Config */, - 506772FC2426F3F400034DED /* Brief */, - 5091D3202519D56D0049FD9B /* BriefTests */, - 50617D8023FCE48E0099B055 /* Products */, - 5099A08B240243730062B6F2 /* Frameworks */, - ); - sourceTree = ""; - }; - 50617D8023FCE48E0099B055 /* Products */ = { - isa = PBXGroup; - children = ( - 50617D7F23FCE48E0099B055 /* Secretive.app */, - 50617D9423FCE48E0099B055 /* SecretiveTests.xctest */, - 50617DA823FCE4AB0099B055 /* SecretKit.framework */, - 50617DB023FCE4AB0099B055 /* SecretKitTests.xctest */, - 5099A06C240242BA0062B6F2 /* SecretAgentKit.framework */, - 5099A074240242BA0062B6F2 /* SecretAgentKitTests.xctest */, - 50A3B78A24026B7500D209EA /* SecretAgent.app */, - 506772FB2426F3F400034DED /* Brief.framework */, - 5091D31F2519D56D0049FD9B /* BriefTests.xctest */, - ); - name = Products; - sourceTree = ""; - }; - 50617D8123FCE48E0099B055 /* Secretive */ = { - isa = PBXGroup; - children = ( - 50617D8223FCE48E0099B055 /* App.swift */, - 508A58B0241ED1C40069DC07 /* Views */, - 508A58B1241ED1EA0069DC07 /* Controllers */, - 50617D8623FCE48E0099B055 /* Assets.xcassets */, - 50617D8E23FCE48E0099B055 /* Info.plist */, - 508BF28D25B4F005009EFB7E /* InternetAccessPolicy.plist */, - 50617D8F23FCE48E0099B055 /* Secretive.entitlements */, - 506772C62424784600034DED /* Credits.rtf */, - 50617D8823FCE48E0099B055 /* Preview Content */, - ); - path = Secretive; - sourceTree = ""; - }; - 50617D8823FCE48E0099B055 /* Preview Content */ = { - isa = PBXGroup; - children = ( - 50617D8923FCE48E0099B055 /* Preview Assets.xcassets */, - 50617DD123FCEFA90099B055 /* PreviewStore.swift */, - 508A58A9241E06B40069DC07 /* PreviewUpdater.swift */, - 508A58B4241ED48F0069DC07 /* PreviewAgentStatusChecker.swift */, - ); - path = "Preview Content"; - sourceTree = ""; - }; - 50617D9723FCE48E0099B055 /* SecretiveTests */ = { - isa = PBXGroup; - children = ( - 50617D9823FCE48E0099B055 /* SecretiveTests.swift */, - 50617D9A23FCE48E0099B055 /* Info.plist */, - ); - path = SecretiveTests; - sourceTree = ""; - }; - 50617DA923FCE4AB0099B055 /* SecretKit */ = { - isa = PBXGroup; - children = ( - 50617DAA23FCE4AB0099B055 /* SecretKit.h */, - 5099A02C23FE56D70062B6F2 /* Common */, - 50617DCC23FCECEE0099B055 /* SecureEnclave */, - 5099A02523FE34DE0062B6F2 /* SmartCard */, - 50617DAB23FCE4AB0099B055 /* Info.plist */, - ); - path = SecretKit; - sourceTree = ""; - }; - 50617DB623FCE4AB0099B055 /* SecretKitTests */ = { - isa = PBXGroup; - children = ( - 50524B432420969D008DBD97 /* OpenSSHWriterTests.swift */, - 5067730D242701BA00034DED /* OpenSSHReaderTests.swift */, - 5067730F2427057600034DED /* AnySecretTests.swift */, - 50617DB923FCE4AB0099B055 /* Info.plist */, - ); - path = SecretKitTests; - sourceTree = ""; - }; - 50617DCC23FCECEE0099B055 /* SecureEnclave */ = { - isa = PBXGroup; - children = ( - 50617DCF23FCED2C0099B055 /* SecureEnclave.swift */, - 50617DCD23FCECFA0099B055 /* SecureEnclaveSecret.swift */, - 50617DC823FCE50E0099B055 /* SecureEnclaveStore.swift */, - ); - path = SecureEnclave; - sourceTree = ""; - }; - 506772FC2426F3F400034DED /* Brief */ = { - isa = PBXGroup; - children = ( - 506773082426F3FD00034DED /* Updater.swift */, - 506772FD2426F3F400034DED /* Brief.h */, - 506772FE2426F3F400034DED /* Info.plist */, - ); - path = Brief; - sourceTree = ""; - }; - 5068389F2415EA4F00F55094 /* Erasers */ = { - isa = PBXGroup; - children = ( - 506838A02415EA5600F55094 /* AnySecret.swift */, - 506838A22415EA5D00F55094 /* AnySecretStore.swift */, - ); - path = Erasers; - sourceTree = ""; - }; - 506838A42415EA6800F55094 /* OpenSSH */ = { - isa = PBXGroup; - children = ( - 5099A02D23FE56E10062B6F2 /* OpenSSHKeyWriter.swift */, - 50C385A2240789E600AF2719 /* OpenSSHReader.swift */, - ); - path = OpenSSH; - sourceTree = ""; - }; - 508A58AF241E144C0069DC07 /* Config */ = { - isa = PBXGroup; - children = ( - 508A590F241EEF6D0069DC07 /* Secretive.xctestplan */, - 508A58AB241E121B0069DC07 /* Config.xcconfig */, - ); - path = Config; - sourceTree = ""; - }; - 508A58B0241ED1C40069DC07 /* Views */ = { - isa = PBXGroup; - children = ( - 50617D8423FCE48E0099B055 /* ContentView.swift */, - 5079BA0E250F29BF00EA86F4 /* StoreListView.swift */, - 50153E21250DECA300525160 /* SecretListItemView.swift */, - 50C385A42407A76D00AF2719 /* SecretDetailView.swift */, - 5099A02323FD2AAA0062B6F2 /* CreateSecretView.swift */, - 50B8550C24138C4F009958AC /* DeleteSecretView.swift */, - 2C4A9D2E2636FFD3008CC8E2 /* RenameSecretView.swift */, - 50BB046A2418AAAE00D6E079 /* EmptyStoreView.swift */, - 506772C82425BB8500034DED /* NoStoresView.swift */, - 50153E1F250AFCB200525160 /* UpdateView.swift */, - 5066A6C12516F303004B5A36 /* SetupView.swift */, - 5066A6C72516FE6E004B5A36 /* CopyableView.swift */, - ); - path = Views; - sourceTree = ""; - }; - 508A58B1241ED1EA0069DC07 /* Controllers */ = { - isa = PBXGroup; - children = ( - 508A58B2241ED2180069DC07 /* AgentStatusChecker.swift */, - 5091D2BB25183B830049FD9B /* ApplicationDirectoryController.swift */, - 50571E0224393C2600F76F6C /* JustUpdatedChecker.swift */, - 50571E0424393D1500F76F6C /* LaunchAgentController.swift */, - 5066A6F6251829B1004B5A36 /* ShellConfigurationController.swift */, - ); - path = Controllers; - sourceTree = ""; - }; - 5091D3202519D56D0049FD9B /* BriefTests */ = { - isa = PBXGroup; - children = ( - 5091D3212519D56D0049FD9B /* SemVerTests.swift */, - 509FA3B525B53C49005E2535 /* ReleaseParsingTests.swift */, - 5091D3232519D56D0049FD9B /* Info.plist */, - ); - path = BriefTests; - sourceTree = ""; - }; - 5099A02523FE34DE0062B6F2 /* SmartCard */ = { - isa = PBXGroup; - children = ( - 5099A02623FE34FA0062B6F2 /* SmartCard.swift */, - 5099A02A23FE352C0062B6F2 /* SmartCardSecret.swift */, - 5099A02823FE35240062B6F2 /* SmartCardStore.swift */, - ); - path = SmartCard; - sourceTree = ""; - }; - 5099A02C23FE56D70062B6F2 /* Common */ = { - isa = PBXGroup; - children = ( - 504BA92D243171F20064740E /* Types */, - 5068389F2415EA4F00F55094 /* Erasers */, - 506838A42415EA6800F55094 /* OpenSSH */, - 5068389D241471CD00F55094 /* SecretStoreList.swift */, - FA0B34662599619E0013AB3A /* BundleIDs.swift */, - ); - path = Common; - sourceTree = ""; - }; - 5099A06D240242BA0062B6F2 /* SecretAgentKit */ = { - isa = PBXGroup; - children = ( - 5099A06E240242BA0062B6F2 /* SecretAgentKit.h */, - 5099A089240242C20062B6F2 /* SSHAgentProtocol.swift */, - 50A3B79D24026B9900D209EA /* SocketController.swift */, - 507CBBC82744AE4E00A0D79A /* PublicKeyStandinFileController.swift */, - 507CE4EF2420A4C50029F750 /* SigningWitness.swift */, - 507CE4F52420A96F0029F750 /* SigningRequestTracer.swift */, - 50A3B79F24026B9900D209EA /* Agent.swift */, - 507EE34124281E12003C4FE3 /* FileHandleProtocols.swift */, - 5099A06F240242BA0062B6F2 /* Info.plist */, - ); - path = SecretAgentKit; - sourceTree = ""; - }; - 5099A07A240242BA0062B6F2 /* SecretAgentKitTests */ = { - isa = PBXGroup; - children = ( - 5099A07B240242BA0062B6F2 /* AgentTests.swift */, - 507EE34524281F89003C4FE3 /* StubFileHandleReader.swift */, - 507EE34724281FB8003C4FE3 /* StubFileHandleWriter.swift */, - 507EE34D2428784F003C4FE3 /* StubWitness.swift */, - 507EE3492428263B003C4FE3 /* StubStore.swift */, - 5099A07D240242BA0062B6F2 /* Info.plist */, - ); - path = SecretAgentKitTests; - sourceTree = ""; - }; - 5099A08B240243730062B6F2 /* Frameworks */ = { - isa = PBXGroup; - children = ( - ); - name = Frameworks; - sourceTree = ""; - }; - 50A3B78B24026B7500D209EA /* SecretAgent */ = { - isa = PBXGroup; - children = ( - 50020BAF24064869003D4025 /* AppDelegate.swift */, - 5018F54E24064786002EB505 /* Notifier.swift */, - 50A3B79024026B7600D209EA /* Assets.xcassets */, - 50A3B79524026B7600D209EA /* Main.storyboard */, - 50A3B79824026B7600D209EA /* Info.plist */, - 508BF29425B4F140009EFB7E /* InternetAccessPolicy.plist */, - 50A3B79924026B7600D209EA /* SecretAgent.entitlements */, - 50A3B79224026B7600D209EA /* Preview Content */, - ); - path = SecretAgent; - sourceTree = ""; - }; - 50A3B79224026B7600D209EA /* Preview Content */ = { - isa = PBXGroup; - children = ( - 50A3B79324026B7600D209EA /* Preview Assets.xcassets */, - ); - path = "Preview Content"; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXHeadersBuildPhase section */ - 50617DA323FCE4AB0099B055 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 50617DBA23FCE4AB0099B055 /* SecretKit.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 506772F62426F3F400034DED /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 506772FF2426F3F400034DED /* Brief.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 5099A067240242BA0062B6F2 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 5099A07E240242BA0062B6F2 /* SecretAgentKit.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXHeadersBuildPhase section */ - -/* Begin PBXNativeTarget section */ - 50617D7E23FCE48D0099B055 /* Secretive */ = { - isa = PBXNativeTarget; - buildConfigurationList = 50617D9D23FCE48E0099B055 /* Build configuration list for PBXNativeTarget "Secretive" */; - buildPhases = ( - 50617D7B23FCE48D0099B055 /* Sources */, - 50617D7C23FCE48D0099B055 /* Frameworks */, - 50617D7D23FCE48D0099B055 /* Resources */, - 50617DBF23FCE4AB0099B055 /* Embed Frameworks */, - 50C385AF240E438B00AF2719 /* CopyFiles */, - ); - buildRules = ( - ); - dependencies = ( - 50617DBC23FCE4AB0099B055 /* PBXTargetDependency */, - 506773012426F3F400034DED /* PBXTargetDependency */, - ); - name = Secretive; - productName = Secretive; - productReference = 50617D7F23FCE48E0099B055 /* Secretive.app */; - productType = "com.apple.product-type.application"; - }; - 50617D9323FCE48E0099B055 /* SecretiveTests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 50617DA023FCE48E0099B055 /* Build configuration list for PBXNativeTarget "SecretiveTests" */; - buildPhases = ( - 50617D9023FCE48E0099B055 /* Sources */, - 50617D9123FCE48E0099B055 /* Frameworks */, - 50617D9223FCE48E0099B055 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 50617D9623FCE48E0099B055 /* PBXTargetDependency */, - ); - name = SecretiveTests; - productName = SecretiveTests; - productReference = 50617D9423FCE48E0099B055 /* SecretiveTests.xctest */; - productType = "com.apple.product-type.bundle.unit-test"; - }; - 50617DA723FCE4AB0099B055 /* SecretKit */ = { - isa = PBXNativeTarget; - buildConfigurationList = 50617DC423FCE4AB0099B055 /* Build configuration list for PBXNativeTarget "SecretKit" */; - buildPhases = ( - 50617DA323FCE4AB0099B055 /* Headers */, - 50617DA423FCE4AB0099B055 /* Sources */, - 50617DA523FCE4AB0099B055 /* Frameworks */, - 50617DA623FCE4AB0099B055 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = SecretKit; - productName = SecretKit; - productReference = 50617DA823FCE4AB0099B055 /* SecretKit.framework */; - productType = "com.apple.product-type.framework"; - }; - 50617DAF23FCE4AB0099B055 /* SecretKitTests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 50617DC523FCE4AB0099B055 /* Build configuration list for PBXNativeTarget "SecretKitTests" */; - buildPhases = ( - 50617DAC23FCE4AB0099B055 /* Sources */, - 50617DAD23FCE4AB0099B055 /* Frameworks */, - 50617DAE23FCE4AB0099B055 /* Resources */, - 508A5912241EF0AC0069DC07 /* CopyFiles */, - ); - buildRules = ( - ); - dependencies = ( - 50617DB323FCE4AB0099B055 /* PBXTargetDependency */, - ); - name = SecretKitTests; - productName = SecretKitTests; - productReference = 50617DB023FCE4AB0099B055 /* SecretKitTests.xctest */; - productType = "com.apple.product-type.bundle.unit-test"; - }; - 506772FA2426F3F400034DED /* Brief */ = { - isa = PBXNativeTarget; - buildConfigurationList = 506773042426F3F400034DED /* Build configuration list for PBXNativeTarget "Brief" */; - buildPhases = ( - 506772F62426F3F400034DED /* Headers */, - 506772F72426F3F400034DED /* Sources */, - 506772F82426F3F400034DED /* Frameworks */, - 506772F92426F3F400034DED /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = Brief; - productName = Brief; - productReference = 506772FB2426F3F400034DED /* Brief.framework */; - productType = "com.apple.product-type.framework"; - }; - 5091D31E2519D56D0049FD9B /* BriefTests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 5091D32A2519D56D0049FD9B /* Build configuration list for PBXNativeTarget "BriefTests" */; - buildPhases = ( - 5091D31B2519D56D0049FD9B /* Sources */, - 5091D31C2519D56D0049FD9B /* Frameworks */, - 5091D31D2519D56D0049FD9B /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 5091D3262519D56D0049FD9B /* PBXTargetDependency */, - ); - name = BriefTests; - productName = BriefTests; - productReference = 5091D31F2519D56D0049FD9B /* BriefTests.xctest */; - productType = "com.apple.product-type.bundle.unit-test"; - }; - 5099A06B240242BA0062B6F2 /* SecretAgentKit */ = { - isa = PBXNativeTarget; - buildConfigurationList = 5099A083240242BA0062B6F2 /* Build configuration list for PBXNativeTarget "SecretAgentKit" */; - buildPhases = ( - 5099A067240242BA0062B6F2 /* Headers */, - 5099A068240242BA0062B6F2 /* Sources */, - 5099A069240242BA0062B6F2 /* Frameworks */, - 5099A06A240242BA0062B6F2 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 507CE4F22420A6B50029F750 /* PBXTargetDependency */, - ); - name = SecretAgentKit; - productName = SecretAgentKit; - productReference = 5099A06C240242BA0062B6F2 /* SecretAgentKit.framework */; - productType = "com.apple.product-type.framework"; - }; - 5099A073240242BA0062B6F2 /* SecretAgentKitTests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 5099A086240242BA0062B6F2 /* Build configuration list for PBXNativeTarget "SecretAgentKitTests" */; - buildPhases = ( - 5099A070240242BA0062B6F2 /* Sources */, - 5099A071240242BA0062B6F2 /* Frameworks */, - 5099A072240242BA0062B6F2 /* Resources */, - 508A5910241EF0920069DC07 /* CopyFiles */, - ); - buildRules = ( - ); - dependencies = ( - 5099A077240242BA0062B6F2 /* PBXTargetDependency */, - ); - name = SecretAgentKitTests; - productName = SecretAgentKitTests; - productReference = 5099A074240242BA0062B6F2 /* SecretAgentKitTests.xctest */; - productType = "com.apple.product-type.bundle.unit-test"; - }; - 50A3B78924026B7500D209EA /* SecretAgent */ = { - isa = PBXNativeTarget; - buildConfigurationList = 50A3B79A24026B7600D209EA /* Build configuration list for PBXNativeTarget "SecretAgent" */; - buildPhases = ( - 50A3B78624026B7500D209EA /* Sources */, - 50A3B78724026B7500D209EA /* Frameworks */, - 50A3B78824026B7500D209EA /* Resources */, - 50A5C18E240E4B4B00E2996C /* Embed Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - 5018F5492402736A002EB505 /* PBXTargetDependency */, - 5018F54B2402736A002EB505 /* PBXTargetDependency */, - 5067730B2426F40A00034DED /* PBXTargetDependency */, - ); - name = SecretAgent; - productName = SecretAgent; - productReference = 50A3B78A24026B7500D209EA /* SecretAgent.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 50617D7723FCE48D0099B055 /* Project object */ = { - isa = PBXProject; - attributes = { - LastSwiftUpdateCheck = 1220; - LastUpgradeCheck = 1130; - ORGANIZATIONNAME = "Max Goedjen"; - TargetAttributes = { - 50617D7E23FCE48D0099B055 = { - CreatedOnToolsVersion = 11.3; - }; - 50617D9323FCE48E0099B055 = { - CreatedOnToolsVersion = 11.3; - TestTargetID = 50617D7E23FCE48D0099B055; - }; - 50617DA723FCE4AB0099B055 = { - CreatedOnToolsVersion = 11.3; - LastSwiftMigration = 1130; - }; - 50617DAF23FCE4AB0099B055 = { - CreatedOnToolsVersion = 11.3; - }; - 506772FA2426F3F400034DED = { - CreatedOnToolsVersion = 11.4; - LastSwiftMigration = 1140; - }; - 5091D31E2519D56D0049FD9B = { - CreatedOnToolsVersion = 12.2; - }; - 5099A06B240242BA0062B6F2 = { - CreatedOnToolsVersion = 11.4; - LastSwiftMigration = 1140; - }; - 5099A073240242BA0062B6F2 = { - CreatedOnToolsVersion = 11.4; - }; - 50A3B78924026B7500D209EA = { - CreatedOnToolsVersion = 11.4; - }; - }; - }; - buildConfigurationList = 50617D7A23FCE48D0099B055 /* Build configuration list for PBXProject "Secretive" */; - compatibilityVersion = "Xcode 9.3"; - developmentRegion = en; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 50617D7623FCE48D0099B055; - productRefGroup = 50617D8023FCE48E0099B055 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 50617D7E23FCE48D0099B055 /* Secretive */, - 50617D9323FCE48E0099B055 /* SecretiveTests */, - 50A3B78924026B7500D209EA /* SecretAgent */, - 50617DA723FCE4AB0099B055 /* SecretKit */, - 50617DAF23FCE4AB0099B055 /* SecretKitTests */, - 5099A06B240242BA0062B6F2 /* SecretAgentKit */, - 5099A073240242BA0062B6F2 /* SecretAgentKitTests */, - 506772FA2426F3F400034DED /* Brief */, - 5091D31E2519D56D0049FD9B /* BriefTests */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 50617D7D23FCE48D0099B055 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 50617D8A23FCE48E0099B055 /* Preview Assets.xcassets in Resources */, - 50617D8723FCE48E0099B055 /* Assets.xcassets in Resources */, - 506772C72424784600034DED /* Credits.rtf in Resources */, - 508BF28E25B4F005009EFB7E /* InternetAccessPolicy.plist in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 50617D9223FCE48E0099B055 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 50617DA623FCE4AB0099B055 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 50617DAE23FCE4AB0099B055 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 506772F92426F3F400034DED /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 5091D31D2519D56D0049FD9B /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 5099A06A240242BA0062B6F2 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 5099A072240242BA0062B6F2 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 50A3B78824026B7500D209EA /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 50A3B79724026B7600D209EA /* Main.storyboard in Resources */, - 50A3B79424026B7600D209EA /* Preview Assets.xcassets in Resources */, - 50A3B79124026B7600D209EA /* Assets.xcassets in Resources */, - 508BF2AA25B4F1CB009EFB7E /* InternetAccessPolicy.plist in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 50617D7B23FCE48D0099B055 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 2C4A9D2F2636FFD3008CC8E2 /* RenameSecretView.swift in Sources */, - 5091D2BC25183B830049FD9B /* ApplicationDirectoryController.swift in Sources */, - 5066A6C22516F303004B5A36 /* SetupView.swift in Sources */, - 50617D8523FCE48E0099B055 /* ContentView.swift in Sources */, - 50571E0324393C2600F76F6C /* JustUpdatedChecker.swift in Sources */, - 5079BA0F250F29BF00EA86F4 /* StoreListView.swift in Sources */, - 50617DD223FCEFA90099B055 /* PreviewStore.swift in Sources */, - 5066A6F7251829B1004B5A36 /* ShellConfigurationController.swift in Sources */, - 508A58B3241ED2180069DC07 /* AgentStatusChecker.swift in Sources */, - 50C385A52407A76D00AF2719 /* SecretDetailView.swift in Sources */, - 5099A02423FD2AAA0062B6F2 /* CreateSecretView.swift in Sources */, - 50153E20250AFCB200525160 /* UpdateView.swift in Sources */, - 50571E0524393D1500F76F6C /* LaunchAgentController.swift in Sources */, - 5066A6C82516FE6E004B5A36 /* CopyableView.swift in Sources */, - 50B8550D24138C4F009958AC /* DeleteSecretView.swift in Sources */, - 50BB046B2418AAAE00D6E079 /* EmptyStoreView.swift in Sources */, - 50617D8323FCE48E0099B055 /* App.swift in Sources */, - 506772C92425BB8500034DED /* NoStoresView.swift in Sources */, - 50153E22250DECA300525160 /* SecretListItemView.swift in Sources */, - 508A58B5241ED48F0069DC07 /* PreviewAgentStatusChecker.swift in Sources */, - 508A58AA241E06B40069DC07 /* PreviewUpdater.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 50617D9023FCE48E0099B055 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 50617D9923FCE48E0099B055 /* SecretiveTests.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 50617DA423FCE4AB0099B055 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - FA0B34672599619E0013AB3A /* BundleIDs.swift in Sources */, - 501B7AE1251C56F700776EC7 /* SigningRequestProvenance.swift in Sources */, - 50617DC723FCE4EA0099B055 /* SecretStore.swift in Sources */, - 5099A02723FE34FA0062B6F2 /* SmartCard.swift in Sources */, - 50617DCB23FCECA10099B055 /* Secret.swift in Sources */, - 5099A02E23FE56E10062B6F2 /* OpenSSHKeyWriter.swift in Sources */, - 50617DC923FCE50E0099B055 /* SecureEnclaveStore.swift in Sources */, - 506838A32415EA5D00F55094 /* AnySecretStore.swift in Sources */, - 50617DCE23FCECFA0099B055 /* SecureEnclaveSecret.swift in Sources */, - 50617DD023FCED2C0099B055 /* SecureEnclave.swift in Sources */, - 5068389E241471CD00F55094 /* SecretStoreList.swift in Sources */, - 506838A12415EA5600F55094 /* AnySecret.swift in Sources */, - 5099A02923FE35240062B6F2 /* SmartCardStore.swift in Sources */, - 5099A02B23FE352C0062B6F2 /* SmartCardSecret.swift in Sources */, - 50C385A3240789E600AF2719 /* OpenSSHReader.swift in Sources */, - 5035FF6E2737A2F4006FE1F6 /* SignedData.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 50617DAC23FCE4AB0099B055 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 50524B442420969E008DBD97 /* OpenSSHWriterTests.swift in Sources */, - 506773102427057600034DED /* AnySecretTests.swift in Sources */, - 5067730E242701BA00034DED /* OpenSSHReaderTests.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 506772F72426F3F400034DED /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 506773092426F3FD00034DED /* Updater.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 5091D31B2519D56D0049FD9B /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 509FA3B625B53C49005E2535 /* ReleaseParsingTests.swift in Sources */, - 5091D3222519D56D0049FD9B /* SemVerTests.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 5099A068240242BA0062B6F2 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 507EE34224281E12003C4FE3 /* FileHandleProtocols.swift in Sources */, - 507CE4EE2420A3CA0029F750 /* SocketController.swift in Sources */, - 5099A08A240242C20062B6F2 /* SSHAgentProtocol.swift in Sources */, - 507CE4ED2420A3C70029F750 /* Agent.swift in Sources */, - 507CE4F02420A4C50029F750 /* SigningWitness.swift in Sources */, - 507CBBC92744AE4E00A0D79A /* PublicKeyStandinFileController.swift in Sources */, - 507CE4F62420A96F0029F750 /* SigningRequestTracer.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 5099A070240242BA0062B6F2 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 507EE34E2428784F003C4FE3 /* StubWitness.swift in Sources */, - 507EE34624281F89003C4FE3 /* StubFileHandleReader.swift in Sources */, - 507EE34A2428263B003C4FE3 /* StubStore.swift in Sources */, - 5099A07C240242BA0062B6F2 /* AgentTests.swift in Sources */, - 507EE34824281FB8003C4FE3 /* StubFileHandleWriter.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 50A3B78624026B7500D209EA /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 50020BB024064869003D4025 /* AppDelegate.swift in Sources */, - 5018F54F24064786002EB505 /* Notifier.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 5018F5492402736A002EB505 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 5099A06B240242BA0062B6F2 /* SecretAgentKit */; - targetProxy = 5018F5482402736A002EB505 /* PBXContainerItemProxy */; - }; - 5018F54B2402736A002EB505 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 50617DA723FCE4AB0099B055 /* SecretKit */; - targetProxy = 5018F54A2402736A002EB505 /* PBXContainerItemProxy */; - }; - 50617D9623FCE48E0099B055 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 50617D7E23FCE48D0099B055 /* Secretive */; - targetProxy = 50617D9523FCE48E0099B055 /* PBXContainerItemProxy */; - }; - 50617DB323FCE4AB0099B055 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 50617DA723FCE4AB0099B055 /* SecretKit */; - targetProxy = 50617DB223FCE4AB0099B055 /* PBXContainerItemProxy */; - }; - 50617DBC23FCE4AB0099B055 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 50617DA723FCE4AB0099B055 /* SecretKit */; - targetProxy = 50617DBB23FCE4AB0099B055 /* PBXContainerItemProxy */; - }; - 506773012426F3F400034DED /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 506772FA2426F3F400034DED /* Brief */; - targetProxy = 506773002426F3F400034DED /* PBXContainerItemProxy */; - }; - 5067730B2426F40A00034DED /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 506772FA2426F3F400034DED /* Brief */; - targetProxy = 5067730A2426F40A00034DED /* PBXContainerItemProxy */; - }; - 507CE4F22420A6B50029F750 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 50617DA723FCE4AB0099B055 /* SecretKit */; - targetProxy = 507CE4F12420A6B50029F750 /* PBXContainerItemProxy */; - }; - 5091D3262519D56D0049FD9B /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 506772FA2426F3F400034DED /* Brief */; - targetProxy = 5091D3252519D56D0049FD9B /* PBXContainerItemProxy */; - }; - 5099A077240242BA0062B6F2 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 5099A06B240242BA0062B6F2 /* SecretAgentKit */; - targetProxy = 5099A076240242BA0062B6F2 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin PBXVariantGroup section */ - 50A3B79524026B7600D209EA /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 50A3B79624026B7600D209EA /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 50617D9B23FCE48E0099B055 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 508A58AB241E121B0069DC07 /* Config.xcconfig */; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 11.0; - MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; - MTL_FAST_MATH = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = macosx; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - }; - name = Debug; - }; - 50617D9C23FCE48E0099B055 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 508A58AB241E121B0069DC07 /* Config.xcconfig */; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 11.0; - MTL_ENABLE_DEBUG_INFO = NO; - MTL_FAST_MATH = YES; - SDKROOT = macosx; - SWIFT_COMPILATION_MODE = wholemodule; - SWIFT_OPTIMIZATION_LEVEL = "-O"; - }; - name = Release; - }; - 50617D9E23FCE48E0099B055 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CODE_SIGN_ENTITLEMENTS = Secretive/Secretive.entitlements; - CODE_SIGN_IDENTITY = "Apple Development"; - CODE_SIGN_STYLE = Automatic; - COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_ASSET_PATHS = "\"Secretive/Preview Content\""; - DEVELOPMENT_TEAM = Z72PRUAWF6; - ENABLE_HARDENED_RUNTIME = YES; - ENABLE_PREVIEWS = YES; - INFOPLIST_FILE = Secretive/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - ); - MARKETING_VERSION = 1; - PRODUCT_BUNDLE_IDENTIFIER = com.maxgoedjen.Secretive.Host; - PRODUCT_NAME = "$(TARGET_NAME)"; - PROVISIONING_PROFILE_SPECIFIER = ""; - SWIFT_VERSION = 5.0; - }; - name = Debug; - }; - 50617D9F23FCE48E0099B055 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CODE_SIGN_ENTITLEMENTS = Secretive/Secretive.entitlements; - CODE_SIGN_IDENTITY = "Developer ID Application"; - CODE_SIGN_STYLE = Manual; - COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_ASSET_PATHS = "\"Secretive/Preview Content\""; - DEVELOPMENT_TEAM = Z72PRUAWF6; - ENABLE_HARDENED_RUNTIME = YES; - ENABLE_PREVIEWS = YES; - INFOPLIST_FILE = Secretive/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - ); - MARKETING_VERSION = 1; - PRODUCT_BUNDLE_IDENTIFIER = com.maxgoedjen.Secretive.Host; - PRODUCT_NAME = "$(TARGET_NAME)"; - PROVISIONING_PROFILE_SPECIFIER = "Secretive - Host"; - SWIFT_VERSION = 5.0; - }; - name = Release; - }; - 50617DA123FCE48E0099B055 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - BUNDLE_LOADER = "$(TEST_HOST)"; - CODE_SIGN_STYLE = Automatic; - COMBINE_HIDPI_IMAGES = YES; - DEVELOPMENT_TEAM = Z72PRUAWF6; - INFOPLIST_FILE = SecretiveTests/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - "@loader_path/../Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.maxgoedjen.SecretiveTests; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Secretive.app/Contents/MacOS/Secretive"; - }; - name = Debug; - }; - 50617DA223FCE48E0099B055 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - BUNDLE_LOADER = "$(TEST_HOST)"; - CODE_SIGN_STYLE = Automatic; - COMBINE_HIDPI_IMAGES = YES; - DEVELOPMENT_TEAM = Z72PRUAWF6; - INFOPLIST_FILE = SecretiveTests/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - "@loader_path/../Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.maxgoedjen.SecretiveTests; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Secretive.app/Contents/MacOS/Secretive"; - }; - name = Release; - }; - 50617DC023FCE4AB0099B055 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_ENABLE_MODULES = YES; - CODE_SIGN_IDENTITY = "-"; - CODE_SIGN_STYLE = Automatic; - COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DEVELOPMENT_TEAM = Z72PRUAWF6; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - INFOPLIST_FILE = SecretKit/Info.plist; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - "@loader_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.maxgoedjen.Secretive.SecretKit; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - SKIP_INSTALL = YES; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 5.0; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - 50617DC123FCE4AB0099B055 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_ENABLE_MODULES = YES; - CODE_SIGN_IDENTITY = "-"; - CODE_SIGN_STYLE = Automatic; - COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DEVELOPMENT_TEAM = Z72PRUAWF6; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - INFOPLIST_FILE = SecretKit/Info.plist; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - "@loader_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.maxgoedjen.Secretive.SecretKit; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - SKIP_INSTALL = YES; - SWIFT_VERSION = 5.0; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - 50617DC223FCE4AB0099B055 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - CODE_SIGN_STYLE = Automatic; - COMBINE_HIDPI_IMAGES = YES; - DEVELOPMENT_TEAM = Z72PRUAWF6; - INFOPLIST_FILE = SecretKitTests/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - "@loader_path/../Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.maxgoedjen.SecretKitTests; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; - }; - name = Debug; - }; - 50617DC323FCE4AB0099B055 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - CODE_SIGN_STYLE = Automatic; - COMBINE_HIDPI_IMAGES = YES; - DEVELOPMENT_TEAM = Z72PRUAWF6; - INFOPLIST_FILE = SecretKitTests/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - "@loader_path/../Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.maxgoedjen.SecretKitTests; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; - }; - name = Release; - }; - 506773052426F3F400034DED /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_ENABLE_MODULES = YES; - CODE_SIGN_IDENTITY = "-"; - CODE_SIGN_STYLE = Automatic; - COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DEVELOPMENT_TEAM = Z72PRUAWF6; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - INFOPLIST_FILE = Brief/Info.plist; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - "@loader_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.maxgoedjen.Brief; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - SKIP_INSTALL = YES; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 5.0; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - 506773062426F3F400034DED /* Test */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_ENABLE_MODULES = YES; - CODE_SIGN_IDENTITY = "-"; - CODE_SIGN_STYLE = Manual; - COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - INFOPLIST_FILE = Brief/Info.plist; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - "@loader_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.maxgoedjen.Brief; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - SKIP_INSTALL = YES; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 5.0; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Test; - }; - 506773072426F3F400034DED /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_ENABLE_MODULES = YES; - CODE_SIGN_IDENTITY = "-"; - CODE_SIGN_STYLE = Automatic; - COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DEVELOPMENT_TEAM = Z72PRUAWF6; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - INFOPLIST_FILE = Brief/Info.plist; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - "@loader_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.maxgoedjen.Brief; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - SKIP_INSTALL = YES; - SWIFT_VERSION = 5.0; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - 508A5914241EF1A00069DC07 /* Test */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 508A58AB241E121B0069DC07 /* Config.xcconfig */; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 11.0; - MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; - MTL_FAST_MATH = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = macosx; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - }; - name = Test; - }; - 508A5915241EF1A00069DC07 /* Test */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CODE_SIGN_STYLE = Manual; - COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_ASSET_PATHS = "\"Secretive/Preview Content\""; - ENABLE_HARDENED_RUNTIME = NO; - ENABLE_PREVIEWS = YES; - INFOPLIST_FILE = Secretive/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - ); - MARKETING_VERSION = 1; - PRODUCT_BUNDLE_IDENTIFIER = com.maxgoedjen.Secretive.Host; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; - }; - name = Test; - }; - 508A5916241EF1A00069DC07 /* Test */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - BUNDLE_LOADER = "$(TEST_HOST)"; - CODE_SIGN_IDENTITY = "-"; - CODE_SIGN_STYLE = Manual; - COMBINE_HIDPI_IMAGES = YES; - INFOPLIST_FILE = SecretiveTests/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - "@loader_path/../Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.maxgoedjen.SecretiveTests; - PRODUCT_NAME = "$(TARGET_NAME)"; - PROVISIONING_PROFILE_SPECIFIER = ""; - SWIFT_VERSION = 5.0; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Secretive.app/Contents/MacOS/Secretive"; - }; - name = Test; - }; - 508A5917241EF1A00069DC07 /* Test */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CODE_SIGN_STYLE = Manual; - COMBINE_HIDPI_IMAGES = YES; - DEVELOPMENT_ASSET_PATHS = "\"SecretAgent/Preview Content\""; - ENABLE_HARDENED_RUNTIME = YES; - ENABLE_PREVIEWS = YES; - INFOPLIST_FILE = SecretAgent/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - ); - MARKETING_VERSION = 1; - PRODUCT_BUNDLE_IDENTIFIER = com.maxgoedjen.Secretive.SecretAgent; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; - }; - name = Test; - }; - 508A5918241EF1A00069DC07 /* Test */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_ENABLE_MODULES = YES; - CODE_SIGN_IDENTITY = "-"; - CODE_SIGN_STYLE = Manual; - COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - INFOPLIST_FILE = SecretKit/Info.plist; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - "@loader_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.maxgoedjen.Secretive.SecretKit; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - SKIP_INSTALL = YES; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 5.0; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Test; - }; - 508A5919241EF1A00069DC07 /* Test */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - CODE_SIGN_IDENTITY = "-"; - CODE_SIGN_STYLE = Manual; - COMBINE_HIDPI_IMAGES = YES; - INFOPLIST_FILE = SecretKitTests/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - "@loader_path/../Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.maxgoedjen.SecretKitTests; - PRODUCT_NAME = "$(TARGET_NAME)"; - PROVISIONING_PROFILE_SPECIFIER = ""; - SWIFT_VERSION = 5.0; - }; - name = Test; - }; - 508A591A241EF1A00069DC07 /* Test */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_ENABLE_MODULES = YES; - CODE_SIGN_IDENTITY = "-"; - CODE_SIGN_STYLE = Manual; - COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - INFOPLIST_FILE = SecretAgentKit/Info.plist; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - "@loader_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.maxgoedjen.SecretAgentKit; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - SKIP_INSTALL = YES; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 5.0; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Test; - }; - 508A591B241EF1A00069DC07 /* Test */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - CODE_SIGN_IDENTITY = "-"; - CODE_SIGN_STYLE = Manual; - COMBINE_HIDPI_IMAGES = YES; - INFOPLIST_FILE = SecretAgentKitTests/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - "@loader_path/../Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.maxgoedjen.SecretAgentKitTests; - PRODUCT_NAME = "$(TARGET_NAME)"; - PROVISIONING_PROFILE_SPECIFIER = ""; - SWIFT_VERSION = 5.0; - }; - name = Test; - }; - 5091D3272519D56D0049FD9B /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; - CODE_SIGN_STYLE = Automatic; - COMBINE_HIDPI_IMAGES = YES; - DEVELOPMENT_TEAM = Z72PRUAWF6; - INFOPLIST_FILE = BriefTests/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - "@loader_path/../Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.maxgoedjen.BriefTests; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; - }; - name = Debug; - }; - 5091D3282519D56D0049FD9B /* Test */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; - CODE_SIGN_STYLE = Manual; - COMBINE_HIDPI_IMAGES = YES; - DEVELOPMENT_TEAM = ""; - INFOPLIST_FILE = BriefTests/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - "@loader_path/../Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.maxgoedjen.BriefTests; - PRODUCT_NAME = "$(TARGET_NAME)"; - PROVISIONING_PROFILE_SPECIFIER = ""; - SWIFT_VERSION = 5.0; - }; - name = Test; - }; - 5091D3292519D56D0049FD9B /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; - CODE_SIGN_STYLE = Automatic; - COMBINE_HIDPI_IMAGES = YES; - DEVELOPMENT_TEAM = Z72PRUAWF6; - INFOPLIST_FILE = BriefTests/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - "@loader_path/../Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.maxgoedjen.BriefTests; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; - }; - name = Release; - }; - 5099A084240242BA0062B6F2 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_ENABLE_MODULES = YES; - CODE_SIGN_IDENTITY = "-"; - CODE_SIGN_STYLE = Automatic; - COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DEVELOPMENT_TEAM = Z72PRUAWF6; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - INFOPLIST_FILE = SecretAgentKit/Info.plist; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - "@loader_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.maxgoedjen.SecretAgentKit; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - SKIP_INSTALL = YES; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 5.0; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - 5099A085240242BA0062B6F2 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_ENABLE_MODULES = YES; - CODE_SIGN_IDENTITY = "-"; - CODE_SIGN_STYLE = Automatic; - COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DEVELOPMENT_TEAM = Z72PRUAWF6; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - INFOPLIST_FILE = SecretAgentKit/Info.plist; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - "@loader_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.maxgoedjen.SecretAgentKit; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - SKIP_INSTALL = YES; - SWIFT_VERSION = 5.0; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - 5099A087240242BA0062B6F2 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - CODE_SIGN_STYLE = Automatic; - COMBINE_HIDPI_IMAGES = YES; - DEVELOPMENT_TEAM = Z72PRUAWF6; - INFOPLIST_FILE = SecretAgentKitTests/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - "@loader_path/../Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.maxgoedjen.SecretAgentKitTests; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; - }; - name = Debug; - }; - 5099A088240242BA0062B6F2 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - CODE_SIGN_STYLE = Automatic; - COMBINE_HIDPI_IMAGES = YES; - DEVELOPMENT_TEAM = Z72PRUAWF6; - INFOPLIST_FILE = SecretAgentKitTests/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - "@loader_path/../Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.maxgoedjen.SecretAgentKitTests; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; - }; - name = Release; - }; - 50A3B79B24026B7600D209EA /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CODE_SIGN_ENTITLEMENTS = SecretAgent/SecretAgent.entitlements; - CODE_SIGN_STYLE = Automatic; - COMBINE_HIDPI_IMAGES = YES; - DEVELOPMENT_ASSET_PATHS = "\"SecretAgent/Preview Content\""; - DEVELOPMENT_TEAM = Z72PRUAWF6; - ENABLE_HARDENED_RUNTIME = YES; - ENABLE_PREVIEWS = YES; - INFOPLIST_FILE = SecretAgent/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - ); - MARKETING_VERSION = 1; - PRODUCT_BUNDLE_IDENTIFIER = com.maxgoedjen.Secretive.SecretAgent; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; - }; - name = Debug; - }; - 50A3B79C24026B7600D209EA /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CODE_SIGN_ENTITLEMENTS = SecretAgent/SecretAgent.entitlements; - CODE_SIGN_IDENTITY = "Developer ID Application"; - CODE_SIGN_STYLE = Manual; - COMBINE_HIDPI_IMAGES = YES; - DEVELOPMENT_ASSET_PATHS = "\"SecretAgent/Preview Content\""; - DEVELOPMENT_TEAM = Z72PRUAWF6; - ENABLE_HARDENED_RUNTIME = YES; - ENABLE_PREVIEWS = YES; - INFOPLIST_FILE = SecretAgent/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - ); - MARKETING_VERSION = 1; - PRODUCT_BUNDLE_IDENTIFIER = com.maxgoedjen.Secretive.SecretAgent; - PRODUCT_NAME = "$(TARGET_NAME)"; - PROVISIONING_PROFILE_SPECIFIER = "Secretive - Secret Agent"; - SWIFT_VERSION = 5.0; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 50617D7A23FCE48D0099B055 /* Build configuration list for PBXProject "Secretive" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 50617D9B23FCE48E0099B055 /* Debug */, - 508A5914241EF1A00069DC07 /* Test */, - 50617D9C23FCE48E0099B055 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 50617D9D23FCE48E0099B055 /* Build configuration list for PBXNativeTarget "Secretive" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 50617D9E23FCE48E0099B055 /* Debug */, - 508A5915241EF1A00069DC07 /* Test */, - 50617D9F23FCE48E0099B055 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 50617DA023FCE48E0099B055 /* Build configuration list for PBXNativeTarget "SecretiveTests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 50617DA123FCE48E0099B055 /* Debug */, - 508A5916241EF1A00069DC07 /* Test */, - 50617DA223FCE48E0099B055 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 50617DC423FCE4AB0099B055 /* Build configuration list for PBXNativeTarget "SecretKit" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 50617DC023FCE4AB0099B055 /* Debug */, - 508A5918241EF1A00069DC07 /* Test */, - 50617DC123FCE4AB0099B055 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 50617DC523FCE4AB0099B055 /* Build configuration list for PBXNativeTarget "SecretKitTests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 50617DC223FCE4AB0099B055 /* Debug */, - 508A5919241EF1A00069DC07 /* Test */, - 50617DC323FCE4AB0099B055 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 506773042426F3F400034DED /* Build configuration list for PBXNativeTarget "Brief" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 506773052426F3F400034DED /* Debug */, - 506773062426F3F400034DED /* Test */, - 506773072426F3F400034DED /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 5091D32A2519D56D0049FD9B /* Build configuration list for PBXNativeTarget "BriefTests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 5091D3272519D56D0049FD9B /* Debug */, - 5091D3282519D56D0049FD9B /* Test */, - 5091D3292519D56D0049FD9B /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 5099A083240242BA0062B6F2 /* Build configuration list for PBXNativeTarget "SecretAgentKit" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 5099A084240242BA0062B6F2 /* Debug */, - 508A591A241EF1A00069DC07 /* Test */, - 5099A085240242BA0062B6F2 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 5099A086240242BA0062B6F2 /* Build configuration list for PBXNativeTarget "SecretAgentKitTests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 5099A087240242BA0062B6F2 /* Debug */, - 508A591B241EF1A00069DC07 /* Test */, - 5099A088240242BA0062B6F2 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 50A3B79A24026B7600D209EA /* Build configuration list for PBXNativeTarget "SecretAgent" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 50A3B79B24026B7600D209EA /* Debug */, - 508A5917241EF1A00069DC07 /* Test */, - 50A3B79C24026B7600D209EA /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 50617D7723FCE48D0099B055 /* Project object */; -} diff --git a/Secretive.xcodeproj/xcshareddata/xcschemes/SecretAgentKit.xcscheme b/Secretive.xcodeproj/xcshareddata/xcschemes/SecretAgentKit.xcscheme deleted file mode 100644 index 2b77bef..0000000 --- a/Secretive.xcodeproj/xcshareddata/xcschemes/SecretAgentKit.xcscheme +++ /dev/null @@ -1,85 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Secretive.xcodeproj/xcshareddata/xcschemes/SecretKit.xcscheme b/Secretive.xcodeproj/xcshareddata/xcschemes/SecretKit.xcscheme deleted file mode 100644 index 77c8c59..0000000 --- a/Secretive.xcodeproj/xcshareddata/xcschemes/SecretKit.xcscheme +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SecretiveTests/Info.plist b/SecretiveTests/Info.plist deleted file mode 100644 index 64d65ca..0000000 --- a/SecretiveTests/Info.plist +++ /dev/null @@ -1,22 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - $(PRODUCT_BUNDLE_PACKAGE_TYPE) - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - - diff --git a/Config/Config.xcconfig b/Sources/Config/Config.xcconfig similarity index 100% rename from Config/Config.xcconfig rename to Sources/Config/Config.xcconfig diff --git a/Sources/Config/Secretive.xctestplan b/Sources/Config/Secretive.xctestplan new file mode 100644 index 0000000..fb2bac9 --- /dev/null +++ b/Sources/Config/Secretive.xctestplan @@ -0,0 +1,26 @@ +{ + "configurations" : [ + { + "id" : "5896AE5A-6D5A-48D3-837B-668B646A3273", + "name" : "Configuration 1", + "options" : { + + } + } + ], + "defaultOptions" : { + + }, + "testTargets" : [ + { + "enabled" : false, + "parallelizable" : true, + "target" : { + "containerPath" : "container:Secretive.xcodeproj", + "identifier" : "50617D9323FCE48E0099B055", + "name" : "SecretiveTests" + } + } + ], + "version" : 1 +} diff --git a/Sources/Packages/Package.swift b/Sources/Packages/Package.swift new file mode 100644 index 0000000..c5bc4c0 --- /dev/null +++ b/Sources/Packages/Package.swift @@ -0,0 +1,70 @@ +// swift-tools-version:5.5 +// The swift-tools-version declares the minimum version of Swift required to build this package. + +import PackageDescription + +let package = Package( + name: "SecretivePackages", + platforms: [ + .macOS(.v11) + ], + products: [ + .library( + name: "SecretKit", + targets: ["SecretKit"]), + .library( + name: "SecureEnclaveSecretKit", + targets: ["SecureEnclaveSecretKit"]), + .library( + name: "SmartCardSecretKit", + targets: ["SmartCardSecretKit"]), + .library( + name: "SecretAgentKit", + targets: ["SecretAgentKit"]), + .library( + name: "SecretAgentKitHeaders", + targets: ["SecretAgentKitHeaders"]), + .library( + name: "Brief", + targets: ["Brief"]), + ], + dependencies: [ + ], + targets: [ + .target( + name: "SecretKit", + dependencies: [] + ), + .testTarget( + name: "SecretKitTests", + dependencies: ["SecretKit", "SecureEnclaveSecretKit", "SmartCardSecretKit"] + ), + .target( + name: "SecureEnclaveSecretKit", + dependencies: ["SecretKit"] + ), + .target( + name: "SmartCardSecretKit", + dependencies: ["SecretKit"] + ), + .target( + name: "SecretAgentKit", + dependencies: ["SecretKit", "SecretAgentKitHeaders"] + ), + .systemLibrary( + name: "SecretAgentKitHeaders" + ), + .testTarget( + name: "SecretAgentKitTests", + dependencies: ["SecretAgentKit"]) + , + .target( + name: "Brief", + dependencies: [] + ), + .testTarget( + name: "BriefTests", + dependencies: ["Brief"] + ), + ] +) diff --git a/Sources/Packages/Sources/Brief/Documentation.docc/Documentation.md b/Sources/Packages/Sources/Brief/Documentation.docc/Documentation.md new file mode 100644 index 0000000..fe1562c --- /dev/null +++ b/Sources/Packages/Sources/Brief/Documentation.docc/Documentation.md @@ -0,0 +1,15 @@ +# ``Brief`` + +Brief is a collection of protocols and concrete implmentation describing updates. + +## Topics + +### Versioning + +- ``SemVer`` +- ``Release`` + +### Updater + +- ``UpdaterProtocol`` +- ``Updater`` diff --git a/Sources/Packages/Sources/Brief/Release.swift b/Sources/Packages/Sources/Brief/Release.swift new file mode 100644 index 0000000..847dffe --- /dev/null +++ b/Sources/Packages/Sources/Brief/Release.swift @@ -0,0 +1,80 @@ +import Foundation + +/// A release is a representation of a downloadable update. +public struct Release: Codable { + + /// The user-facing name of the release. Typically "Secretive 1.2.3" + public let name: String + + /// A boolean describing whether or not the release is a prerelase build. + public let prerelease: Bool + + /// A URL pointing to the HTML page for the release. + public let html_url: URL + + /// A user-facing description of the contents of the update. + public let body: String + + /// Initializes a Release. + /// - Parameters: + /// - name: The user-facing name of the release. + /// - prerelease: A boolean describing whether or not the release is a prerelase build. + /// - html_url: A URL pointing to the HTML page for the release. + /// - body: A user-facing description of the contents of the update. + public init(name: String, prerelease: Bool, html_url: URL, body: String) { + self.name = name + self.prerelease = prerelease + self.html_url = html_url + self.body = body + } + +} + +extension Release: Identifiable { + + public var id: String { + html_url.absoluteString + } + +} + +extension Release: Comparable { + + public static func < (lhs: Release, rhs: Release) -> Bool { + lhs.version < rhs.version + } + +} + +extension Release { + + /// A boolean describing whether or not the release contains critical security content. + /// - Note: this is determined by the presence of the phrase "Critical Security Update" in the ``body``. + /// - Warning: If this property is true, the user will not be able to dismiss UI or reminders associated with the update. + public var critical: Bool { + body.contains(Constants.securityContent) + } + + /// A ``SemVer`` representation of the version number of the release. + public var version: SemVer { + SemVer(name) + } + + /// The minimum macOS version required to run the update. + public var minimumOSVersion: SemVer { + guard let range = body.range(of: "Minimum macOS Version"), + let numberStart = body.rangeOfCharacter(from: CharacterSet.decimalDigits, options: [], range: range.upperBound.. Bool { + for (latest, current) in zip(lhs.versionNumbers, rhs.versionNumbers) { + if latest < current { + return true + } else if latest > current { + return false + } + } + return false + } + + +} diff --git a/Sources/Packages/Sources/Brief/Updater.swift b/Sources/Packages/Sources/Brief/Updater.swift new file mode 100644 index 0000000..c71e538 --- /dev/null +++ b/Sources/Packages/Sources/Brief/Updater.swift @@ -0,0 +1,97 @@ +import Foundation +import Combine + +/// A concrete implementation of ``UpdaterProtocol`` which considers the current release and OS version. +public class Updater: ObservableObject, UpdaterProtocol { + + @Published public var update: Release? + public let testBuild: Bool + + /// The current OS version. + private let osVersion: SemVer + /// The current version of the app that is running. + private let currentVersion: SemVer + + /// Initializes an Updater. + /// - Parameters: + /// - checkOnLaunch: A boolean describing whether the Updater should check for available updates on launch. + /// - checkFrequency: The interval at which the Updater should check for updates. Subject to a tolerance of 1 hour. + /// - osVersion: The current OS version. + /// - currentVersion: The current version of the app that is running. + public init(checkOnLaunch: Bool, checkFrequency: TimeInterval = Measurement(value: 24, unit: UnitDuration.hours).converted(to: .seconds).value, osVersion: SemVer = SemVer(ProcessInfo.processInfo.operatingSystemVersion), currentVersion: SemVer = SemVer(Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? "0.0.0")) { + self.osVersion = osVersion + self.currentVersion = currentVersion + testBuild = currentVersion == SemVer("0.0.0") + if checkOnLaunch { + // Don't do a launch check if the user hasn't seen the setup prompt explaining updater yet. + checkForUpdates() + } + let timer = Timer.scheduledTimer(withTimeInterval: checkFrequency, repeats: true) { _ in + self.checkForUpdates() + } + timer.tolerance = 60*60 + } + + /// Manually trigger an update check. + public func checkForUpdates() { + URLSession.shared.dataTask(with: Constants.updateURL) { data, _, _ in + guard let data = data else { return } + guard let releases = try? JSONDecoder().decode([Release].self, from: data) else { return } + self.evaluate(releases: releases) + }.resume() + } + + /// Ignores a specified release. `update` will be nil if the user has ignored the latest available release. + /// - Parameter release: The release to ignore. + public func ignore(release: Release) { + guard !release.critical else { return } + defaults.set(true, forKey: release.name) + DispatchQueue.main.async { + self.update = nil + } + } + +} + +extension Updater { + + /// Evaluates the available downloadable releases, and selects the newest non-prerelease release that the user is able to run. + /// - Parameter releases: An array of ``Release`` objects. + func evaluate(releases: [Release]) { + guard let release = releases + .sorted() + .reversed() + .filter({ !$0.prerelease }) + .first(where: { $0.minimumOSVersion <= osVersion }) else { return } + guard !userIgnored(release: release) else { return } + guard !release.prerelease else { return } + let latestVersion = SemVer(release.name) + if latestVersion > currentVersion { + DispatchQueue.main.async { + self.update = release + } + } + } + + /// Checks whether the user has ignored a release. + /// - Parameter release: The release to check. + /// - Returns: A boolean describing whether the user has ignored the release. Will always be false if the release is critical. + func userIgnored(release: Release) -> Bool { + guard !release.critical else { return false } + return defaults.bool(forKey: release.name) + } + + /// The user defaults used to store user ignore state. + var defaults: UserDefaults { + UserDefaults(suiteName: "com.maxgoedjen.Secretive.updater.ignorelist")! + } + +} + +extension Updater { + + enum Constants { + static let updateURL = URL(string: "https://api.github.com/repos/maxgoedjen/secretive/releases")! + } + +} diff --git a/Sources/Packages/Sources/Brief/UpdaterProtocol.swift b/Sources/Packages/Sources/Brief/UpdaterProtocol.swift new file mode 100644 index 0000000..1930a0f --- /dev/null +++ b/Sources/Packages/Sources/Brief/UpdaterProtocol.swift @@ -0,0 +1,12 @@ +import Foundation + +/// A protocol for retreiving the latest available version of an app. +public protocol UpdaterProtocol: ObservableObject { + + /// The latest update + var update: Release? { get } + /// A boolean describing whether or not the current build of the app is a "test" build (ie, a debug build or otherwise special build) + var testBuild: Bool { get } + +} + diff --git a/SecretAgentKit/Agent.swift b/Sources/Packages/Sources/SecretAgentKit/Agent.swift similarity index 81% rename from SecretAgentKit/Agent.swift rename to Sources/Packages/Sources/SecretAgentKit/Agent.swift index 3e69037..68fae7c 100644 --- a/SecretAgentKit/Agent.swift +++ b/Sources/Packages/Sources/SecretAgentKit/Agent.swift @@ -4,6 +4,7 @@ import OSLog import SecretKit import AppKit +/// The `Agent` is an implementation of an SSH agent. It manages coordination and access between a socket, traces requests, notifies witnesses and passes requests to stores. public class Agent { private let storeList: SecretStoreList @@ -11,6 +12,10 @@ public class Agent { private let writer = OpenSSHKeyWriter() private let requestTracer = SigningRequestTracer() + /// Initializes an agent with a store list and a witness. + /// - Parameters: + /// - storeList: The `SecretStoreList` to make available. + /// - witness: A witness to notify of requests. public init(storeList: SecretStoreList, witness: SigningWitness? = nil) { Logger().debug("Agent is running") self.storeList = storeList @@ -21,10 +26,14 @@ public class Agent { extension Agent { + /// Handles an incoming request. + /// - Parameters: + /// - reader: A ``FileHandleReader`` to read the content of the request. + /// - writer: A ``FileHandleWriter`` to write the response to. public func handle(reader: FileHandleReader, writer: FileHandleWriter) { Logger().debug("Agent handling new data") - let data = reader.availableData - guard !data.isEmpty else { return } + let data = Data(reader.availableData) + guard data.count > 4 else { return } let requestTypeInt = data[4] guard let requestType = SSHAgent.RequestType(rawValue: requestTypeInt) else { writer.write(OpenSSHKeyWriter().lengthAndData(of: SSHAgent.ResponseType.agentFailure.data)) @@ -64,6 +73,8 @@ extension Agent { extension Agent { + /// Lists the identities available for signing operations + /// - Returns: An OpenSSH formatted Data payload listing the identities available for signing operations. func identities() -> Data { let secrets = storeList.stores.flatMap(\.secrets) var count = UInt32(secrets.count).bigEndian @@ -80,6 +91,11 @@ extension Agent { return countData + keyData } + /// Notifies witnesses of a pending signature request, and performs the signing operation if none object. + /// - Parameters: + /// - data: The data to sign. + /// - provenance: A ``SecretKit.SigningRequestProvenance`` object describing the origin of the request. + /// - Returns: An OpenSSH formatted Data payload containing the signed data response. func sign(data: Data, provenance: SigningRequestProvenance) throws -> Data { let reader = OpenSSHReader(data: data) let hash = reader.readNextChunk() @@ -147,6 +163,9 @@ extension Agent { extension Agent { + /// Finds a ``Secret`` matching a specified hash whos signature was requested. + /// - Parameter hash: The hash to match against. + /// - Returns: A ``Secret`` and the ``SecretStore`` containing it, if a match is found. func secret(matching hash: Data) -> (AnySecretStore, AnySecret)? { storeList.stores.compactMap { store -> (AnySecretStore, AnySecret)? in let allMatching = store.secrets.filter { secret in @@ -164,6 +183,7 @@ extension Agent { extension Agent { + /// An error involving agent operations.. enum AgentError: Error { case unhandledType case noMatchingKey diff --git a/Sources/Packages/Sources/SecretAgentKit/Documentation.docc/Documentation.md b/Sources/Packages/Sources/SecretAgentKit/Documentation.docc/Documentation.md new file mode 100644 index 0000000..a135003 --- /dev/null +++ b/Sources/Packages/Sources/SecretAgentKit/Documentation.docc/Documentation.md @@ -0,0 +1,23 @@ +# ``SecretAgentKit`` + +SecretAgentKit is a collection of types that allow SecretAgent to conform to the SSH agent protocol. + +## Topics + +### Agent + +- ``Agent`` + +### Protocol + +- ``SSHAgent`` + +### Request Notification + +- ``SigningWitness`` + +### Socket Operations + +- ``SocketController`` +- ``FileHandleReader`` +- ``FileHandleWriter`` diff --git a/SecretAgentKit/FileHandleProtocols.swift b/Sources/Packages/Sources/SecretAgentKit/FileHandleProtocols.swift similarity index 65% rename from SecretAgentKit/FileHandleProtocols.swift rename to Sources/Packages/Sources/SecretAgentKit/FileHandleProtocols.swift index ba806ff..c5035a0 100644 --- a/SecretAgentKit/FileHandleProtocols.swift +++ b/Sources/Packages/Sources/SecretAgentKit/FileHandleProtocols.swift @@ -1,15 +1,21 @@ import Foundation +/// Protocol abstraction of the reading aspects of FileHandle. public protocol FileHandleReader { + /// Gets data that is available for reading. var availableData: Data { get } + /// A file descriptor of the handle. var fileDescriptor: Int32 { get } + /// The process ID of the process coonnected to the other end of the FileHandle. var pidOfConnectedProcess: Int32 { get } } +/// Protocol abstraction of the writing aspects of FileHandle. public protocol FileHandleWriter { + /// Writes data to the handle. func write(_ data: Data) } diff --git a/SecretAgentKit/PublicKeyStandinFileController.swift b/Sources/Packages/Sources/SecretAgentKit/PublicKeyStandinFileController.swift similarity index 100% rename from SecretAgentKit/PublicKeyStandinFileController.swift rename to Sources/Packages/Sources/SecretAgentKit/PublicKeyStandinFileController.swift diff --git a/SecretAgentKit/SSHAgentProtocol.swift b/Sources/Packages/Sources/SecretAgentKit/SSHAgentProtocol.swift similarity index 71% rename from SecretAgentKit/SSHAgentProtocol.swift rename to Sources/Packages/Sources/SecretAgentKit/SSHAgentProtocol.swift index 3de8ef5..bd3cefb 100644 --- a/SecretAgentKit/SSHAgentProtocol.swift +++ b/Sources/Packages/Sources/SecretAgentKit/SSHAgentProtocol.swift @@ -1,10 +1,13 @@ import Foundation +/// A namespace for the SSH Agent Protocol, as described in https://tools.ietf.org/id/draft-miller-ssh-agent-01.html public enum SSHAgent {} extension SSHAgent { + /// The type of the SSH Agent Request, as described in https://tools.ietf.org/id/draft-miller-ssh-agent-01.html#rfc.section.5.1 public enum RequestType: UInt8, CustomDebugStringConvertible { + case requestIdentities = 11 case signRequest = 13 @@ -18,7 +21,9 @@ extension SSHAgent { } } + /// The type of the SSH Agent Response, as described in https://tools.ietf.org/id/draft-miller-ssh-agent-01.html#rfc.section.5.1 public enum ResponseType: UInt8, CustomDebugStringConvertible { + case agentFailure = 5 case agentIdentitiesAnswer = 12 case agentSignResponse = 14 diff --git a/SecretAgentKit/SigningRequestTracer.swift b/Sources/Packages/Sources/SecretAgentKit/SigningRequestTracer.swift similarity index 69% rename from SecretAgentKit/SigningRequestTracer.swift rename to Sources/Packages/Sources/SecretAgentKit/SigningRequestTracer.swift index 54923ce..46917f8 100644 --- a/SecretAgentKit/SigningRequestTracer.swift +++ b/Sources/Packages/Sources/SecretAgentKit/SigningRequestTracer.swift @@ -2,12 +2,17 @@ import Foundation import AppKit import Security import SecretKit +import SecretAgentKitHeaders +/// An object responsible for generating ``SecretKit.SigningRequestProvenance`` objects. struct SigningRequestTracer { } extension SigningRequestTracer { + /// Generates a ``SecretKit.SigningRequestProvenance`` from a ``FileHandleReader``. + /// - Parameter fileHandleReader: The reader involved in processing the request. + /// - Returns: A ``SecretKit.SigningRequestProvenance`` describing the origin of the request. func provenance(from fileHandleReader: FileHandleReader) -> SigningRequestProvenance { let firstInfo = process(from: fileHandleReader.pidOfConnectedProcess) @@ -18,6 +23,9 @@ extension SigningRequestTracer { return provenance } + /// Generates a `kinfo_proc` representation of the provided process ID. + /// - Parameter pid: The process ID to look up. + /// - Returns: a `kinfo_proc` struct describing the process ID. func pidAndNameInfo(from pid: Int32) -> kinfo_proc { var len = MemoryLayout.size let infoPointer = UnsafeMutableRawPointer.allocate(byteCount: len, alignment: 1) @@ -26,6 +34,9 @@ extension SigningRequestTracer { return infoPointer.load(as: kinfo_proc.self) } + /// Generates a ``SecretKit.SigningRequestProvenance.Process`` from a provided process ID. + /// - Parameter pid: The process ID to look up. + /// - Returns: A ``SecretKit.SigningRequestProvenance.Process`` describing the process. func process(from pid: Int32) -> SigningRequestProvenance.Process { var pidAndNameInfo = self.pidAndNameInfo(from: pid) let ppid = pidAndNameInfo.kp_eproc.e_ppid != 0 ? pidAndNameInfo.kp_eproc.e_ppid : nil @@ -40,6 +51,9 @@ extension SigningRequestTracer { return SigningRequestProvenance.Process(pid: pid, processName: procName, appName: appName(for: pid), iconURL: iconURL(for: pid), path: path, validSignature: valid, parentPID: ppid) } + /// Looks up the URL for the icon of a process ID, if it has one. + /// - Parameter pid: The process ID to look up. + /// - Returns: A URL to the icon, if the process has one. func iconURL(for pid: Int32) -> URL? { do { if let app = NSRunningApplication(processIdentifier: pid), let icon = app.icon?.tiffRepresentation { @@ -53,6 +67,9 @@ extension SigningRequestTracer { return nil } + /// Looks up the application name of a process ID, if it has one. + /// - Parameter pid: The process ID to look up. + /// - Returns: The process's display name, if the process has one. func appName(for pid: Int32) -> String? { NSRunningApplication(processIdentifier: pid)?.localizedName } diff --git a/Sources/Packages/Sources/SecretAgentKit/SigningWitness.swift b/Sources/Packages/Sources/SecretAgentKit/SigningWitness.swift new file mode 100644 index 0000000..ff1ae33 --- /dev/null +++ b/Sources/Packages/Sources/SecretAgentKit/SigningWitness.swift @@ -0,0 +1,23 @@ +import Foundation +import SecretKit + +/// A protocol that allows conformers to be notified of access to secrets, and optionally prevent access. +public protocol SigningWitness { + + /// A ridiculously named method that notifies the callee that a signing operation is about to be performed using a secret. The callee may `throw` an `Error` to prevent access from occurring. + /// - Parameters: + /// - secret: The `Secret` that will be used to sign the request. + /// - store: The `Store` being asked to sign the request.. + /// - provenance: A `SigningRequestProvenance` object describing the origin of the request. + /// - Note: This method being called does not imply that the requst has been authorized. If a secret requires authentication, authentication will still need to be performed by the user before the request will be performed. If the user declines or fails to authenticate, the request will fail. + func speakNowOrForeverHoldYourPeace(forAccessTo secret: AnySecret, from store: AnySecretStore, by provenance: SigningRequestProvenance) throws + + /// Notifies the callee that a signing operation has been performed for a given secret. + /// - Parameters: + /// - secret: The `Secret` that will was used to sign the request. + /// - store: The `Store` that signed the request.. + /// - provenance: A `SigningRequestProvenance` object describing the origin of the request. + /// - requiredAuthentication: A boolean describing whether or not authentication was required for the request. + func witness(accessTo secret: AnySecret, from store: AnySecretStore, by provenance: SigningRequestProvenance, requiredAuthentication: Bool) throws + +} diff --git a/SecretAgentKit/SocketController.swift b/Sources/Packages/Sources/SecretAgentKit/SocketController.swift similarity index 73% rename from SecretAgentKit/SocketController.swift rename to Sources/Packages/Sources/SecretAgentKit/SocketController.swift index 0c916c3..26e4c79 100644 --- a/SecretAgentKit/SocketController.swift +++ b/Sources/Packages/Sources/SecretAgentKit/SocketController.swift @@ -1,12 +1,16 @@ import Foundation import OSLog +/// A controller that manages socket configuration and request dispatching. public class SocketController { + /// The active FileHandle. private var fileHandle: FileHandle? - private var port: SocketPort? + /// A handler that will be notified when a new read/write handle is available. public var handler: ((FileHandleReader, FileHandleWriter) -> Void)? + /// Initializes a socket controller with a specified path. + /// - Parameter path: The path to use as a socket. public init(path: String) { Logger().debug("Socket controller setting up at \(path)") if let _ = try? FileManager.default.removeItem(atPath: path) { @@ -15,19 +19,23 @@ public class SocketController { let exists = FileManager.default.fileExists(atPath: path) assert(!exists) Logger().debug("Socket controller path is clear") - port = socketPort(at: path) configureSocket(at: path) Logger().debug("Socket listening at \(path)") } + /// Configures the socket and a corresponding FileHandle. + /// - Parameter path: The path to use as a socket. func configureSocket(at path: String) { - guard let port = port else { return } + let port = socketPort(at: path) fileHandle = FileHandle(fileDescriptor: port.socket, closeOnDealloc: true) NotificationCenter.default.addObserver(self, selector: #selector(handleConnectionAccept(notification:)), name: .NSFileHandleConnectionAccepted, object: nil) NotificationCenter.default.addObserver(self, selector: #selector(handleConnectionDataAvailable(notification:)), name: .NSFileHandleDataAvailable, object: nil) fileHandle?.acceptConnectionInBackgroundAndNotify(forModes: [RunLoop.current.currentMode!]) } + /// Creates a SocketPort for a path. + /// - Parameter path: The path to use as a socket. + /// - Returns: A configured SocketPort. func socketPort(at path: String) -> SocketPort { var addr = sockaddr_un() addr.sun_family = sa_family_t(AF_UNIX) @@ -49,6 +57,8 @@ public class SocketController { return SocketPort(protocolFamily: AF_UNIX, socketType: SOCK_STREAM, protocol: 0, address: data)! } + /// Handles a new connection being accepted, invokes the handler, and prepares to accept new connections. + /// - Parameter notification: A `Notification` that triggered the call. @objc func handleConnectionAccept(notification: Notification) { Logger().debug("Socket controller accepted connection") guard let new = notification.userInfo?[NSFileHandleNotificationFileHandleItem] as? FileHandle else { return } @@ -57,6 +67,8 @@ public class SocketController { fileHandle?.acceptConnectionInBackgroundAndNotify(forModes: [RunLoop.current.currentMode!]) } + /// Handles a new connection providing data and invokes the handler callback. + /// - Parameter notification: A `Notification` that triggered the call. @objc func handleConnectionDataAvailable(notification: Notification) { Logger().debug("Socket controller has new data available") guard let new = notification.object as? FileHandle else { return } diff --git a/Sources/Packages/Sources/SecretAgentKitHeaders/Stub.swift b/Sources/Packages/Sources/SecretAgentKitHeaders/Stub.swift new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/Sources/Packages/Sources/SecretAgentKitHeaders/Stub.swift @@ -0,0 +1 @@ + diff --git a/SecretAgentKit/SecretAgentKit.h b/Sources/Packages/Sources/SecretAgentKitHeaders/include/SecretAgentKit.h similarity index 100% rename from SecretAgentKit/SecretAgentKit.h rename to Sources/Packages/Sources/SecretAgentKitHeaders/include/SecretAgentKit.h diff --git a/Sources/Packages/Sources/SecretAgentKitHeaders/module.modulemap b/Sources/Packages/Sources/SecretAgentKitHeaders/module.modulemap new file mode 100644 index 0000000..7fceeab --- /dev/null +++ b/Sources/Packages/Sources/SecretAgentKitHeaders/module.modulemap @@ -0,0 +1,4 @@ +module SecretAgentKitHeaders [system] { + header "include/SecretAgentKit.h" + export * +} diff --git a/Sources/Packages/Sources/SecretKit/Documentation.docc/Documentation.md b/Sources/Packages/Sources/SecretKit/Documentation.docc/Documentation.md new file mode 100644 index 0000000..8555c39 --- /dev/null +++ b/Sources/Packages/Sources/SecretKit/Documentation.docc/Documentation.md @@ -0,0 +1,31 @@ +# ``SecretKit`` + +SecretKit is a collection of protocols describing secrets and stores. + +## Topics + +### Base Protocols + +- ``Secret`` +- ``SecretStore`` +- ``SecretStoreModifiable`` + +### Store List + +- ``SecretStoreList`` + +### Type Erasers + +- ``AnySecret`` +- ``AnySecretStore`` +- ``AnySecretStoreModifiable`` + +### OpenSSH + +- ``OpenSSHKeyWriter`` +- ``OpenSSHReader`` + +### Signing Process + +- ``SignedData`` +- ``SigningRequestProvenance`` diff --git a/SecretKit/Common/Erasers/AnySecret.swift b/Sources/Packages/Sources/SecretKit/Erasers/AnySecret.swift similarity index 98% rename from SecretKit/Common/Erasers/AnySecret.swift rename to Sources/Packages/Sources/SecretKit/Erasers/AnySecret.swift index a3c0415..b5a748d 100644 --- a/SecretKit/Common/Erasers/AnySecret.swift +++ b/Sources/Packages/Sources/SecretKit/Erasers/AnySecret.swift @@ -1,5 +1,6 @@ import Foundation +/// Type eraser for Secret. public struct AnySecret: Secret { let base: Any diff --git a/SecretKit/Common/Erasers/AnySecretStore.swift b/Sources/Packages/Sources/SecretKit/Erasers/AnySecretStore.swift similarity index 98% rename from SecretKit/Common/Erasers/AnySecretStore.swift rename to Sources/Packages/Sources/SecretKit/Erasers/AnySecretStore.swift index 7b565fe..305ecd2 100644 --- a/SecretKit/Common/Erasers/AnySecretStore.swift +++ b/Sources/Packages/Sources/SecretKit/Erasers/AnySecretStore.swift @@ -1,6 +1,7 @@ import Foundation import Combine +/// Type eraser for SecretStore. public class AnySecretStore: SecretStore { let base: Any diff --git a/SecretKit/Common/OpenSSH/OpenSSHKeyWriter.swift b/Sources/Packages/Sources/SecretKit/OpenSSH/OpenSSHKeyWriter.swift similarity index 61% rename from SecretKit/Common/OpenSSH/OpenSSHKeyWriter.swift rename to Sources/Packages/Sources/SecretKit/OpenSSH/OpenSSHKeyWriter.swift index a577476..223b935 100644 --- a/SecretKit/Common/OpenSSH/OpenSSHKeyWriter.swift +++ b/Sources/Packages/Sources/SecretKit/OpenSSH/OpenSSHKeyWriter.swift @@ -1,24 +1,31 @@ import Foundation import CryptoKit -// For the moment, only supports ecdsa-sha2-nistp256 and ecdsa-sha2-nistp386 keys +/// Generates OpenSSH representations of Secrets. public struct OpenSSHKeyWriter { + /// Initializes the writer. public init() { } + /// Generates an OpenSSH data payload identifying the secret. + /// - Returns: OpenSSH data payload identifying the secret. public func data(secret: SecretType) -> Data { lengthAndData(of: curveType(for: secret.algorithm, length: secret.keySize).data(using: .utf8)!) + lengthAndData(of: curveIdentifier(for: secret.algorithm, length: secret.keySize).data(using: .utf8)!) + lengthAndData(of: secret.publicKey) } + /// Generates an OpenSSH string representation of the secret. + /// - Returns: OpenSSH string representation of the secret. public func openSSHString(secret: SecretType, comment: String? = nil) -> String { [curveType(for: secret.algorithm, length: secret.keySize), data(secret: secret).base64EncodedString(), comment] .compactMap { $0 } .joined(separator: " ") } + /// Generates an OpenSSH SHA256 fingerprint string. + /// - Returns: OpenSSH SHA256 fingerprint string. public func openSSHSHA256Fingerprint(secret: SecretType) -> String { // OpenSSL format seems to strip the padding at the end. let base64 = Data(SHA256.hash(data: data(secret: secret))).base64EncodedString() @@ -27,6 +34,8 @@ public struct OpenSSHKeyWriter { return "SHA256:\(cleaned)" } + /// Generates an OpenSSH MD5 fingerprint string. + /// - Returns: OpenSSH MD5 fingerprint string. public func openSSHMD5Fingerprint(secret: SecretType) -> String { Insecure.MD5.hash(data: data(secret: secret)) .compactMap { ("0" + String($0, radix: 16, uppercase: false)).suffix(2) } @@ -37,23 +46,37 @@ public struct OpenSSHKeyWriter { extension OpenSSHKeyWriter { + /// Creates an OpenSSH protocol style data object, which has a length header, followed by the data payload. + /// - Parameter data: The data payload. + /// - Returns: OpenSSH data. public func lengthAndData(of data: Data) -> Data { let rawLength = UInt32(data.count) var endian = rawLength.bigEndian return Data(bytes: &endian, count: UInt32.bitWidth/8) + data } - public func curveIdentifier(for algorithm: Algorithm, length: Int) -> String { - switch algorithm { - case .ellipticCurve: - return "nistp" + String(describing: length) - } - } - + /// The fully qualified OpenSSH identifier for the algorithm. + /// - Parameters: + /// - algorithm: The algorithm to identify. + /// - length: The key length of the algorithm. + /// - Returns: The OpenSSH identifier for the algorithm. public func curveType(for algorithm: Algorithm, length: Int) -> String { switch algorithm { case .ellipticCurve: return "ecdsa-sha2-nistp" + String(describing: length) } } + + /// The OpenSSH identifier for an algorithm. + /// - Parameters: + /// - algorithm: The algorithm to identify. + /// - length: The key length of the algorithm. + /// - Returns: The OpenSSH identifier for the algorithm. + private func curveIdentifier(for algorithm: Algorithm, length: Int) -> String { + switch algorithm { + case .ellipticCurve: + return "nistp" + String(describing: length) + } + } + } diff --git a/SecretKit/Common/OpenSSH/OpenSSHReader.swift b/Sources/Packages/Sources/SecretKit/OpenSSH/OpenSSHReader.swift similarity index 73% rename from SecretKit/Common/OpenSSH/OpenSSHReader.swift rename to Sources/Packages/Sources/SecretKit/OpenSSH/OpenSSHReader.swift index 5e89055..027b63d 100644 --- a/SecretKit/Common/OpenSSH/OpenSSHReader.swift +++ b/Sources/Packages/Sources/SecretKit/OpenSSH/OpenSSHReader.swift @@ -1,13 +1,18 @@ import Foundation +/// Reads OpenSSH protocol data. public class OpenSSHReader { var remaining: Data + /// Initialize the reader with an OpenSSH data payload. + /// - Parameter data: The data to read. public init(data: Data) { remaining = Data(data) } + /// Reads the next chunk of data from the playload. + /// - Returns: The next chunk of data. public func readNextChunk() -> Data { let lengthRange = 0..<(UInt32.bitWidth/8) let lengthChunk = remaining[lengthRange] diff --git a/SecretKit/Common/SecretStoreList.swift b/Sources/Packages/Sources/SecretKit/SecretStoreList.swift similarity index 72% rename from SecretKit/Common/SecretStoreList.swift rename to Sources/Packages/Sources/SecretKit/SecretStoreList.swift index 0263a76..57fed98 100644 --- a/SecretKit/Common/SecretStoreList.swift +++ b/Sources/Packages/Sources/SecretKit/SecretStoreList.swift @@ -1,25 +1,32 @@ import Foundation import Combine +/// A "Store Store," which holds a list of type-erased stores. public class SecretStoreList: ObservableObject { + /// The Stores managed by the SecretStoreList. @Published public var stores: [AnySecretStore] = [] + /// A modifiable store, if one is available. @Published public var modifiableStore: AnySecretStoreModifiable? private var sinks: [AnyCancellable] = [] + /// Initializes a SecretStoreList. public init() { } + /// Adds a non-type-erased SecretStore to the list. public func add(store: SecretStoreType) { addInternal(store: AnySecretStore(store)) } + /// Adds a non-type-erased modifiable SecretStore. public func add(store: SecretStoreType) { let modifiable = AnySecretStoreModifiable(modifiable: store) modifiableStore = modifiable addInternal(store: modifiable) } + /// A boolean describing whether there are any Stores available. public var anyAvailable: Bool { stores.reduce(false, { $0 || $1.isAvailable }) } diff --git a/SecretKit/Common/Types/Secret.swift b/Sources/Packages/Sources/SecretKit/Types/Secret.swift similarity index 50% rename from SecretKit/Common/Types/Secret.swift rename to Sources/Packages/Sources/SecretKit/Types/Secret.swift index db71045..154a2d3 100644 --- a/SecretKit/Common/Types/Secret.swift +++ b/Sources/Packages/Sources/SecretKit/Types/Secret.swift @@ -1,14 +1,26 @@ +import Foundation + +/// The base protocol for describing a Secret public protocol Secret: Identifiable, Hashable { + /// A user-facing string identifying the Secret. var name: String { get } + /// The algorithm this secret uses. var algorithm: Algorithm { get } + /// The key size for the secret. var keySize: Int { get } + /// The public key data for the secret. var publicKey: Data { get } } +/// The type of algorithm the Secret uses. Currently, only elliptic curve algorithms are supported. public enum Algorithm: Hashable { + case ellipticCurve + + /// Initializes the Algorithm with a secAttr representation of an algorithm. + /// - Parameter secAttr: the secAttr, represented as an NSNumber. public init(secAttr: NSNumber) { let secAttrString = secAttr.stringValue as CFString switch secAttrString { diff --git a/Sources/Packages/Sources/SecretKit/Types/SecretStore.swift b/Sources/Packages/Sources/SecretKit/Types/SecretStore.swift new file mode 100644 index 0000000..6edef38 --- /dev/null +++ b/Sources/Packages/Sources/SecretKit/Types/SecretStore.swift @@ -0,0 +1,61 @@ +import Foundation +import Combine + +/// Manages access to Secrets, and performs signature operations on data using those Secrets. +public protocol SecretStore: ObservableObject, Identifiable { + + associatedtype SecretType: Secret + + /// A boolean indicating whether or not the store is available. + var isAvailable: Bool { get } + /// A unique identifier for the store. + var id: UUID { get } + /// A user-facing name for the store. + var name: String { get } + /// The secrets the store manages. + var secrets: [SecretType] { get } + + /// Signs a data payload with a specified Secret. + /// - Parameters: + /// - data: The data to sign. + /// - secret: The ``Secret`` to sign with. + /// - provenance: A ``SigningRequestProvenance`` describing where the request came from. + /// - Returns: A ``SignedData`` object, containing the signature and metadata about the signature process. + func sign(data: Data, with secret: SecretType, for provenance: SigningRequestProvenance) throws -> SignedData + + /// Persists user authorization for access to a secret. + /// - Parameters: + /// - secret: The ``Secret`` to persist the authorization for. + /// - duration: The duration that the authorization should persist for. + /// - Note: This is used for temporarily unlocking access to a secret which would otherwise require authentication every single use. This is useful for situations where the user anticipates several rapid accesses to a authorization-guarded secret. + func persistAuthentication(secret: SecretType, forDuration duration: TimeInterval) throws + +} + +/// A SecretStore that the Secretive admin app can modify. +public protocol SecretStoreModifiable: SecretStore { + + /// Creates a new ``Secret`` in the store. + /// - Parameters: + /// - name: The user-facing name for the ``Secret``. + /// - requiresAuthentication: A boolean indicating whether or not the user will be required to authenticate before performing signature operations with the secret. + func create(name: String, requiresAuthentication: Bool) throws + + /// Deletes a Secret in the store. + /// - Parameters: + /// - secret: The ``Secret`` to delete. + func delete(secret: SecretType) throws + + /// Updates the name of a Secret in the store. + /// - Parameters: + /// - secret: The ``Secret`` to update. + /// - name: The new name for the Secret. + func update(secret: SecretType, name: String) throws + +} + +extension NSNotification.Name { + + public static let secretStoreUpdated = NSNotification.Name("com.maxgoedjen.Secretive.secretStore.updated") + +} diff --git a/Sources/Packages/Sources/SecretKit/Types/SignedData.swift b/Sources/Packages/Sources/SecretKit/Types/SignedData.swift new file mode 100644 index 0000000..1468867 --- /dev/null +++ b/Sources/Packages/Sources/SecretKit/Types/SignedData.swift @@ -0,0 +1,20 @@ +import Foundation + +/// Describes the output of a sign request. +public struct SignedData { + + /// The signed data. + public let data: Data + /// A boolean describing whether authentication was required during the signature process. + public let requiredAuthentication: Bool + + /// Initializes a new SignedData. + /// - Parameters: + /// - data: The signed data. + /// - requiredAuthentication: A boolean describing whether authentication was required during the signature process. + public init(data: Data, requiredAuthentication: Bool) { + self.data = data + self.requiredAuthentication = requiredAuthentication + } + +} diff --git a/Sources/Packages/Sources/SecretKit/Types/SigningRequestProvenance.swift b/Sources/Packages/Sources/SecretKit/Types/SigningRequestProvenance.swift new file mode 100644 index 0000000..a1095fd --- /dev/null +++ b/Sources/Packages/Sources/SecretKit/Types/SigningRequestProvenance.swift @@ -0,0 +1,76 @@ +import Foundation +import AppKit + +/// Describes the chain of applications that requested a signature operation. +public struct SigningRequestProvenance: Equatable { + + /// A list of processes involved in the request. + /// - Note: A chain will typically consist of many elements even for a simple request. For example, running `git fetch` in Terminal.app would generate a request chain of `ssh` -> `git` -> `zsh` -> `login` -> `Terminal.app` + public var chain: [Process] + public init(root: Process) { + self.chain = [root] + } + +} + +extension SigningRequestProvenance { + + /// The `Process` which initiated the signing request. + public var origin: Process { + chain.last! + } + + /// A boolean describing whether all processes in the request chain had a valid code signature. + public var intact: Bool { + chain.allSatisfy { $0.validSignature } + } + +} + +extension SigningRequestProvenance { + + /// Describes a process in a `SigningRequestProvenance` chain. + public struct Process: Equatable { + + /// The pid of the process. + public let pid: Int32 + /// A user-facing name for the process. + public let processName: String + /// A user-facing name for the application, if one exists. + public let appName: String? + /// An icon representation of the application, if one exists. + public let iconURL: URL? + /// The path the process exists at. + public let path: String + /// A boolean describing whether or not the process has a valid code signature. + public let validSignature: Bool + /// The pid of the process's parent. + public let parentPID: Int32? + + /// Initializes a Process. + /// - Parameters: + /// - pid: The pid of the process. + /// - processName: A user-facing name for the process. + /// - appName: A user-facing name for the application, if one exists. + /// - iconURL: An icon representation of the application, if one exists. + /// - path: The path the process exists at. + /// - validSignature: A boolean describing whether or not the process has a valid code signature. + /// - parentPID: The pid of the process's parent. + public init(pid: Int32, processName: String, appName: String?, iconURL: URL?, path: String, validSignature: Bool, parentPID: Int32?) { + self.pid = pid + self.processName = processName + self.appName = appName + self.iconURL = iconURL + self.path = path + self.validSignature = validSignature + self.parentPID = parentPID + } + + /// The best user-facing name to display for the process. + public var displayName: String { + appName ?? processName + } + + } + +} diff --git a/Sources/Packages/Sources/SecureEnclaveSecretKit/Documentation.docc/Documentation.md b/Sources/Packages/Sources/SecureEnclaveSecretKit/Documentation.docc/Documentation.md new file mode 100644 index 0000000..d153175 --- /dev/null +++ b/Sources/Packages/Sources/SecureEnclaveSecretKit/Documentation.docc/Documentation.md @@ -0,0 +1,3 @@ +# ``SecureEnclaveSecretKit`` + +SecureEnclaveSecretKit contains implementations of SecretKit protocols backed by the Secure Enclave. diff --git a/Sources/Packages/Sources/SecureEnclaveSecretKit/Documentation.docc/SecureEnclave.md b/Sources/Packages/Sources/SecureEnclaveSecretKit/Documentation.docc/SecureEnclave.md new file mode 100644 index 0000000..29ac443 --- /dev/null +++ b/Sources/Packages/Sources/SecureEnclaveSecretKit/Documentation.docc/SecureEnclave.md @@ -0,0 +1,14 @@ +# ``SecureEnclaveSecretKit/SecureEnclave`` + +## Topics + +### Implementations + +- ``Secret`` +- ``Store`` + +### Errors + +- ``KeychainError`` +- ``SigningError`` +- ``SecurityError`` diff --git a/Sources/Packages/Sources/SecureEnclaveSecretKit/SecureEnclave.swift b/Sources/Packages/Sources/SecureEnclaveSecretKit/SecureEnclave.swift new file mode 100644 index 0000000..6d4c78f --- /dev/null +++ b/Sources/Packages/Sources/SecureEnclaveSecretKit/SecureEnclave.swift @@ -0,0 +1,2 @@ +/// Namespace for the Secure Enclave implementations. +public enum SecureEnclave {} diff --git a/SecretKit/SecureEnclave/SecureEnclaveSecret.swift b/Sources/Packages/Sources/SecureEnclaveSecretKit/SecureEnclaveSecret.swift similarity index 78% rename from SecretKit/SecureEnclave/SecureEnclaveSecret.swift rename to Sources/Packages/Sources/SecureEnclaveSecretKit/SecureEnclaveSecret.swift index cb6bcc1..c8a87ba 100644 --- a/SecretKit/SecureEnclave/SecureEnclaveSecret.swift +++ b/Sources/Packages/Sources/SecureEnclaveSecretKit/SecureEnclaveSecret.swift @@ -1,8 +1,10 @@ import Foundation import Combine +import SecretKit extension SecureEnclave { + /// An implementation of Secret backed by the Secure Enclave. public struct Secret: SecretKit.Secret { public let id: Data diff --git a/SecretKit/SecureEnclave/SecureEnclaveStore.swift b/Sources/Packages/Sources/SecureEnclaveSecretKit/SecureEnclaveStore.swift similarity index 83% rename from SecretKit/SecureEnclave/SecureEnclaveStore.swift rename to Sources/Packages/Sources/SecureEnclaveSecretKit/SecureEnclaveStore.swift index 2a18a83..af6b364 100644 --- a/SecretKit/SecureEnclave/SecureEnclaveStore.swift +++ b/Sources/Packages/Sources/SecureEnclaveSecretKit/SecureEnclaveStore.swift @@ -2,9 +2,11 @@ import Foundation import Security import CryptoTokenKit import LocalAuthentication +import SecretKit extension SecureEnclave { + /// An implementation of Store backed by the Secure Enclave. public class Store: SecretStoreModifiable { public var isAvailable: Bool { @@ -19,6 +21,7 @@ extension SecureEnclave { private var persistedAuthenticationContexts: [Secret: PersistentAuthenticationContext] = [:] + /// Initializes a Store. public init() { DistributedNotificationCenter.default().addObserver(forName: .secretStoreUpdated, object: nil, queue: .main) { _ in self.reloadSecrets(notify: false) @@ -56,13 +59,15 @@ extension SecureEnclave { ] ] as CFDictionary - var privateKey: SecKey? = nil - var publicKey: SecKey? = nil - let status = SecKeyGeneratePair(attributes, &publicKey, &privateKey) - guard privateKey != nil, let pk = publicKey else { - throw KeychainError(statusCode: status) + var createKeyError: SecurityError? + let keypair = SecKeyCreateRandomKey(attributes, &createKeyError) + if let error = createKeyError { + throw error.takeRetainedValue() as Error } - try savePublicKey(pk, name: name) + guard let keypair = keypair, let publicKey = SecKeyCopyPublicKey(keypair) else { + throw KeychainError(statusCode: nil) + } + try savePublicKey(publicKey, name: name) reloadSecrets() } @@ -94,7 +99,7 @@ extension SecureEnclave { } reloadSecrets() } - + public func sign(data: Data, with secret: SecretType, for provenance: SigningRequestProvenance) throws -> SignedData { let context: LAContext if let existing = persistedAuthenticationContexts[secret], existing.valid { @@ -140,6 +145,7 @@ extension SecureEnclave { public func persistAuthentication(secret: Secret, forDuration duration: TimeInterval) throws { let newContext = LAContext() + newContext.touchIDAuthenticationAllowableReuseDuration = duration newContext.localizedCancelTitle = "Deny" let formatter = DateComponentsFormatter() @@ -164,6 +170,8 @@ extension SecureEnclave { extension SecureEnclave.Store { + /// Reloads all secrets from the store. + /// - Parameter notify: A boolean indicating whether a distributed notification should be posted, notifying other processes (ie, the SecretAgent) to reload their stores as well. private func reloadSecrets(notify: Bool = true) { secrets.removeAll() loadSecrets() @@ -172,6 +180,7 @@ extension SecureEnclave.Store { } } + /// Loads all secrets from the store. private func loadSecrets() { let attributes = [ kSecClass: kSecClassKey, @@ -196,6 +205,10 @@ extension SecureEnclave.Store { secrets.append(contentsOf: wrapped) } + /// Saves a public key. + /// - Parameters: + /// - publicKey: The public key to save. + /// - name: A user-facing name for the key. private func savePublicKey(_ publicKey: SecKey, name: String) throws { let attributes = [ kSecClass: kSecClassKey, @@ -217,11 +230,15 @@ extension SecureEnclave.Store { extension SecureEnclave { + /// A wrapper around an error code reported by a Keychain API. public struct KeychainError: Error { - public let statusCode: OSStatus + /// The status code involved, if one was reported. + public let statusCode: OSStatus? } + /// A signing-related error. public struct SigningError: Error { + /// The underlying error reported by the API, if one was returned. public let error: SecurityError? } @@ -245,13 +262,22 @@ extension SecureEnclave { extension SecureEnclave { + /// A context describing a persisted authentication. private struct PersistentAuthenticationContext { + /// The Secret to persist authentication for. let secret: Secret + /// The LAContext used to authorize the persistent context. let context: LAContext - // Monotonic time instead of Date() to prevent people setting the clock back. + /// An expiration date for the context. + /// - Note - Monotonic time instead of Date() to prevent people setting the clock back. let expiration: UInt64 + /// Initializes a context. + /// - Parameters: + /// - secret: The Secret to persist authentication for. + /// - context: The LAContext used to authorize the persistent context. + /// - duration: The duration of the authorization context, in seconds. init(secret: Secret, context: LAContext, duration: TimeInterval) { self.secret = secret self.context = context @@ -259,6 +285,7 @@ extension SecureEnclave { self.expiration = clock_gettime_nsec_np(CLOCK_MONOTONIC) + UInt64(durationInNanoSeconds) } + /// A boolean describing whether or not the context is still valid. var valid: Bool { clock_gettime_nsec_np(CLOCK_MONOTONIC) < expiration } diff --git a/Sources/Packages/Sources/SmartCardSecretKit/Documentation.docc/Documentation.md b/Sources/Packages/Sources/SmartCardSecretKit/Documentation.docc/Documentation.md new file mode 100644 index 0000000..0826de9 --- /dev/null +++ b/Sources/Packages/Sources/SmartCardSecretKit/Documentation.docc/Documentation.md @@ -0,0 +1,3 @@ +# ``SmartCardSecretKit`` + +SmartCardSecretKit contains implementations of SecretKit protocols backed by a Smart Card. diff --git a/Sources/Packages/Sources/SmartCardSecretKit/Documentation.docc/SmartCard.md b/Sources/Packages/Sources/SmartCardSecretKit/Documentation.docc/SmartCard.md new file mode 100644 index 0000000..79fd58e --- /dev/null +++ b/Sources/Packages/Sources/SmartCardSecretKit/Documentation.docc/SmartCard.md @@ -0,0 +1,14 @@ +# ``SmartCardSecretKit/SmartCard`` + +## Topics + +### Implementations + +- ``Secret`` +- ``Store`` + +### Errors + +- ``KeychainError`` +- ``SigningError`` +- ``SecurityError`` diff --git a/Sources/Packages/Sources/SmartCardSecretKit/SmartCard.swift b/Sources/Packages/Sources/SmartCardSecretKit/SmartCard.swift new file mode 100644 index 0000000..0ec866c --- /dev/null +++ b/Sources/Packages/Sources/SmartCardSecretKit/SmartCard.swift @@ -0,0 +1,2 @@ +/// Namespace for the Smart Card implementations. +public enum SmartCard {} diff --git a/SecretKit/SmartCard/SmartCardSecret.swift b/Sources/Packages/Sources/SmartCardSecretKit/SmartCardSecret.swift similarity index 78% rename from SecretKit/SmartCard/SmartCardSecret.swift rename to Sources/Packages/Sources/SmartCardSecretKit/SmartCardSecret.swift index 977d4dc..c5e9109 100644 --- a/SecretKit/SmartCard/SmartCardSecret.swift +++ b/Sources/Packages/Sources/SmartCardSecretKit/SmartCardSecret.swift @@ -1,8 +1,10 @@ import Foundation import Combine +import SecretKit extension SmartCard { + /// An implementation of Secret backed by a Smart Card. public struct Secret: SecretKit.Secret { public let id: Data diff --git a/SecretKit/SmartCard/SmartCardStore.swift b/Sources/Packages/Sources/SmartCardSecretKit/SmartCardStore.swift similarity index 91% rename from SecretKit/SmartCard/SmartCardStore.swift rename to Sources/Packages/Sources/SmartCardSecretKit/SmartCardStore.swift index 978ea27..4ecd6b4 100644 --- a/SecretKit/SmartCard/SmartCardStore.swift +++ b/Sources/Packages/Sources/SmartCardSecretKit/SmartCardStore.swift @@ -2,11 +2,13 @@ import Foundation import Security import CryptoTokenKit import LocalAuthentication +import SecretKit // TODO: Might need to split this up into "sub-stores?" // ie, each token has its own Store. extension SmartCard { + /// An implementation of Store backed by a Smart Card. public class Store: SecretStore { @Published public var isAvailable: Bool = false @@ -16,6 +18,7 @@ extension SmartCard { private let watcher = TKTokenWatcher() private var tokenID: String? + /// Initializes a Store. public init() { tokenID = watcher.nonSecureEnclaveTokens.first watcher.setInsertionHandler { string in @@ -55,7 +58,7 @@ extension SmartCard { kSecAttrTokenID: tokenID, kSecUseAuthenticationContext: context, kSecReturnRef: true - ] as CFDictionary + ] as CFDictionary var untyped: CFTypeRef? let status = SecItemCopyMatching(attributes, &untyped) if status != errSecSuccess { @@ -90,11 +93,14 @@ extension SmartCard { extension SmartCard.Store { + /// Resets the token ID and reloads secrets. + /// - Parameter tokenID: The ID of the token that was removed. private func smartcardRemoved(for tokenID: String? = nil) { self.tokenID = nil reloadSecrets() } + /// Reloads all secrets from the store. private func reloadSecrets() { DispatchQueue.main.async { self.isAvailable = self.tokenID != nil @@ -103,6 +109,7 @@ extension SmartCard.Store { } } + /// Loads all secrets from the store. private func loadSecrets() { guard let tokenID = tokenID else { return } @@ -130,7 +137,7 @@ extension SmartCard.Store { kSecReturnRef: true, kSecMatchLimit: kSecMatchLimitAll, kSecReturnAttributes: true - ] as CFDictionary + ] as CFDictionary var untyped: CFTypeRef? SecItemCopyMatching(attributes, &untyped) guard let typed = untyped as? [[CFString: Any]] else { return } @@ -152,6 +159,7 @@ extension SmartCard.Store { extension TKTokenWatcher { + /// All available tokens, excluding the Secure Enclave. fileprivate var nonSecureEnclaveTokens: [String] { tokenIDs.filter { !$0.contains("setoken") } } @@ -160,11 +168,15 @@ extension TKTokenWatcher { extension SmartCard { + /// A wrapper around an error code reported by a Keychain API. public struct KeychainError: Error { + /// The status code involved. public let statusCode: OSStatus } + /// A signing-related error. public struct SigningError: Error { + /// The underlying error reported by the API, if one was returned. public let error: SecurityError? } diff --git a/BriefTests/ReleaseParsingTests.swift b/Sources/Packages/Tests/BriefTests/ReleaseParsingTests.swift similarity index 100% rename from BriefTests/ReleaseParsingTests.swift rename to Sources/Packages/Tests/BriefTests/ReleaseParsingTests.swift diff --git a/BriefTests/SemVerTests.swift b/Sources/Packages/Tests/BriefTests/SemVerTests.swift similarity index 100% rename from BriefTests/SemVerTests.swift rename to Sources/Packages/Tests/BriefTests/SemVerTests.swift diff --git a/SecretAgentKitTests/AgentTests.swift b/Sources/Packages/Tests/SecretAgentKitTests/AgentTests.swift similarity index 100% rename from SecretAgentKitTests/AgentTests.swift rename to Sources/Packages/Tests/SecretAgentKitTests/AgentTests.swift diff --git a/SecretAgentKitTests/StubFileHandleReader.swift b/Sources/Packages/Tests/SecretAgentKitTests/StubFileHandleReader.swift similarity index 100% rename from SecretAgentKitTests/StubFileHandleReader.swift rename to Sources/Packages/Tests/SecretAgentKitTests/StubFileHandleReader.swift diff --git a/SecretAgentKitTests/StubFileHandleWriter.swift b/Sources/Packages/Tests/SecretAgentKitTests/StubFileHandleWriter.swift similarity index 90% rename from SecretAgentKitTests/StubFileHandleWriter.swift rename to Sources/Packages/Tests/SecretAgentKitTests/StubFileHandleWriter.swift index 5b63eff..5b35aef 100644 --- a/SecretAgentKitTests/StubFileHandleWriter.swift +++ b/Sources/Packages/Tests/SecretAgentKitTests/StubFileHandleWriter.swift @@ -1,3 +1,4 @@ +import Foundation import SecretAgentKit class StubFileHandleWriter: FileHandleWriter { diff --git a/SecretAgentKitTests/StubStore.swift b/Sources/Packages/Tests/SecretAgentKitTests/StubStore.swift similarity index 99% rename from SecretAgentKitTests/StubStore.swift rename to Sources/Packages/Tests/SecretAgentKitTests/StubStore.swift index 42db26a..e92a68e 100644 --- a/SecretAgentKitTests/StubStore.swift +++ b/Sources/Packages/Tests/SecretAgentKitTests/StubStore.swift @@ -1,3 +1,4 @@ +import Foundation import SecretKit import CryptoKit diff --git a/SecretAgentKitTests/StubWitness.swift b/Sources/Packages/Tests/SecretAgentKitTests/StubWitness.swift similarity index 100% rename from SecretAgentKitTests/StubWitness.swift rename to Sources/Packages/Tests/SecretAgentKitTests/StubWitness.swift diff --git a/SecretKitTests/AnySecretTests.swift b/Sources/Packages/Tests/SecretKitTests/AnySecretTests.swift similarity index 89% rename from SecretKitTests/AnySecretTests.swift rename to Sources/Packages/Tests/SecretKitTests/AnySecretTests.swift index 8107adb..ee2646b 100644 --- a/SecretKitTests/AnySecretTests.swift +++ b/Sources/Packages/Tests/SecretKitTests/AnySecretTests.swift @@ -1,6 +1,8 @@ import Foundation import XCTest @testable import SecretKit +@testable import SecureEnclaveSecretKit +@testable import SmartCardSecretKit class AnySecretTests: XCTestCase { diff --git a/SecretKitTests/OpenSSHReaderTests.swift b/Sources/Packages/Tests/SecretKitTests/OpenSSHReaderTests.swift similarity index 95% rename from SecretKitTests/OpenSSHReaderTests.swift rename to Sources/Packages/Tests/SecretKitTests/OpenSSHReaderTests.swift index 5859c12..5ad7494 100644 --- a/SecretKitTests/OpenSSHReaderTests.swift +++ b/Sources/Packages/Tests/SecretKitTests/OpenSSHReaderTests.swift @@ -1,6 +1,8 @@ import Foundation import XCTest @testable import SecretKit +@testable import SecureEnclaveSecretKit +@testable import SmartCardSecretKit class OpenSSHReaderTests: XCTestCase { diff --git a/SecretKitTests/OpenSSHWriterTests.swift b/Sources/Packages/Tests/SecretKitTests/OpenSSHWriterTests.swift similarity index 97% rename from SecretKitTests/OpenSSHWriterTests.swift rename to Sources/Packages/Tests/SecretKitTests/OpenSSHWriterTests.swift index fcb0c96..6e9718f 100644 --- a/SecretKitTests/OpenSSHWriterTests.swift +++ b/Sources/Packages/Tests/SecretKitTests/OpenSSHWriterTests.swift @@ -1,6 +1,8 @@ import Foundation import XCTest @testable import SecretKit +@testable import SecureEnclaveSecretKit +@testable import SmartCardSecretKit class OpenSSHWriterTests: XCTestCase { diff --git a/SecretAgent/AppDelegate.swift b/Sources/SecretAgent/AppDelegate.swift similarity index 96% rename from SecretAgent/AppDelegate.swift rename to Sources/SecretAgent/AppDelegate.swift index 2cdc27f..6769ee7 100644 --- a/SecretAgent/AppDelegate.swift +++ b/Sources/SecretAgent/AppDelegate.swift @@ -2,6 +2,8 @@ import Cocoa import OSLog import Combine import SecretKit +import SecureEnclaveSecretKit +import SmartCardSecretKit import SecretAgentKit import Brief diff --git a/SecretAgent/Assets.xcassets/AppIcon.appiconset/Contents.json b/Sources/SecretAgent/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from SecretAgent/Assets.xcassets/AppIcon.appiconset/Contents.json rename to Sources/SecretAgent/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/SecretAgent/Assets.xcassets/AppIcon.appiconset/Mac Icon.png b/Sources/SecretAgent/Assets.xcassets/AppIcon.appiconset/Mac Icon.png similarity index 100% rename from SecretAgent/Assets.xcassets/AppIcon.appiconset/Mac Icon.png rename to Sources/SecretAgent/Assets.xcassets/AppIcon.appiconset/Mac Icon.png diff --git a/SecretAgent/Assets.xcassets/AppIcon.appiconset/Mac Icon@0.25x.png b/Sources/SecretAgent/Assets.xcassets/AppIcon.appiconset/Mac Icon@0.25x.png similarity index 100% rename from SecretAgent/Assets.xcassets/AppIcon.appiconset/Mac Icon@0.25x.png rename to Sources/SecretAgent/Assets.xcassets/AppIcon.appiconset/Mac Icon@0.25x.png diff --git a/SecretAgent/Assets.xcassets/Contents.json b/Sources/SecretAgent/Assets.xcassets/Contents.json similarity index 100% rename from SecretAgent/Assets.xcassets/Contents.json rename to Sources/SecretAgent/Assets.xcassets/Contents.json diff --git a/SecretAgent/Base.lproj/Main.storyboard b/Sources/SecretAgent/Base.lproj/Main.storyboard similarity index 100% rename from SecretAgent/Base.lproj/Main.storyboard rename to Sources/SecretAgent/Base.lproj/Main.storyboard diff --git a/SecretAgent/Info.plist b/Sources/SecretAgent/Info.plist similarity index 100% rename from SecretAgent/Info.plist rename to Sources/SecretAgent/Info.plist diff --git a/SecretAgent/InternetAccessPolicy.plist b/Sources/SecretAgent/InternetAccessPolicy.plist similarity index 100% rename from SecretAgent/InternetAccessPolicy.plist rename to Sources/SecretAgent/InternetAccessPolicy.plist diff --git a/SecretAgent/Notifier.swift b/Sources/SecretAgent/Notifier.swift similarity index 100% rename from SecretAgent/Notifier.swift rename to Sources/SecretAgent/Notifier.swift diff --git a/SecretAgent/Preview Content/Preview Assets.xcassets/Contents.json b/Sources/SecretAgent/Preview Content/Preview Assets.xcassets/Contents.json similarity index 100% rename from SecretAgent/Preview Content/Preview Assets.xcassets/Contents.json rename to Sources/SecretAgent/Preview Content/Preview Assets.xcassets/Contents.json diff --git a/SecretAgent/SecretAgent.entitlements b/Sources/SecretAgent/SecretAgent.entitlements similarity index 100% rename from SecretAgent/SecretAgent.entitlements rename to Sources/SecretAgent/SecretAgent.entitlements diff --git a/Sources/Secretive.xcodeproj/project.pbxproj b/Sources/Secretive.xcodeproj/project.pbxproj new file mode 100644 index 0000000..d66060b --- /dev/null +++ b/Sources/Secretive.xcodeproj/project.pbxproj @@ -0,0 +1,1027 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 52; + objects = { + +/* Begin PBXBuildFile section */ + 2C4A9D2F2636FFD3008CC8E2 /* RenameSecretView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2C4A9D2E2636FFD3008CC8E2 /* RenameSecretView.swift */; }; + 50020BB024064869003D4025 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50020BAF24064869003D4025 /* AppDelegate.swift */; }; + 50033AC327813F1700253856 /* BundleIDs.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50033AC227813F1700253856 /* BundleIDs.swift */; }; + 5003EF3B278005E800DF2006 /* SecretKit in Frameworks */ = {isa = PBXBuildFile; productRef = 5003EF3A278005E800DF2006 /* SecretKit */; }; + 5003EF3D278005F300DF2006 /* Brief in Frameworks */ = {isa = PBXBuildFile; productRef = 5003EF3C278005F300DF2006 /* Brief */; }; + 5003EF3F278005F300DF2006 /* SecretAgentKit in Frameworks */ = {isa = PBXBuildFile; productRef = 5003EF3E278005F300DF2006 /* SecretAgentKit */; }; + 5003EF41278005FA00DF2006 /* SecretKit in Frameworks */ = {isa = PBXBuildFile; productRef = 5003EF40278005FA00DF2006 /* SecretKit */; }; + 5003EF5F2780081600DF2006 /* SecureEnclaveSecretKit in Frameworks */ = {isa = PBXBuildFile; productRef = 5003EF5E2780081600DF2006 /* SecureEnclaveSecretKit */; }; + 5003EF612780081600DF2006 /* SmartCardSecretKit in Frameworks */ = {isa = PBXBuildFile; productRef = 5003EF602780081600DF2006 /* SmartCardSecretKit */; }; + 5003EF632780081B00DF2006 /* SecureEnclaveSecretKit in Frameworks */ = {isa = PBXBuildFile; productRef = 5003EF622780081B00DF2006 /* SecureEnclaveSecretKit */; }; + 5003EF652780081B00DF2006 /* SmartCardSecretKit in Frameworks */ = {isa = PBXBuildFile; productRef = 5003EF642780081B00DF2006 /* SmartCardSecretKit */; }; + 501421622781262300BBAA70 /* Brief in Frameworks */ = {isa = PBXBuildFile; productRef = 501421612781262300BBAA70 /* Brief */; }; + 501421652781268000BBAA70 /* SecretAgent.app in CopyFiles */ = {isa = PBXBuildFile; fileRef = 50A3B78A24026B7500D209EA /* SecretAgent.app */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; + 50153E20250AFCB200525160 /* UpdateView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50153E1F250AFCB200525160 /* UpdateView.swift */; }; + 50153E22250DECA300525160 /* SecretListItemView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50153E21250DECA300525160 /* SecretListItemView.swift */; }; + 5018F54F24064786002EB505 /* Notifier.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5018F54E24064786002EB505 /* Notifier.swift */; }; + 50571E0324393C2600F76F6C /* JustUpdatedChecker.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50571E0224393C2600F76F6C /* JustUpdatedChecker.swift */; }; + 50571E0524393D1500F76F6C /* LaunchAgentController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50571E0424393D1500F76F6C /* LaunchAgentController.swift */; }; + 50617D8323FCE48E0099B055 /* App.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50617D8223FCE48E0099B055 /* App.swift */; }; + 50617D8523FCE48E0099B055 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50617D8423FCE48E0099B055 /* ContentView.swift */; }; + 50617D8723FCE48E0099B055 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 50617D8623FCE48E0099B055 /* Assets.xcassets */; }; + 50617D8A23FCE48E0099B055 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 50617D8923FCE48E0099B055 /* Preview Assets.xcassets */; }; + 50617D9923FCE48E0099B055 /* SecretiveTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50617D9823FCE48E0099B055 /* SecretiveTests.swift */; }; + 50617DD223FCEFA90099B055 /* PreviewStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50617DD123FCEFA90099B055 /* PreviewStore.swift */; }; + 5066A6C22516F303004B5A36 /* SetupView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5066A6C12516F303004B5A36 /* SetupView.swift */; }; + 5066A6C82516FE6E004B5A36 /* CopyableView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5066A6C72516FE6E004B5A36 /* CopyableView.swift */; }; + 5066A6F7251829B1004B5A36 /* ShellConfigurationController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5066A6F6251829B1004B5A36 /* ShellConfigurationController.swift */; }; + 506772C72424784600034DED /* Credits.rtf in Resources */ = {isa = PBXBuildFile; fileRef = 506772C62424784600034DED /* Credits.rtf */; }; + 506772C92425BB8500034DED /* NoStoresView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 506772C82425BB8500034DED /* NoStoresView.swift */; }; + 5079BA0F250F29BF00EA86F4 /* StoreListView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5079BA0E250F29BF00EA86F4 /* StoreListView.swift */; }; + 508A58AA241E06B40069DC07 /* PreviewUpdater.swift in Sources */ = {isa = PBXBuildFile; fileRef = 508A58A9241E06B40069DC07 /* PreviewUpdater.swift */; }; + 508A58B3241ED2180069DC07 /* AgentStatusChecker.swift in Sources */ = {isa = PBXBuildFile; fileRef = 508A58B2241ED2180069DC07 /* AgentStatusChecker.swift */; }; + 508A58B5241ED48F0069DC07 /* PreviewAgentStatusChecker.swift in Sources */ = {isa = PBXBuildFile; fileRef = 508A58B4241ED48F0069DC07 /* PreviewAgentStatusChecker.swift */; }; + 508BF28E25B4F005009EFB7E /* InternetAccessPolicy.plist in Resources */ = {isa = PBXBuildFile; fileRef = 508BF28D25B4F005009EFB7E /* InternetAccessPolicy.plist */; }; + 508BF2AA25B4F1CB009EFB7E /* InternetAccessPolicy.plist in Resources */ = {isa = PBXBuildFile; fileRef = 508BF29425B4F140009EFB7E /* InternetAccessPolicy.plist */; }; + 5091D2BC25183B830049FD9B /* ApplicationDirectoryController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5091D2BB25183B830049FD9B /* ApplicationDirectoryController.swift */; }; + 5099A02423FD2AAA0062B6F2 /* CreateSecretView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5099A02323FD2AAA0062B6F2 /* CreateSecretView.swift */; }; + 50A3B79124026B7600D209EA /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 50A3B79024026B7600D209EA /* Assets.xcassets */; }; + 50A3B79424026B7600D209EA /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 50A3B79324026B7600D209EA /* Preview Assets.xcassets */; }; + 50A3B79724026B7600D209EA /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 50A3B79524026B7600D209EA /* Main.storyboard */; }; + 50B8550D24138C4F009958AC /* DeleteSecretView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50B8550C24138C4F009958AC /* DeleteSecretView.swift */; }; + 50BB046B2418AAAE00D6E079 /* EmptyStoreView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50BB046A2418AAAE00D6E079 /* EmptyStoreView.swift */; }; + 50C385A52407A76D00AF2719 /* SecretDetailView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50C385A42407A76D00AF2719 /* SecretDetailView.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 50142166278126B500BBAA70 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 50617D7723FCE48D0099B055 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 50A3B78924026B7500D209EA; + remoteInfo = SecretAgent; + }; + 50617D9523FCE48E0099B055 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 50617D7723FCE48D0099B055 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 50617D7E23FCE48D0099B055; + remoteInfo = Secretive; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 50617DBF23FCE4AB0099B055 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; + 50A5C18E240E4B4B00E2996C /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; + 50C385AF240E438B00AF2719 /* CopyFiles */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = Contents/Library/LoginItems; + dstSubfolderSpec = 1; + files = ( + 501421652781268000BBAA70 /* SecretAgent.app in CopyFiles */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 2C4A9D2E2636FFD3008CC8E2 /* RenameSecretView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RenameSecretView.swift; sourceTree = ""; }; + 50020BAF24064869003D4025 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 50033AC227813F1700253856 /* BundleIDs.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BundleIDs.swift; sourceTree = ""; }; + 5003EF39278005C800DF2006 /* Packages */ = {isa = PBXFileReference; lastKnownFileType = wrapper; path = Packages; sourceTree = ""; }; + 50153E1F250AFCB200525160 /* UpdateView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UpdateView.swift; sourceTree = ""; }; + 50153E21250DECA300525160 /* SecretListItemView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SecretListItemView.swift; sourceTree = ""; }; + 5018F54E24064786002EB505 /* Notifier.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Notifier.swift; sourceTree = ""; }; + 50571E0224393C2600F76F6C /* JustUpdatedChecker.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = JustUpdatedChecker.swift; sourceTree = ""; }; + 50571E0424393D1500F76F6C /* LaunchAgentController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LaunchAgentController.swift; sourceTree = ""; }; + 50617D7F23FCE48E0099B055 /* Secretive.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Secretive.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 50617D8223FCE48E0099B055 /* App.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = App.swift; sourceTree = ""; }; + 50617D8423FCE48E0099B055 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; + 50617D8623FCE48E0099B055 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 50617D8923FCE48E0099B055 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; + 50617D8E23FCE48E0099B055 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 50617D8F23FCE48E0099B055 /* Secretive.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Secretive.entitlements; sourceTree = ""; }; + 50617D9423FCE48E0099B055 /* SecretiveTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SecretiveTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 50617D9823FCE48E0099B055 /* SecretiveTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SecretiveTests.swift; sourceTree = ""; }; + 50617D9A23FCE48E0099B055 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 50617DD123FCEFA90099B055 /* PreviewStore.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PreviewStore.swift; sourceTree = ""; }; + 5066A6C12516F303004B5A36 /* SetupView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SetupView.swift; sourceTree = ""; }; + 5066A6C72516FE6E004B5A36 /* CopyableView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CopyableView.swift; sourceTree = ""; }; + 5066A6F6251829B1004B5A36 /* ShellConfigurationController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShellConfigurationController.swift; sourceTree = ""; }; + 506772C62424784600034DED /* Credits.rtf */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; path = Credits.rtf; sourceTree = ""; }; + 506772C82425BB8500034DED /* NoStoresView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NoStoresView.swift; sourceTree = ""; }; + 5079BA0E250F29BF00EA86F4 /* StoreListView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StoreListView.swift; sourceTree = ""; }; + 508A58A9241E06B40069DC07 /* PreviewUpdater.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PreviewUpdater.swift; sourceTree = ""; }; + 508A58AB241E121B0069DC07 /* Config.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Config.xcconfig; sourceTree = ""; }; + 508A58B2241ED2180069DC07 /* AgentStatusChecker.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AgentStatusChecker.swift; sourceTree = ""; }; + 508A58B4241ED48F0069DC07 /* PreviewAgentStatusChecker.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PreviewAgentStatusChecker.swift; sourceTree = ""; }; + 508A590F241EEF6D0069DC07 /* Secretive.xctestplan */ = {isa = PBXFileReference; lastKnownFileType = text; path = Secretive.xctestplan; sourceTree = ""; }; + 508BF28D25B4F005009EFB7E /* InternetAccessPolicy.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = InternetAccessPolicy.plist; sourceTree = ""; }; + 508BF29425B4F140009EFB7E /* InternetAccessPolicy.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; name = InternetAccessPolicy.plist; path = SecretAgent/InternetAccessPolicy.plist; sourceTree = SOURCE_ROOT; }; + 5091D2BB25183B830049FD9B /* ApplicationDirectoryController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ApplicationDirectoryController.swift; sourceTree = ""; }; + 5099A02323FD2AAA0062B6F2 /* CreateSecretView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CreateSecretView.swift; sourceTree = ""; }; + 50A3B78A24026B7500D209EA /* SecretAgent.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SecretAgent.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 50A3B79024026B7600D209EA /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 50A3B79324026B7600D209EA /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; + 50A3B79624026B7600D209EA /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 50A3B79824026B7600D209EA /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 50A3B79924026B7600D209EA /* SecretAgent.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = SecretAgent.entitlements; sourceTree = ""; }; + 50B8550C24138C4F009958AC /* DeleteSecretView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DeleteSecretView.swift; sourceTree = ""; }; + 50BB046A2418AAAE00D6E079 /* EmptyStoreView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmptyStoreView.swift; sourceTree = ""; }; + 50C385A42407A76D00AF2719 /* SecretDetailView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SecretDetailView.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 50617D7C23FCE48D0099B055 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 5003EF3B278005E800DF2006 /* SecretKit in Frameworks */, + 501421622781262300BBAA70 /* Brief in Frameworks */, + 5003EF5F2780081600DF2006 /* SecureEnclaveSecretKit in Frameworks */, + 5003EF612780081600DF2006 /* SmartCardSecretKit in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 50617D9123FCE48E0099B055 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 50A3B78724026B7500D209EA /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 5003EF3D278005F300DF2006 /* Brief in Frameworks */, + 5003EF632780081B00DF2006 /* SecureEnclaveSecretKit in Frameworks */, + 5003EF652780081B00DF2006 /* SmartCardSecretKit in Frameworks */, + 5003EF3F278005F300DF2006 /* SecretAgentKit in Frameworks */, + 5003EF41278005FA00DF2006 /* SecretKit in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 50033AC427813F1C00253856 /* Helpers */ = { + isa = PBXGroup; + children = ( + 50033AC227813F1700253856 /* BundleIDs.swift */, + ); + path = Helpers; + sourceTree = ""; + }; + 50617D7623FCE48D0099B055 = { + isa = PBXGroup; + children = ( + 5003EF39278005C800DF2006 /* Packages */, + 50617D8123FCE48E0099B055 /* Secretive */, + 50617D9723FCE48E0099B055 /* SecretiveTests */, + 50A3B78B24026B7500D209EA /* SecretAgent */, + 508A58AF241E144C0069DC07 /* Config */, + 50617D8023FCE48E0099B055 /* Products */, + 5099A08B240243730062B6F2 /* Frameworks */, + ); + sourceTree = ""; + }; + 50617D8023FCE48E0099B055 /* Products */ = { + isa = PBXGroup; + children = ( + 50617D7F23FCE48E0099B055 /* Secretive.app */, + 50617D9423FCE48E0099B055 /* SecretiveTests.xctest */, + 50A3B78A24026B7500D209EA /* SecretAgent.app */, + ); + name = Products; + sourceTree = ""; + }; + 50617D8123FCE48E0099B055 /* Secretive */ = { + isa = PBXGroup; + children = ( + 50617D8223FCE48E0099B055 /* App.swift */, + 508A58B0241ED1C40069DC07 /* Views */, + 508A58B1241ED1EA0069DC07 /* Controllers */, + 50033AC427813F1C00253856 /* Helpers */, + 50617D8623FCE48E0099B055 /* Assets.xcassets */, + 50617D8E23FCE48E0099B055 /* Info.plist */, + 508BF28D25B4F005009EFB7E /* InternetAccessPolicy.plist */, + 50617D8F23FCE48E0099B055 /* Secretive.entitlements */, + 506772C62424784600034DED /* Credits.rtf */, + 50617D8823FCE48E0099B055 /* Preview Content */, + ); + path = Secretive; + sourceTree = ""; + }; + 50617D8823FCE48E0099B055 /* Preview Content */ = { + isa = PBXGroup; + children = ( + 50617D8923FCE48E0099B055 /* Preview Assets.xcassets */, + 50617DD123FCEFA90099B055 /* PreviewStore.swift */, + 508A58A9241E06B40069DC07 /* PreviewUpdater.swift */, + 508A58B4241ED48F0069DC07 /* PreviewAgentStatusChecker.swift */, + ); + path = "Preview Content"; + sourceTree = ""; + }; + 50617D9723FCE48E0099B055 /* SecretiveTests */ = { + isa = PBXGroup; + children = ( + 50617D9823FCE48E0099B055 /* SecretiveTests.swift */, + 50617D9A23FCE48E0099B055 /* Info.plist */, + ); + path = SecretiveTests; + sourceTree = ""; + }; + 508A58AF241E144C0069DC07 /* Config */ = { + isa = PBXGroup; + children = ( + 508A590F241EEF6D0069DC07 /* Secretive.xctestplan */, + 508A58AB241E121B0069DC07 /* Config.xcconfig */, + ); + path = Config; + sourceTree = ""; + }; + 508A58B0241ED1C40069DC07 /* Views */ = { + isa = PBXGroup; + children = ( + 50617D8423FCE48E0099B055 /* ContentView.swift */, + 5079BA0E250F29BF00EA86F4 /* StoreListView.swift */, + 50153E21250DECA300525160 /* SecretListItemView.swift */, + 50C385A42407A76D00AF2719 /* SecretDetailView.swift */, + 5099A02323FD2AAA0062B6F2 /* CreateSecretView.swift */, + 50B8550C24138C4F009958AC /* DeleteSecretView.swift */, + 2C4A9D2E2636FFD3008CC8E2 /* RenameSecretView.swift */, + 50BB046A2418AAAE00D6E079 /* EmptyStoreView.swift */, + 506772C82425BB8500034DED /* NoStoresView.swift */, + 50153E1F250AFCB200525160 /* UpdateView.swift */, + 5066A6C12516F303004B5A36 /* SetupView.swift */, + 5066A6C72516FE6E004B5A36 /* CopyableView.swift */, + ); + path = Views; + sourceTree = ""; + }; + 508A58B1241ED1EA0069DC07 /* Controllers */ = { + isa = PBXGroup; + children = ( + 508A58B2241ED2180069DC07 /* AgentStatusChecker.swift */, + 5091D2BB25183B830049FD9B /* ApplicationDirectoryController.swift */, + 50571E0224393C2600F76F6C /* JustUpdatedChecker.swift */, + 50571E0424393D1500F76F6C /* LaunchAgentController.swift */, + 5066A6F6251829B1004B5A36 /* ShellConfigurationController.swift */, + ); + path = Controllers; + sourceTree = ""; + }; + 5099A08B240243730062B6F2 /* Frameworks */ = { + isa = PBXGroup; + children = ( + ); + name = Frameworks; + sourceTree = ""; + }; + 50A3B78B24026B7500D209EA /* SecretAgent */ = { + isa = PBXGroup; + children = ( + 50020BAF24064869003D4025 /* AppDelegate.swift */, + 5018F54E24064786002EB505 /* Notifier.swift */, + 50A3B79024026B7600D209EA /* Assets.xcassets */, + 50A3B79524026B7600D209EA /* Main.storyboard */, + 50A3B79824026B7600D209EA /* Info.plist */, + 508BF29425B4F140009EFB7E /* InternetAccessPolicy.plist */, + 50A3B79924026B7600D209EA /* SecretAgent.entitlements */, + 50A3B79224026B7600D209EA /* Preview Content */, + ); + path = SecretAgent; + sourceTree = ""; + }; + 50A3B79224026B7600D209EA /* Preview Content */ = { + isa = PBXGroup; + children = ( + 50A3B79324026B7600D209EA /* Preview Assets.xcassets */, + ); + path = "Preview Content"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 50617D7E23FCE48D0099B055 /* Secretive */ = { + isa = PBXNativeTarget; + buildConfigurationList = 50617D9D23FCE48E0099B055 /* Build configuration list for PBXNativeTarget "Secretive" */; + buildPhases = ( + 50617D7B23FCE48D0099B055 /* Sources */, + 50617D7C23FCE48D0099B055 /* Frameworks */, + 50617D7D23FCE48D0099B055 /* Resources */, + 50617DBF23FCE4AB0099B055 /* Embed Frameworks */, + 50C385AF240E438B00AF2719 /* CopyFiles */, + ); + buildRules = ( + ); + dependencies = ( + 50142167278126B500BBAA70 /* PBXTargetDependency */, + ); + name = Secretive; + packageProductDependencies = ( + 5003EF3A278005E800DF2006 /* SecretKit */, + 5003EF5E2780081600DF2006 /* SecureEnclaveSecretKit */, + 5003EF602780081600DF2006 /* SmartCardSecretKit */, + 501421612781262300BBAA70 /* Brief */, + ); + productName = Secretive; + productReference = 50617D7F23FCE48E0099B055 /* Secretive.app */; + productType = "com.apple.product-type.application"; + }; + 50617D9323FCE48E0099B055 /* SecretiveTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 50617DA023FCE48E0099B055 /* Build configuration list for PBXNativeTarget "SecretiveTests" */; + buildPhases = ( + 50617D9023FCE48E0099B055 /* Sources */, + 50617D9123FCE48E0099B055 /* Frameworks */, + 50617D9223FCE48E0099B055 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 50617D9623FCE48E0099B055 /* PBXTargetDependency */, + ); + name = SecretiveTests; + productName = SecretiveTests; + productReference = 50617D9423FCE48E0099B055 /* SecretiveTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 50A3B78924026B7500D209EA /* SecretAgent */ = { + isa = PBXNativeTarget; + buildConfigurationList = 50A3B79A24026B7600D209EA /* Build configuration list for PBXNativeTarget "SecretAgent" */; + buildPhases = ( + 50A3B78624026B7500D209EA /* Sources */, + 50A3B78724026B7500D209EA /* Frameworks */, + 50A3B78824026B7500D209EA /* Resources */, + 50A5C18E240E4B4B00E2996C /* Embed Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = SecretAgent; + packageProductDependencies = ( + 5003EF3C278005F300DF2006 /* Brief */, + 5003EF3E278005F300DF2006 /* SecretAgentKit */, + 5003EF40278005FA00DF2006 /* SecretKit */, + 5003EF622780081B00DF2006 /* SecureEnclaveSecretKit */, + 5003EF642780081B00DF2006 /* SmartCardSecretKit */, + ); + productName = SecretAgent; + productReference = 50A3B78A24026B7500D209EA /* SecretAgent.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 50617D7723FCE48D0099B055 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1220; + LastUpgradeCheck = 1320; + ORGANIZATIONNAME = "Max Goedjen"; + TargetAttributes = { + 50617D7E23FCE48D0099B055 = { + CreatedOnToolsVersion = 11.3; + }; + 50617D9323FCE48E0099B055 = { + CreatedOnToolsVersion = 11.3; + TestTargetID = 50617D7E23FCE48D0099B055; + }; + 50A3B78924026B7500D209EA = { + CreatedOnToolsVersion = 11.4; + }; + }; + }; + buildConfigurationList = 50617D7A23FCE48D0099B055 /* Build configuration list for PBXProject "Secretive" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 50617D7623FCE48D0099B055; + productRefGroup = 50617D8023FCE48E0099B055 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 50617D7E23FCE48D0099B055 /* Secretive */, + 50617D9323FCE48E0099B055 /* SecretiveTests */, + 50A3B78924026B7500D209EA /* SecretAgent */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 50617D7D23FCE48D0099B055 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 50617D8A23FCE48E0099B055 /* Preview Assets.xcassets in Resources */, + 50617D8723FCE48E0099B055 /* Assets.xcassets in Resources */, + 506772C72424784600034DED /* Credits.rtf in Resources */, + 508BF28E25B4F005009EFB7E /* InternetAccessPolicy.plist in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 50617D9223FCE48E0099B055 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 50A3B78824026B7500D209EA /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 50A3B79724026B7600D209EA /* Main.storyboard in Resources */, + 50A3B79424026B7600D209EA /* Preview Assets.xcassets in Resources */, + 50A3B79124026B7600D209EA /* Assets.xcassets in Resources */, + 508BF2AA25B4F1CB009EFB7E /* InternetAccessPolicy.plist in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 50617D7B23FCE48D0099B055 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 2C4A9D2F2636FFD3008CC8E2 /* RenameSecretView.swift in Sources */, + 5091D2BC25183B830049FD9B /* ApplicationDirectoryController.swift in Sources */, + 5066A6C22516F303004B5A36 /* SetupView.swift in Sources */, + 50617D8523FCE48E0099B055 /* ContentView.swift in Sources */, + 50571E0324393C2600F76F6C /* JustUpdatedChecker.swift in Sources */, + 5079BA0F250F29BF00EA86F4 /* StoreListView.swift in Sources */, + 50617DD223FCEFA90099B055 /* PreviewStore.swift in Sources */, + 5066A6F7251829B1004B5A36 /* ShellConfigurationController.swift in Sources */, + 50033AC327813F1700253856 /* BundleIDs.swift in Sources */, + 508A58B3241ED2180069DC07 /* AgentStatusChecker.swift in Sources */, + 50C385A52407A76D00AF2719 /* SecretDetailView.swift in Sources */, + 5099A02423FD2AAA0062B6F2 /* CreateSecretView.swift in Sources */, + 50153E20250AFCB200525160 /* UpdateView.swift in Sources */, + 50571E0524393D1500F76F6C /* LaunchAgentController.swift in Sources */, + 5066A6C82516FE6E004B5A36 /* CopyableView.swift in Sources */, + 50B8550D24138C4F009958AC /* DeleteSecretView.swift in Sources */, + 50BB046B2418AAAE00D6E079 /* EmptyStoreView.swift in Sources */, + 50617D8323FCE48E0099B055 /* App.swift in Sources */, + 506772C92425BB8500034DED /* NoStoresView.swift in Sources */, + 50153E22250DECA300525160 /* SecretListItemView.swift in Sources */, + 508A58B5241ED48F0069DC07 /* PreviewAgentStatusChecker.swift in Sources */, + 508A58AA241E06B40069DC07 /* PreviewUpdater.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 50617D9023FCE48E0099B055 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 50617D9923FCE48E0099B055 /* SecretiveTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 50A3B78624026B7500D209EA /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 50020BB024064869003D4025 /* AppDelegate.swift in Sources */, + 5018F54F24064786002EB505 /* Notifier.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 50142167278126B500BBAA70 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 50A3B78924026B7500D209EA /* SecretAgent */; + targetProxy = 50142166278126B500BBAA70 /* PBXContainerItemProxy */; + }; + 50617D9623FCE48E0099B055 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 50617D7E23FCE48D0099B055 /* Secretive */; + targetProxy = 50617D9523FCE48E0099B055 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 50A3B79524026B7600D209EA /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 50A3B79624026B7600D209EA /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 50617D9B23FCE48E0099B055 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 508A58AB241E121B0069DC07 /* Config.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 11.0; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + OTHER_SWIFT_FLAGS = "-Xfrontend -warn-concurrency -Xfrontend -enable-actor-data-race-checks"; + SDKROOT = macosx; + STRIP_INSTALLED_PRODUCT = NO; + STRIP_SWIFT_SYMBOLS = NO; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 50617D9C23FCE48E0099B055 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 508A58AB241E121B0069DC07 /* Config.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 11.0; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + OTHER_SWIFT_FLAGS = "-Xfrontend -warn-concurrency -Xfrontend -enable-actor-data-race-checks"; + SDKROOT = macosx; + STRIP_INSTALLED_PRODUCT = NO; + STRIP_SWIFT_SYMBOLS = NO; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + }; + name = Release; + }; + 50617D9E23FCE48E0099B055 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_ENTITLEMENTS = Secretive/Secretive.entitlements; + CODE_SIGN_IDENTITY = "Apple Development"; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_ASSET_PATHS = "\"Secretive/Preview Content\""; + DEVELOPMENT_TEAM = Z72PRUAWF6; + ENABLE_HARDENED_RUNTIME = YES; + ENABLE_PREVIEWS = YES; + INFOPLIST_FILE = Secretive/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + MARKETING_VERSION = 1; + PRODUCT_BUNDLE_IDENTIFIER = com.maxgoedjen.Secretive.Host; + PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_VERSION = 5.0; + }; + name = Debug; + }; + 50617D9F23FCE48E0099B055 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_ENTITLEMENTS = Secretive/Secretive.entitlements; + CODE_SIGN_IDENTITY = "Developer ID Application"; + CODE_SIGN_STYLE = Manual; + COMBINE_HIDPI_IMAGES = YES; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_ASSET_PATHS = "\"Secretive/Preview Content\""; + DEVELOPMENT_TEAM = Z72PRUAWF6; + ENABLE_HARDENED_RUNTIME = YES; + ENABLE_PREVIEWS = YES; + INFOPLIST_FILE = Secretive/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + MARKETING_VERSION = 1; + PRODUCT_BUNDLE_IDENTIFIER = com.maxgoedjen.Secretive.Host; + PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = "Secretive - Host"; + SWIFT_VERSION = 5.0; + }; + name = Release; + }; + 50617DA123FCE48E0099B055 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + DEVELOPMENT_TEAM = Z72PRUAWF6; + INFOPLIST_FILE = SecretiveTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + "@loader_path/../Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.maxgoedjen.SecretiveTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Secretive.app/Contents/MacOS/Secretive"; + }; + name = Debug; + }; + 50617DA223FCE48E0099B055 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + DEVELOPMENT_TEAM = Z72PRUAWF6; + INFOPLIST_FILE = SecretiveTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + "@loader_path/../Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.maxgoedjen.SecretiveTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Secretive.app/Contents/MacOS/Secretive"; + }; + name = Release; + }; + 508A5914241EF1A00069DC07 /* Test */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 508A58AB241E121B0069DC07 /* Config.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 11.0; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + OTHER_SWIFT_FLAGS = "-Xfrontend -warn-concurrency -Xfrontend -enable-actor-data-race-checks"; + SDKROOT = macosx; + STRIP_INSTALLED_PRODUCT = NO; + STRIP_SWIFT_SYMBOLS = NO; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Test; + }; + 508A5915241EF1A00069DC07 /* Test */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Manual; + COMBINE_HIDPI_IMAGES = YES; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_ASSET_PATHS = "\"Secretive/Preview Content\""; + ENABLE_HARDENED_RUNTIME = NO; + ENABLE_PREVIEWS = YES; + INFOPLIST_FILE = Secretive/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + MARKETING_VERSION = 1; + PRODUCT_BUNDLE_IDENTIFIER = com.maxgoedjen.Secretive.Host; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + }; + name = Test; + }; + 508A5916241EF1A00069DC07 /* Test */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_IDENTITY = "-"; + CODE_SIGN_STYLE = Manual; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = SecretiveTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + "@loader_path/../Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.maxgoedjen.SecretiveTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Secretive.app/Contents/MacOS/Secretive"; + }; + name = Test; + }; + 508A5917241EF1A00069DC07 /* Test */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Manual; + COMBINE_HIDPI_IMAGES = YES; + DEVELOPMENT_ASSET_PATHS = "\"SecretAgent/Preview Content\""; + ENABLE_HARDENED_RUNTIME = YES; + ENABLE_PREVIEWS = YES; + INFOPLIST_FILE = SecretAgent/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + MARKETING_VERSION = 1; + PRODUCT_BUNDLE_IDENTIFIER = com.maxgoedjen.Secretive.SecretAgent; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + }; + name = Test; + }; + 50A3B79B24026B7600D209EA /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_ENTITLEMENTS = SecretAgent/SecretAgent.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + DEVELOPMENT_ASSET_PATHS = "\"SecretAgent/Preview Content\""; + DEVELOPMENT_TEAM = Z72PRUAWF6; + ENABLE_HARDENED_RUNTIME = YES; + ENABLE_PREVIEWS = YES; + INFOPLIST_FILE = SecretAgent/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + MARKETING_VERSION = 1; + PRODUCT_BUNDLE_IDENTIFIER = com.maxgoedjen.Secretive.SecretAgent; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + }; + name = Debug; + }; + 50A3B79C24026B7600D209EA /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_ENTITLEMENTS = SecretAgent/SecretAgent.entitlements; + CODE_SIGN_IDENTITY = "Developer ID Application"; + CODE_SIGN_STYLE = Manual; + COMBINE_HIDPI_IMAGES = YES; + DEVELOPMENT_ASSET_PATHS = "\"SecretAgent/Preview Content\""; + DEVELOPMENT_TEAM = Z72PRUAWF6; + ENABLE_HARDENED_RUNTIME = YES; + ENABLE_PREVIEWS = YES; + INFOPLIST_FILE = SecretAgent/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + MARKETING_VERSION = 1; + PRODUCT_BUNDLE_IDENTIFIER = com.maxgoedjen.Secretive.SecretAgent; + PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = "Secretive - Secret Agent"; + SWIFT_VERSION = 5.0; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 50617D7A23FCE48D0099B055 /* Build configuration list for PBXProject "Secretive" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 50617D9B23FCE48E0099B055 /* Debug */, + 508A5914241EF1A00069DC07 /* Test */, + 50617D9C23FCE48E0099B055 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 50617D9D23FCE48E0099B055 /* Build configuration list for PBXNativeTarget "Secretive" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 50617D9E23FCE48E0099B055 /* Debug */, + 508A5915241EF1A00069DC07 /* Test */, + 50617D9F23FCE48E0099B055 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 50617DA023FCE48E0099B055 /* Build configuration list for PBXNativeTarget "SecretiveTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 50617DA123FCE48E0099B055 /* Debug */, + 508A5916241EF1A00069DC07 /* Test */, + 50617DA223FCE48E0099B055 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 50A3B79A24026B7600D209EA /* Build configuration list for PBXNativeTarget "SecretAgent" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 50A3B79B24026B7600D209EA /* Debug */, + 508A5917241EF1A00069DC07 /* Test */, + 50A3B79C24026B7600D209EA /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + +/* Begin XCSwiftPackageProductDependency section */ + 5003EF3A278005E800DF2006 /* SecretKit */ = { + isa = XCSwiftPackageProductDependency; + productName = SecretKit; + }; + 5003EF3C278005F300DF2006 /* Brief */ = { + isa = XCSwiftPackageProductDependency; + productName = Brief; + }; + 5003EF3E278005F300DF2006 /* SecretAgentKit */ = { + isa = XCSwiftPackageProductDependency; + productName = SecretAgentKit; + }; + 5003EF40278005FA00DF2006 /* SecretKit */ = { + isa = XCSwiftPackageProductDependency; + productName = SecretKit; + }; + 5003EF5E2780081600DF2006 /* SecureEnclaveSecretKit */ = { + isa = XCSwiftPackageProductDependency; + productName = SecureEnclaveSecretKit; + }; + 5003EF602780081600DF2006 /* SmartCardSecretKit */ = { + isa = XCSwiftPackageProductDependency; + productName = SmartCardSecretKit; + }; + 5003EF622780081B00DF2006 /* SecureEnclaveSecretKit */ = { + isa = XCSwiftPackageProductDependency; + productName = SecureEnclaveSecretKit; + }; + 5003EF642780081B00DF2006 /* SmartCardSecretKit */ = { + isa = XCSwiftPackageProductDependency; + productName = SmartCardSecretKit; + }; + 501421612781262300BBAA70 /* Brief */ = { + isa = XCSwiftPackageProductDependency; + productName = Brief; + }; +/* End XCSwiftPackageProductDependency section */ + }; + rootObject = 50617D7723FCE48D0099B055 /* Project object */; +} diff --git a/Secretive.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Sources/Secretive.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 100% rename from Secretive.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to Sources/Secretive.xcodeproj/project.xcworkspace/contents.xcworkspacedata diff --git a/Secretive.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Sources/Secretive.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from Secretive.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to Sources/Secretive.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/Secretive.xcodeproj/xcshareddata/xcschemes/SecretAgent.xcscheme b/Sources/Secretive.xcodeproj/xcshareddata/xcschemes/SecretAgent.xcscheme similarity index 99% rename from Secretive.xcodeproj/xcshareddata/xcschemes/SecretAgent.xcscheme rename to Sources/Secretive.xcodeproj/xcshareddata/xcschemes/SecretAgent.xcscheme index e425e9c..647184f 100644 --- a/Secretive.xcodeproj/xcshareddata/xcschemes/SecretAgent.xcscheme +++ b/Sources/Secretive.xcodeproj/xcshareddata/xcschemes/SecretAgent.xcscheme @@ -1,6 +1,6 @@ Bool { + @MainActor func addToShell(shellInstructions: ShellConfigInstruction) -> Bool { let openPanel = NSOpenPanel() // This is sync, so no need to strongly retain let delegate = Delegate(name: shellInstructions.shellConfigFilename) diff --git a/Secretive/Credits.rtf b/Sources/Secretive/Credits.rtf similarity index 100% rename from Secretive/Credits.rtf rename to Sources/Secretive/Credits.rtf diff --git a/SecretKit/Common/BundleIDs.swift b/Sources/Secretive/Helpers/BundleIDs.swift similarity index 100% rename from SecretKit/Common/BundleIDs.swift rename to Sources/Secretive/Helpers/BundleIDs.swift diff --git a/Secretive/Info.plist b/Sources/Secretive/Info.plist similarity index 100% rename from Secretive/Info.plist rename to Sources/Secretive/Info.plist diff --git a/Secretive/InternetAccessPolicy.plist b/Sources/Secretive/InternetAccessPolicy.plist similarity index 100% rename from Secretive/InternetAccessPolicy.plist rename to Sources/Secretive/InternetAccessPolicy.plist diff --git a/Secretive/Preview Content/Preview Assets.xcassets/Contents.json b/Sources/Secretive/Preview Content/Preview Assets.xcassets/Contents.json similarity index 100% rename from Secretive/Preview Content/Preview Assets.xcassets/Contents.json rename to Sources/Secretive/Preview Content/Preview Assets.xcassets/Contents.json diff --git a/Secretive/Preview Content/PreviewAgentStatusChecker.swift b/Sources/Secretive/Preview Content/PreviewAgentStatusChecker.swift similarity index 85% rename from Secretive/Preview Content/PreviewAgentStatusChecker.swift rename to Sources/Secretive/Preview Content/PreviewAgentStatusChecker.swift index b2554d7..e893155 100644 --- a/Secretive/Preview Content/PreviewAgentStatusChecker.swift +++ b/Sources/Secretive/Preview Content/PreviewAgentStatusChecker.swift @@ -4,6 +4,7 @@ import Combine class PreviewAgentStatusChecker: AgentStatusCheckerProtocol { let running: Bool + let developmentBuild = false init(running: Bool = true) { self.running = running diff --git a/Secretive/Preview Content/PreviewStore.swift b/Sources/Secretive/Preview Content/PreviewStore.swift similarity index 100% rename from Secretive/Preview Content/PreviewStore.swift rename to Sources/Secretive/Preview Content/PreviewStore.swift diff --git a/Secretive/Preview Content/PreviewUpdater.swift b/Sources/Secretive/Preview Content/PreviewUpdater.swift similarity index 96% rename from Secretive/Preview Content/PreviewUpdater.swift rename to Sources/Secretive/Preview Content/PreviewUpdater.swift index 5ca16f0..a993d87 100644 --- a/Secretive/Preview Content/PreviewUpdater.swift +++ b/Sources/Secretive/Preview Content/PreviewUpdater.swift @@ -5,6 +5,7 @@ import Brief class PreviewUpdater: UpdaterProtocol { let update: Release? + let testBuild = false init(update: Update = .none) { switch update { diff --git a/Secretive/Secretive.entitlements b/Sources/Secretive/Secretive.entitlements similarity index 100% rename from Secretive/Secretive.entitlements rename to Sources/Secretive/Secretive.entitlements diff --git a/Secretive/Views/ContentView.swift b/Sources/Secretive/Views/ContentView.swift similarity index 72% rename from Secretive/Views/ContentView.swift rename to Sources/Secretive/Views/ContentView.swift index bc76728..ec9c23f 100644 --- a/Secretive/Views/ContentView.swift +++ b/Sources/Secretive/Views/ContentView.swift @@ -1,5 +1,7 @@ import SwiftUI import SecretKit +import SecureEnclaveSecretKit +import SmartCardSecretKit import Brief struct ContentView: View { @@ -46,8 +48,13 @@ extension ContentView { text = "Critical Security Update Required" color = .red } else { - text = "Update Available" - color = .orange + if updater.testBuild { + text = "Test Build" + color = .blue + } else { + text = "Update Available" + color = .orange + } } return ToolbarItem { AnyView( @@ -58,11 +65,11 @@ extension ContentView { .font(.headline) .foregroundColor(.white) }) - .background(color) - .cornerRadius(5) - .popover(item: $selectedUpdate, attachmentAnchor: .point(.bottom), arrowEdge: .bottom) { update in - UpdateDetailView(update: update) - } + .background(color) + .cornerRadius(5) + .popover(item: $selectedUpdate, attachmentAnchor: .point(.bottom), arrowEdge: .bottom) { update in + UpdateDetailView(update: update) + } ) } } @@ -78,11 +85,11 @@ extension ContentView { }, label: { Image(systemName: "plus") }) - .popover(isPresented: $showingCreation, attachmentAnchor: .point(.bottom), arrowEdge: .bottom) { - if let modifiable = storeList.modifiableStore { - CreateSecretView(store: modifiable, showing: $showingCreation) + .popover(isPresented: $showingCreation, attachmentAnchor: .point(.bottom), arrowEdge: .bottom) { + if let modifiable = storeList.modifiableStore { + CreateSecretView(store: modifiable, showing: $showingCreation) + } } - } ) } @@ -92,7 +99,7 @@ extension ContentView { return ToolbarItem { AnyView( Group { - if runningSetup || !hasRunSetup || !agentStatusChecker.running { + if (runningSetup || !hasRunSetup || !agentStatusChecker.running) && !agentStatusChecker.developmentBuild { Button(action: { runningSetup = true }, label: { @@ -106,15 +113,15 @@ extension ContentView { .font(.headline) .foregroundColor(.white) }) - .background(Color.orange) - .cornerRadius(5) + .background(Color.orange) + .cornerRadius(5) } else { EmptyView() } } - .sheet(isPresented: $runningSetup) { - SetupView(visible: $runningSetup, setupComplete: $hasRunSetup) - } + .sheet(isPresented: $runningSetup) { + SetupView(visible: $runningSetup, setupComplete: $hasRunSetup) + } ) } } @@ -135,19 +142,19 @@ extension ContentView { .font(.headline) .foregroundColor(.white) }) - .background(Color.orange) - .cornerRadius(5) - .popover(isPresented: $showingAppPathNotice, attachmentAnchor: .point(.bottom), arrowEdge: .bottom) { - VStack { - Image(systemName: "exclamationmark.triangle") - .resizable() - .aspectRatio(contentMode: .fit) - .frame(width: 64) - Text("Secretive needs to be in your Applications folder to work properly. Please move it and relaunch.") - .frame(maxWidth: 300) + .background(Color.orange) + .cornerRadius(5) + .popover(isPresented: $showingAppPathNotice, attachmentAnchor: .point(.bottom), arrowEdge: .bottom) { + VStack { + Image(systemName: "exclamationmark.triangle") + .resizable() + .aspectRatio(contentMode: .fit) + .frame(width: 64) + Text("Secretive needs to be in your Applications folder to work properly. Please move it and relaunch.") + .frame(maxWidth: 300) + } + .padding() } - .padding() - } ) } } diff --git a/Secretive/Views/CopyableView.swift b/Sources/Secretive/Views/CopyableView.swift similarity index 97% rename from Secretive/Views/CopyableView.swift rename to Sources/Secretive/Views/CopyableView.swift index 5ddd8fc..f7cd9e9 100644 --- a/Secretive/Views/CopyableView.swift +++ b/Sources/Secretive/Views/CopyableView.swift @@ -1,4 +1,5 @@ import SwiftUI +import UniformTypeIdentifiers struct CopyableView: View { @@ -46,7 +47,7 @@ struct CopyableView: View { } } .onDrag { - NSItemProvider(item: NSData(data: text.data(using: .utf8)!), typeIdentifier: kUTTypeUTF8PlainText as String) + NSItemProvider(item: NSData(data: text.data(using: .utf8)!), typeIdentifier: UTType.utf8PlainText.identifier) } .onTapGesture { copy() diff --git a/Secretive/Views/CreateSecretView.swift b/Sources/Secretive/Views/CreateSecretView.swift similarity index 96% rename from Secretive/Views/CreateSecretView.swift rename to Sources/Secretive/Views/CreateSecretView.swift index 2a6689c..318226d 100644 --- a/Secretive/Views/CreateSecretView.swift +++ b/Sources/Secretive/Views/CreateSecretView.swift @@ -12,7 +12,7 @@ struct CreateSecretView: View { var body: some View { VStack { HStack { - Image(nsImage: NSApp.applicationIconImage) + Image(nsImage: NSApplication.shared.applicationIconImage) .resizable() .frame(width: 64, height: 64) .padding() diff --git a/Secretive/Views/DeleteSecretView.swift b/Sources/Secretive/Views/DeleteSecretView.swift similarity index 95% rename from Secretive/Views/DeleteSecretView.swift rename to Sources/Secretive/Views/DeleteSecretView.swift index d9610d8..5c3bdd5 100644 --- a/Secretive/Views/DeleteSecretView.swift +++ b/Sources/Secretive/Views/DeleteSecretView.swift @@ -12,7 +12,7 @@ struct DeleteSecretView: View { var body: some View { VStack { HStack { - Image(nsImage: NSApp.applicationIconImage) + Image(nsImage: NSApplication.shared.applicationIconImage) .resizable() .frame(width: 64, height: 64) .padding() diff --git a/Secretive/Views/EmptyStoreView.swift b/Sources/Secretive/Views/EmptyStoreView.swift similarity index 100% rename from Secretive/Views/EmptyStoreView.swift rename to Sources/Secretive/Views/EmptyStoreView.swift diff --git a/Secretive/Views/NoStoresView.swift b/Sources/Secretive/Views/NoStoresView.swift similarity index 100% rename from Secretive/Views/NoStoresView.swift rename to Sources/Secretive/Views/NoStoresView.swift diff --git a/Secretive/Views/RenameSecretView.swift b/Sources/Secretive/Views/RenameSecretView.swift similarity index 94% rename from Secretive/Views/RenameSecretView.swift rename to Sources/Secretive/Views/RenameSecretView.swift index 92977ec..9ac57ec 100644 --- a/Secretive/Views/RenameSecretView.swift +++ b/Sources/Secretive/Views/RenameSecretView.swift @@ -12,7 +12,7 @@ struct RenameSecretView: View { var body: some View { VStack { HStack { - Image(nsImage: NSApp.applicationIconImage) + Image(nsImage: NSApplication.shared.applicationIconImage) .resizable() .frame(width: 64, height: 64) .padding() diff --git a/Secretive/Views/SecretDetailView.swift b/Sources/Secretive/Views/SecretDetailView.swift similarity index 100% rename from Secretive/Views/SecretDetailView.swift rename to Sources/Secretive/Views/SecretDetailView.swift diff --git a/Secretive/Views/SecretListItemView.swift b/Sources/Secretive/Views/SecretListItemView.swift similarity index 100% rename from Secretive/Views/SecretListItemView.swift rename to Sources/Secretive/Views/SecretListItemView.swift diff --git a/Secretive/Views/SetupView.swift b/Sources/Secretive/Views/SetupView.swift similarity index 98% rename from Secretive/Views/SetupView.swift rename to Sources/Secretive/Views/SetupView.swift index ad358f2..9329608 100644 --- a/Secretive/Views/SetupView.swift +++ b/Sources/Secretive/Views/SetupView.swift @@ -54,7 +54,6 @@ struct StepView: View { Rectangle() .foregroundColor(.green) .frame(width: max(0, ((width - (Constants.padding * 2)) / CGFloat(numberOfSteps - 1)) * CGFloat(currentStep) - (Constants.circleWidth / 2)), height: 5) - .animation(.spring()) HStack { ForEach(0..