mirror of
https://github.com/maxgoedjen/secretive.git
synced 2026-03-15 13:57:24 +01:00
made a Bundle extension in SecretKit with hostBundleID and agentBundleID properties
This commit is contained in:
15
SecretKit/Common/bundleIDs.swift
Normal file
15
SecretKit/Common/bundleIDs.swift
Normal 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"))!}
|
||||
}
|
||||
Reference in New Issue
Block a user