Files
omnivore/apple/OmnivoreKit/Sources/Utils/BundleExtensions.swift
2022-03-20 09:29:06 -07:00

22 lines
420 B
Swift

import Foundation
public extension Bundle {
var isAppStoreBuild: Bool {
#if DEBUG
return false
#else
guard let path = appStoreReceiptURL?.path else {
return true
}
return !path.contains("sandboxReceipt")
#endif
}
}
// Convenience for locating package resources externally
public enum UtilsPackage {
public static var bundleURL: URL {
Bundle.module.bundleURL
}
}