-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHostSettingsReader.swift
More file actions
36 lines (33 loc) · 1.04 KB
/
HostSettingsReader.swift
File metadata and controls
36 lines (33 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//
// HostSettingsReader.swift
// QuickHatch
//
// Created by Daniel Koster on 5/14/21.
// Copyright © 2021 DaVinci Labs. All rights reserved.
//
import Foundation
//public protocol HostSettingsReader {
// func read<Settings: Codable>() -> Settings
//}
//
//private class HostConfigReader {
// class var values: HostSettings {
// let data = try! PropertyListSerialization.data(fromPropertyList: Bundle.init(for: Host.self).infoDictionary!,
// format: PropertyListSerialization.PropertyListFormat.binary,
// options: 0)
// let plistDecoder = PropertyListDecoder()
// return try! plistDecoder.decode(HostSettings.self, from: data)
//
// }
//}
//private struct HostSettings: Decodable {
// let apiKey: String
// let host: String
// let baseUrl: String
//
// enum CodingKeys: String, CodingKey {
// case apiKey = "Api Key"
// case host = "Host"
// case baseUrl = "Base URL"
// }
//}