Skip to content
This repository was archived by the owner on Mar 22, 2019. It is now read-only.
/ CPKFoundation Public archive

This project is an extension of CancelForPromiseKit that adds cancellable promises to PromiseKit's Foundation extension.

Notifications You must be signed in to change notification settings

cprkit/CPKFoundation

Repository files navigation

CancelForPromiseKit Foundation Extensions

badge-docs Build Status

The CancelForPromiseKit Foundation Extensions add cancellable promises to PromiseKit's Foundation extensions.

This project supports iOS, tvOS, watchOS, macOS, Swift 3.0, 3.1, 3.2, 4.0 and 4.1.

Here's a link to the Jazzy generated API documentation.

CococaPods

pod "CancelForPromiseKit/Foundation", "~> 1.0"

The extensions are built into CancelForPromiseKit.framework thus nothing else is needed.

Carthage

github "CancelForPromiseKit/Foundation" ~> 1.0

The extensions are built into their own framework:

// swift
import PromiseKit
import CancelForPromiseKit
import CPKFoundation

To build with Carthage on versions of Swift prior to 4.1, set the 'Carthage' flag in your target's Build settings at the following location. This is necessary to properly import the PMKFoundation module, which is only defined for Carthage:

TARGETS -> [Your target name]:
    'Swift Compiler - Custom Flags' -> 'Active Compilation Conditions' -> 'Debug'
    'Swift Compiler - Custom Flags' -> 'Active Compilation Conditions' -> 'Release'

SwiftPM

let package = Package(
    dependencies: [
        .Package(url: "https://github.com/CancelForPromiseKit/Foundation.git", majorVersion: 1)
    ]
)

About

This project is an extension of CancelForPromiseKit that adds cancellable promises to PromiseKit's Foundation extension.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages