Skip to content

Commit

Permalink
Change release notes URL to point to release notes page: https://gith…
Browse files Browse the repository at this point in the history
  • Loading branch information
brentsimmons committed Jun 25, 2023
1 parent fdc5fd5 commit 799d3f3
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions Shared/Extensions/URL-Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,9 @@ extension URL {
scheme == "mailto" ? self.string.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)?.url : nil
}

/// URL pointing to current app version release notes.
static var releaseNotes: URL {
let appVersion = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String ?? ""
var gitHub = "https://github.com/Ranchero-Software/NetNewsWire/releases/tag/"
#if os(macOS)
gitHub += "mac-\(String(describing: appVersion))"
return URL(string: gitHub)!
#else
gitHub += "ios-\(String(describing: appVersion))"
return URL(string: gitHub)!
#endif
}

/// Reverse chronological list of release notes.
static var releaseNotes = URL(string: "https://github.com/Ranchero-Software/NetNewsWire/releases/")!

func valueFor(_ parameter: String) -> String? {
guard let components = URLComponents(url: self, resolvingAgainstBaseURL: false),
let queryItems = components.queryItems,
Expand Down

0 comments on commit 799d3f3

Please sign in to comment.