Delete ReleaseNotes.swift

This commit is contained in:
Stuart Breckenridge 2020-08-15 15:03:21 +08:00
parent ddbf0fffb6
commit 78b6b1615c
No known key found for this signature in database
GPG Key ID: 79BD673276AE83CE

View File

@ -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 ?? ""
}
}