Files
divkit/client/ios/LayoutKitSnapshotTests/ReferenceSet.swift
T
2023-10-31 14:11:38 +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 {
let referenceSnapshotsPath: String
enum CodingKeys: String, CodingKey {
case referenceSnapshotsPath = "REFERENCE_SNAPSHOTS_PATH"
}
}