2019-05-30 17:10:50 -07:00
|
|
|
//
|
|
|
|
|
// Bundle+AltStore.swift
|
|
|
|
|
// AltStore
|
|
|
|
|
//
|
|
|
|
|
// Created by Riley Testut on 5/30/19.
|
|
|
|
|
// Copyright © 2019 Riley Testut. All rights reserved.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
|
|
|
|
|
|
public extension Bundle
|
|
|
|
|
{
|
|
|
|
|
struct Info
|
|
|
|
|
{
|
|
|
|
|
public static let deviceID = "ALTDeviceID"
|
2019-08-01 10:45:54 -07:00
|
|
|
public static let serverID = "ALTServerID"
|
2019-10-28 12:53:56 -07:00
|
|
|
public static let certificateID = "ALTCertificateID"
|
2019-06-25 14:26:09 -07:00
|
|
|
public static let appGroups = "ALTAppGroups"
|
2019-06-04 13:53:21 -07:00
|
|
|
|
|
|
|
|
public static let urlTypes = "CFBundleURLTypes"
|
2019-12-17 19:17:45 -08:00
|
|
|
public static let exportedUTIs = "UTExportedTypeDeclarations"
|
2019-06-04 13:53:21 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public extension Bundle
|
|
|
|
|
{
|
|
|
|
|
var infoPlistURL: URL {
|
|
|
|
|
let infoPlistURL = self.bundleURL.appendingPathComponent("Info.plist")
|
|
|
|
|
return infoPlistURL
|
2019-05-30 17:10:50 -07:00
|
|
|
}
|
2019-10-28 12:53:56 -07:00
|
|
|
|
2020-03-05 14:49:21 -08:00
|
|
|
var provisioningProfileURL: URL {
|
|
|
|
|
let infoPlistURL = self.bundleURL.appendingPathComponent("embedded.mobileprovision")
|
|
|
|
|
return infoPlistURL
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-28 12:53:56 -07:00
|
|
|
var certificateURL: URL {
|
|
|
|
|
let infoPlistURL = self.bundleURL.appendingPathComponent("ALTCertificate.p12")
|
|
|
|
|
return infoPlistURL
|
|
|
|
|
}
|
2020-05-15 11:35:44 -07:00
|
|
|
|
|
|
|
|
var appGroups: [String] {
|
|
|
|
|
return self.infoDictionary?[Bundle.Info.appGroups] as? [String] ?? []
|
|
|
|
|
}
|
2019-05-30 17:10:50 -07:00
|
|
|
}
|