Remove OAuthSwift and its dependencies.

This commit is contained in:
Brent Simmons
2023-06-26 09:57:22 -07:00
parent 573ff1314e
commit 52c7ae2b53
7 changed files with 16 additions and 116 deletions

View File

@@ -17,7 +17,13 @@ extension URL {
/// Percent encoded `mailto` URL for use with `canOpenUrl`. If the URL doesn't contain the `mailto` scheme, this is `nil`.
var percentEncodedEmailAddress: URL? {
scheme == "mailto" ? self.string.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)?.url : nil
guard scheme == "mailto" else {
return nil
}
guard let urlString = absoluteString.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed) else {
return nil
}
return URL(string: urlString)
}
/// Reverse chronological list of release notes.