mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-09 08:23:42 +01:00
Delete ReleaseNotes.swift
This commit is contained in:
parent
ddbf0fffb6
commit
78b6b1615c
@ -1,29 +0,0 @@
|
||||
//
|
||||
// ReleaseNotes.swift
|
||||
// NetNewsWire
|
||||
//
|
||||
// Created by Stuart Breckenridge on 13/8/20.
|
||||
// Copyright © 2020 Ranchero Software. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
struct ReleaseNotes {
|
||||
|
||||
@available(*, unavailable, message: "Use URL.releaseNotes")
|
||||
var url: URL {
|
||||
var gitHub = "https://github.com/Ranchero-Software/NetNewsWire/releases/tag/"
|
||||
#if os(macOS)
|
||||
gitHub += "mac-\(String(describing: versionString()))"
|
||||
return URL(string: gitHub)!
|
||||
#else
|
||||
gitHub += "ios-\(String(describing: versionString()))"
|
||||
return URL(string: gitHub)!
|
||||
#endif
|
||||
}
|
||||
|
||||
private func versionString() -> String {
|
||||
Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String ?? ""
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user