mirror of
https://github.com/XcodesOrg/XcodesApp.git
synced 2026-02-06 20:28:39 +01:00
20 lines
618 B
Swift
20 lines
618 B
Swift
import Path
|
|
import Foundation
|
|
|
|
extension Path {
|
|
static let defaultXcodesApplicationSupport = Path.applicationSupport/"com.robotsandpencils.XcodesApp"
|
|
static var xcodesApplicationSupport: Path {
|
|
guard let savedApplicationSupport = Current.defaults.string(forKey: "localPath") else {
|
|
return defaultXcodesApplicationSupport
|
|
}
|
|
guard let path = Path(savedApplicationSupport) else {
|
|
return defaultXcodesApplicationSupport
|
|
}
|
|
return path
|
|
}
|
|
|
|
static var cacheFile: Path {
|
|
return xcodesApplicationSupport/"available-xcodes.json"
|
|
}
|
|
}
|