{"id":13906522,"url":"https://github.com/malcommac/HermesNetwork","last_synced_at":"2025-07-18T04:31:40.853Z","repository":{"id":56914500,"uuid":"103040502","full_name":"malcommac/HermesNetwork","owner":"malcommac","description":null,"archived":true,"fork":false,"pushed_at":"2018-07-29T13:57:49.000Z","size":59,"stargazers_count":72,"open_issues_count":8,"forks_count":20,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-10-27T10:39:49.228Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/malcommac.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-10T15:33:34.000Z","updated_at":"2024-05-27T16:58:31.000Z","dependencies_parsed_at":"2022-08-21T03:50:27.474Z","dependency_job_id":null,"html_url":"https://github.com/malcommac/HermesNetwork","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malcommac%2FHermesNetwork","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malcommac%2FHermesNetwork/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malcommac%2FHermesNetwork/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malcommac%2FHermesNetwork/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/malcommac","download_url":"https://codeload.github.com/malcommac/HermesNetwork/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226344689,"owners_count":17610186,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-06T23:01:37.493Z","updated_at":"2024-11-25T14:31:46.260Z","avatar_url":"https://github.com/malcommac.png","language":"Swift","funding_links":[],"categories":["HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"# HermesNetwork\n\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) [![CI Status](https://travis-ci.org/malcommac/HermesNetwork.svg)](https://travis-ci.org/malcommac/HermesNetwork) [![Version](https://img.shields.io/cocoapods/v/HermesNetwork.svg?style=flat)](http://cocoadocs.org/docsets/HermesNetwork) [![License](https://img.shields.io/cocoapods/l/HermesNetwork.svg?style=flat)](http://cocoadocs.org/docsets/HermesNetwork) [![Platform](https://img.shields.io/cocoapods/p/HermesNetwork.svg?style=flat)](http://cocoadocs.org/docsets/HermesNetwork)\n\nHermesNetwork is the concrete implementation of an isolated/testable networking layer written in Swift.\n\n## Architecture Design\n\nCurrent version is based upon the network architecture design described in:\n[**\"Network Layers in Swift (Updated)**\"](http://danielemargutti.com/2017/09/09/network-layers-in-swift-updated/) written by me.\n\n## Used Libraries\n\nWhile the theory behind this approach is independent from the tool used, in order to give a complete out-of-box approach I’ve used the following libraries:\n\n* **Networking support**: in this example the Service  implementation uses [Alamofire](https://github.com/Alamofire/Alamofire). Switching to `NSURLSession`  is pretty easy and, in fact, suggested.\n* **Async/Promise support**: I love promises (at least until we’ll get something better with Swift 5) because they are clean, simple and offer a strong error handling mechanism.\nOur networking layer uses [Hydra](https://github.com/malcommac/Hydra), that recently hits the 1.0 milestone.\n* **JSON**: The higher level (near your app) of the architecture offer out-of-box JSON support with `JSONOperation`  class: everything about JSON was offered by [SwiftyJSON](https://github.com/SwiftyJSON/SwiftyJSON), probability the best library for these stuff.\n\n\n## Installation\nYou can install Swiftline using CocoaPods, carthage and Swift package manager\n\n### CocoaPods\n\n```\nuse_frameworks!\npod 'HermesNetwork'\n```\n\n### Carthage\n```\ngithub 'malcommac/HermesNetwork'\n```\n\n### Swift Package Manager\nAdd swiftline as dependency in your `Package.swift`\n\n```\nimport PackageDescription\n\nlet package = Package(name: \"YourPackage\",\ndependencies: [\n.Package(url: \"https://github.com/malcommac/HermesNetwork.git\", majorVersion: 0),\n]\n)\n```\n\n\u003ca name=\"requirements\" /\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalcommac%2FHermesNetwork","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmalcommac%2FHermesNetwork","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalcommac%2FHermesNetwork/lists"}