You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
PadelClubData/PadelClubDataTests/Config.swift

26 lines
614 B

//
// Config.swift
// PadelClubData
//
// Created by Laurent Morvillier on 21/05/2025.
//
@testable import PadelClubData
class Config {
static var server: (secure: Bool, domain: String) {
let bundle = Bundle(for: self)
let secure = PListReader.readBool(plist: "config", key: "secure_server", bundle: bundle)
let domain = PListReader.readString(plist: "config", key: "server_domain", bundle: bundle)
if let secure, let domain {
return (secure, domain)
}
fatalError("no server configuration")
}
}