mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
21 lines
537 B
Swift
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
|
|
}
|