diff --git a/README.md b/README.md index d749d57..9a3f9c9 100644 --- a/README.md +++ b/README.md @@ -117,9 +117,11 @@ Gravatar doesn't have an official spec of the JSON data, so there is a lot of tr Check the list below on ideas how to help: * DocC documentation. +* Port getProfile to FoundationNetwork based platforms (URLSession compatibility). * Convert Photo.Type and InstantMessenger.Type from String to Enums. +* Support for Github Codespaces (Linux based). * Separate structures into files. -* Add SwiftNIO download support. +* Add built-in SwiftNIO download support. # Why use Apple Crypto library? diff --git a/Sources/SwiftGravatar/SwiftGravatar.swift b/Sources/SwiftGravatar/SwiftGravatar.swift index cea83f4..381f4bc 100644 --- a/Sources/SwiftGravatar/SwiftGravatar.swift +++ b/Sources/SwiftGravatar/SwiftGravatar.swift @@ -86,6 +86,8 @@ extension GravatarProfile { return "https://en.gravatar.com/\(emailMD5).json" } + // WISHLIST: Port getProfile to FoundationNetwork based platforms, URLSession compatibility +#if !os(Linux) // Request JSON Profile Data from Gravatar // Docs: https://en.gravatar.com/site/implement/profiles/json/ public static func getProfile(using email: String) async throws -> GravatarProfile? { @@ -101,6 +103,7 @@ extension GravatarProfile { } return nil } +#endif /* SWIFTNIO static func get(using email: String, on request: Request) -> EventLoopFuture {