AppConfig
struct AppConfig : Decodable
App Config is to fetch the values from config files if there is no config files the values will be fetched from the default values
-
Declaration
Swift
let API_SERVER_URL: String? -
Declaration
Swift
let AUTH_HEADER: String? -
Declaration
Swift
let DEBUG_FOR_SAVING_IMAGES: Bool? -
Declaration
Swift
let MODELS_DOWNLOAD_FILE_URLS: [String]? -
Declaration
Swift
let FOLDER_NAME: String? -
Declaration
Swift
let CUSTOM_MODEL_PATH: Bool? -
Shared instance to load and access values once
Declaration
Swift
private static let shared: AppConfig -
Static computed properties to access JSON values with default fallbacks
Declaration
Swift
static var API_SERVER_URL: String { get } -
Declaration
Swift
static var AUTH_HEADER: String { get } -
Declaration
Swift
static var MODELS_DOWNLOAD_FILE_URLS: [String] { get } -
Declaration
Swift
static var FOLDER_NAME: String { get } -
Declaration
Swift
static var DEBUG_FOR_SAVING_IMAGES: Bool { get } -
Declaration
Swift
static var CUSTOM_MODEL_PATH: Bool { get } -
Private method to load and decode JSON file
Declaration
Swift
private static func load() -> AppConfig