krz/hutch

an ios client for sourcehut

clone: git clone https://gitbay.org/krz/hutch.git

v3.1.11: Shared/HutchDeepLinkURLs.swift · raw

 1import Foundation
 2
 3/// Canonical `hutch://` URLs for widgets, tests, and in-app links.
 4enum HutchDeepLinkURL {
 5    static let home = URL(string: "hutch://home")!
 6    static let emptyHost = URL(string: "hutch://")!
 7    static let repositoryGit = URL(string: "hutch://git/~user/repo")!
 8    static let ticket = URL(string: "hutch://todo/~owner/tracker/42")!
 9    static let buildJob = URL(string: "hutch://builds/12345")!
10    static let trackers = URL(string: "hutch://trackers")!
11    static let builds = URL(string: "hutch://builds")!
12    static let repositories = URL(string: "hutch://repositories")!
13    static let status = URL(string: "hutch://status")!
14    static let lookup = URL(string: "hutch://lookup")!
15    static let unknown = URL(string: "hutch://unknown")!
16    static let invalidTicketId = URL(string: "hutch://todo/~owner/tracker/abc")!
17    static let invalidBuildId = URL(string: "hutch://builds/abc")!
18}
19
20/// Default Hutch Stats API base URL (mirrors `AppConfiguration` fallback).
21enum HutchStatsAPI {
22    static let defaultBaseURL = URL(string: "https://hutch-stats.zerolabs.sh")!
23}