From cd75e9649bb681034ec3d76726b3581375a88626 Mon Sep 17 00:00:00 2001 From: Mathew Polzin Date: Sun, 14 Apr 2019 21:01:20 -0700 Subject: [PATCH] Update cocoapods version, update readme to mention cocoapods support. --- JSONAPI.podspec | 2 +- README.md | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/JSONAPI.podspec b/JSONAPI.podspec index b965436..fe4dd9a 100644 --- a/JSONAPI.podspec +++ b/JSONAPI.podspec @@ -16,7 +16,7 @@ Pod::Spec.new do |spec| # spec.name = "JSONAPI" - spec.version = "0.18.2" + spec.version = "0.19.0" spec.summary = "Swift Codable JSON API framework." # This description is used to generate tags and improve search results. diff --git a/README.md b/README.md index 1313936..4301f37 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ See the JSON API Spec here: https://jsonapi.org/format/ - [Caveat](#caveat) - [Dev Environment](#dev-environment) - [Prerequisites](#prerequisites) + - [CocoaPods](#cocoapods) - [Xcode project](#xcode-project) - [Running the Playground](#running-the-playground) - [Project Status](#project-status) @@ -33,8 +34,8 @@ See the JSON API Spec here: https://jsonapi.org/format/ - [`JSONAPI.Entity`](#jsonapientity) - [`Meta`](#meta) - [`Links`](#links) - - [`IdType`](#idtype) - [`MaybeRawId`](#mayberawid) + - [`RawIdType`](#rawidtype) - [Convenient `typealiases`](#convenient-typealiases) - [`JSONAPI.Relationships`](#jsonapirelationships) - [`JSONAPI.Attributes`](#jsonapiattributes) @@ -82,7 +83,15 @@ If you find something wrong with this library and it isn't already mentioned und ## Dev Environment ### Prerequisites -1. Swift 4.2+ and Swift Package Manager +1. Swift 4.2+ +2. Swift Package Manager *OR* Cocoapods + +### CocoaPods +To use this framework in your project via Cocoapods instead of Swift Package Manager, add the following dependencies to your Podfile. +``` + pod 'Poly', :git => 'https://github.com/mattpolzin/Poly.git' + pod 'JSONAPI', :git => 'https://github.com/mattpolzin/JSONAPI.git' +``` ### Xcode project To create an Xcode project for JSONAPI, run