Files
pkurchatov 0663870bf9 Swiftformat
commit_hash:52ce6e4a9f35a44ddef28565cec76ddaabdc2d08
2025-09-18 12:40:09 +03:00

21 lines
537 B
Swift

import Foundation
enum ReferenceSet {
static var path: String {
let plistPath = Bundle.main.path(forResource: "Info", ofType: "plist")!
let plistContents = try! PropertyListDecoder().decode(
PlistContents.self,
from: Data(contentsOf: URL(fileURLWithPath: plistPath))
)
return plistContents.referenceSnapshotsPath
}
}
private struct PlistContents: Decodable {
enum CodingKeys: String, CodingKey {
case referenceSnapshotsPath = "REFERENCE_SNAPSHOTS_PATH"
}
let referenceSnapshotsPath: String
}