mirror of
https://github.com/GLEGram/GLEGram-iOS.git
synced 2026-04-23 19:36:26 +02:00
4647310322
Based on Swiftgram 12.5 (Telegram iOS 12.5). All GLEGram features ported and organized in GLEGram/ folder. Features: Ghost Mode, Saved Deleted Messages, Content Protection Bypass, Font Replacement, Fake Profile, Chat Export, Plugin System, and more. See CHANGELOG_12.5.md for full details.
35 lines
1.3 KiB
Swift
35 lines
1.3 KiB
Swift
import Foundation
|
|
import ProjectSpec
|
|
import XcodeProj
|
|
|
|
public enum SettingsPresetFile {
|
|
case config(ConfigType)
|
|
case platform(Platform)
|
|
case supportedDestination(SupportedDestination)
|
|
case product(PBXProductType)
|
|
case productPlatform(PBXProductType, Platform)
|
|
case base
|
|
|
|
var path: String {
|
|
switch self {
|
|
case let .config(config): return "Configs/\(config.rawValue)"
|
|
case let .platform(platform): return "Platforms/\(platform.rawValue)"
|
|
case let .supportedDestination(supportedDestination): return "SupportedDestinations/\(supportedDestination.rawValue)"
|
|
case let .product(product): return "Products/\(product.name)"
|
|
case let .productPlatform(product, platform): return "Product_Platform/\(product.name)_\(platform.rawValue)"
|
|
case .base: return "base"
|
|
}
|
|
}
|
|
|
|
var name: String {
|
|
switch self {
|
|
case let .config(config): return "\(config.rawValue) config"
|
|
case let .platform(platform): return platform.rawValue
|
|
case let .supportedDestination(supportedDestination): return supportedDestination.rawValue
|
|
case let .product(product): return product.name
|
|
case let .productPlatform(product, platform): return "\(platform) \(product)"
|
|
case .base: return "base"
|
|
}
|
|
}
|
|
}
|