Swiftpack.co - Package - alextall/DataKit

DataKit

DataKit consists of several modules that add a Combine interface to CoreData and URLSession. These modules can be used individually or together as needed.

CoreDataClient: A CoreData stack with convenience methods for the basic CRUD operations. Includes support for NSManagedObjects that conform to Codable.

HTTPClient: A URLSession wrapper with convenience methods for GET, POST, PUT, and DELETE methods as well as executing pre-built URLRequests.

DataKit: All of the above in one tidy package.

Getting Started

DataKit is still in an experimental phase. Feel free to test it, but DataKit is not fit for production use.

Requirements

DataKit uses Swift 5.1 in Xcode 11 and supports the platforms below.

  • macOS 10.15+
  • iOS 13.0+
  • tvOS 13.0+
  • watchOS 6.0+

Installation

Swift Package Manager

Swift Package Manager is the recommended way to install DataKit.

.package(url: "https://github.com/alextall/DataKit.git", from: "0.3.0")

Github

link
Stars: 1

Dependencies

Used By

Total: 0

Releases

v0.3.0 - 2020-01-28 21:11:16

ATTENTION:

This release contains many breaking changes. Be cautious before upgrading.

NEW:

  • PersistenceClient has been renamed to CoreDataClient and now includes Codable support
  • HTTPResponse has been renamed to HTTPOutput

CHANGED:

  • No longer erasing to AnyPublisher. We are now exposing Future types.

v0.2.0 - 2019-11-28 03:30:01

ATTENTION:

This release contains many breaking changes. Be cautious before upgrading.

NEW:

  • Additional Packages:
    • You can now use PersistenceClient with or without Decodable, Encodable or both
    • HTTPClient can also be used independently
  • PersistenceClient now has conditional and optional support for Codable
  • APIClient has been renamed to HTTPClient
  • HTTPResponse and HTTPError now encapsulate possible responses from URLRequests

CHANGED:

  • LOTS

v0.1.2 - 2019-11-23 23:11:39

NEW:

  • Added documentation for PersistenceClient

v0.1.1 - 2019-11-07 03:33:18

NEW:

  • Added conditional Equatable conformance to ScratchPad

v0.1.0 - 2019-11-03 15:39:36

NEW:

  • Everything!