Brand.swift (610B)
1 // SPDX-License-Identifier: GPL-2.0-only 2 import Foundation 3 4 /// App name and identifiers, gathered here so that renaming the app only touches this file and project.yml. 5 enum Brand { 6 static let name = "Sub Rascasse" 7 static var version: String { 8 let info = Bundle.main.infoDictionary 9 return "\(info?["CFBundleShortVersionString"] as? String ?? "0") (\(info?["CFBundleVersion"] as? String ?? "0"))" 10 } 11 static var shortVersion: String { Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? "0" } 12 static let keychainService = "org.schurger.subrascasse.cloud" 13 }