mirror of
https://github.com/XcodesOrg/XcodesApp.git
synced 2026-02-06 20:28:39 +01:00
- Define enumerations for preferences that can be managed in an enterprise environment using MDM - Add methods in AppState to check for managed preferences - Update Advanced, Download, Experiments and Update preference panes to disable controls to modify any of the managed preferences - Update Xcode category list button to be disabled if preference is managed
19 lines
420 B
Swift
19 lines
420 B
Swift
import Foundation
|
|
import Path
|
|
|
|
public enum Downloader: String, CaseIterable, Identifiable, CustomStringConvertible {
|
|
case aria2
|
|
case urlSession
|
|
|
|
public var id: Self { self }
|
|
|
|
public var description: String {
|
|
switch self {
|
|
case .urlSession: return "URLSession"
|
|
case .aria2: return "aria2"
|
|
}
|
|
}
|
|
|
|
var isManaged: Bool { PreferenceKey.downloader.isManaged() }
|
|
}
|