made a Bundle extension in SecretKit with hostBundleID and agentBundleID properties

This commit is contained in:
Alex Lavallee
2020-12-27 17:07:56 -08:00
parent 670bfb17d5
commit edeb603ce0
4 changed files with 21 additions and 5 deletions

View File

@@ -0,0 +1,15 @@
//
// bundleIDs.swift
// SecretKit
//
// Created by Alex lavallee on 12/27/20.
// Copyright © 2020 Max Goedjen. All rights reserved.
//
import Foundation
extension Bundle {
public var agentBundleID: String {(self.bundleIdentifier?.replacingOccurrences(of: "Host", with: "SecretAgent"))!}
public var hostBundleID: String {(self.bundleIdentifier?.replacingOccurrences(of: "SecretAgent", with: "Host"))!}
}