RSSwiftNetworking

1.1.7

A Swift framework that provides a network communication layer API
rootstrap/RSSwiftNetworking

What's New

1.1.7: Refactor of MultipartMedia and MimeType

2023-06-07T13:12:22Z

What's Changed

  • Separate key name from fileName on MimeType in #16

Full Changelog: 1.1.6...1.1.7

RSSwiftNetworking

CI Status Version License Platform Carthage SPM Swift Version

What is it?

Installation

1. Cocoapods

pod 'RSSwiftNetworking', '~> 1.1.6'

2. Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. Add the following line to your Cartfile and follow the installation instructions.

github "rootstrap/RSSwiftNetworking" ~> 1.1.6

3. Swift Package Manager

  • In XCode 11, go to File -> Swift Packages -> Add Package Dependency.
  • Enter the repo URL (https://github.com/rootstrap/RSSwiftNetworking) and click Next.
  • Select the version rule desired (you can specify a version number, branch or commit) and click Next.
  • Finally, select the target where you want to use the framework.

That should be it. RSSwiftNetworking should appear in the navigation panel as a dependency and the framework will be linked automatically to your target.

Note: It is always recommended to lock your external libraries to a specific version.

Usage

RSSwiftNetworking provides you with an extensible API to implement your own networking layer.

It also gives you an out of the box solution with Alamofire as the NetworkProvider. You can simply create your APIClient concrete instace with this provider.

static let apiClient = BaseAPIClient(
    networkProvider: AlamofireNetworkProvider(),
    headersProvider: SomeHeaderProvider()
)

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

License

RSSwiftNetworking is available under the MIT license. See the LICENSE file for more info.

Description

  • Swift Tools 5.5.0
View More Packages from this Author

Dependencies

Last updated: Sat Oct 19 2024 20:46:03 GMT-0900 (Hawaii-Aleutian Daylight Time)