Skip to content

Commit

Permalink
Merge pull request #34 from icapps/feature/spm
Browse files Browse the repository at this point in the history
Make Cara available with SPM in Xcode 11.
  • Loading branch information
fousa authored Jun 5, 2019
2 parents 2aa1bc0 + ab573eb commit e3ad251
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 4 deletions.
19 changes: 15 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
// swift-tools-version:5.0
import PackageDescription

let package = Package(
name: "Cara",
dependencies: [
.Package(url: "https://github.com/icapps/ios-cara.git", majorVersion: 1, minor: 1)
]
)
platforms: [
.macOS(.v10_12),
.iOS(.v10),
.tvOS(.v10)
],
products: [
.library(name: "Cara", targets: ["Cara"])
],
dependencies: [],
targets: [
.target(name: "Cara", dependencies: [], path: "Sources")
],
swiftLanguageVersions: [.v4_2]
)
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
## TOC

- [Installation](#installation)
- [Swift Package Manager](#swift-package-manager)
- [Cocoapods](#cocoapods)
- [Features](#features)
- [Configuration](#configuration)
- [Interceptor](#interceptor)
Expand All @@ -26,6 +28,12 @@

## Installation 💾

## Swift Package Manager

You can install `Cara` using the Swift Package Manager. This is available starting from Xcode 11. Just search for `icapps/ios-cara` and install it.

## Cocoapods

Cara is available through [CocoaPods](http://cocoapods.org). To install it, simply add the following line to your `Podfile`:

```ruby
Expand Down
2 changes: 2 additions & 0 deletions Sources/Configuration/Configuration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// Created by Jelle Vandebeeck on 01/12/2018.
//

import Foundation

/// A nicer way of defining the mapping between host and public keys.
public typealias PublicKeys = [String: String]

Expand Down
1 change: 1 addition & 0 deletions Sources/Logger/ConsoleLogger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

import os
import Foundation

/// The `Console` logger logs some minimal request information to the console.
public class ConsoleLogger {
Expand Down
1 change: 1 addition & 0 deletions Sources/Logger/OSLog+Request.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

import os
import Foundation

extension OSLog {

Expand Down
2 changes: 2 additions & 0 deletions Sources/Request/Request.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// Created by Jelle Vandebeeck on 01/12/2018.
//

import Foundation

/// A nicer way of defining the request header format.
public typealias RequestHeaders = [String: String]
/// A nicer way of defining the query format.
Expand Down
2 changes: 2 additions & 0 deletions Sources/Serializer/Serializer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// Created by Jelle Vandebeeck on 01/12/2018.
//

import Foundation

/// The serializer is responsible for generating the response that is returned by the service request.
public protocol Serializer {
/// The response returned by the `execute`'s `completion` handler.
Expand Down

0 comments on commit e3ad251

Please sign in to comment.