Skip to content

Commit

Permalink
Add missing Foundation imports for SPM
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewBarba committed Oct 17, 2017
1 parent 0289c8e commit 932ddc1
Show file tree
Hide file tree
Showing 22 changed files with 53 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Bluebird.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'Bluebird'
s.version = '2.0.0'
s.version = '2.0.1'
s.summary = 'Promise/A+, Bluebird inspired, implementation in Swift 4'
s.homepage = 'https://github.com/AndrewBarba/Bluebird.swift'
s.license = 'MIT'
Expand Down
12 changes: 10 additions & 2 deletions Bluebird.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/* Begin PBXBuildFile section */
384C75771F7A90EA00CFDCBE /* Bluebird+APlus.swift in Sources */ = {isa = PBXBuildFile; fileRef = 384C75761F7A90EA00CFDCBE /* Bluebird+APlus.swift */; };
384C75791F7A90FF00CFDCBE /* Bluebird+Spec.swift in Sources */ = {isa = PBXBuildFile; fileRef = 384C75781F7A90FF00CFDCBE /* Bluebird+Spec.swift */; };
B856C7A01DA0206100D87A1B /* Bluebird.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B856C7961DA0206100D87A1B /* Bluebird.framework */; };
38BCBD5B1F7C0ED7003D78C3 /* Bluebird.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B856C7961DA0206100D87A1B /* Bluebird.framework */; };
B856C7A51DA0206100D87A1B /* BluebirdTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = B856C7A41DA0206100D87A1B /* BluebirdTests.swift */; };
B856C7A71DA0206100D87A1B /* Bluebird.h in Headers */ = {isa = PBXBuildFile; fileRef = B856C7991DA0206100D87A1B /* Bluebird.h */; settings = {ATTRIBUTES = (Public, ); }; };
B856C7B11DA020CD00D87A1B /* Promise.swift in Sources */ = {isa = PBXBuildFile; fileRef = B856C7B01DA020CD00D87A1B /* Promise.swift */; };
Expand Down Expand Up @@ -142,7 +142,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
B856C7A01DA0206100D87A1B /* Bluebird.framework in Frameworks */,
38BCBD5B1F7C0ED7003D78C3 /* Bluebird.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -170,13 +170,21 @@
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
38BCBD5A1F7C0ED7003D78C3 /* Frameworks */ = {
isa = PBXGroup;
children = (
);
name = Frameworks;
sourceTree = "<group>";
};
B856C78C1DA0206100D87A1B = {
isa = PBXGroup;
children = (
38B713681F583F3B00572ADC /* Package.swift */,
B856C7981DA0206100D87A1B /* Source */,
B856C7A31DA0206100D87A1B /* Tests */,
B856C7971DA0206100D87A1B /* Products */,
38BCBD5A1F7C0ED7003D78C3 /* Frameworks */,
);
sourceTree = "<group>";
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
enableThreadSanitizer = "YES"
language = ""
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "YES">
<Testables>
Expand Down Expand Up @@ -58,6 +59,7 @@
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
enableThreadSanitizer = "YES"
language = ""
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ Change Log

---

## [2.0.1](https://github.com/AndrewBarba/Bluebird.swift/releases/tag/2.0.1)

1. Add missing Foundation imports for Swift Package Manager

## [2.0.0](https://github.com/AndrewBarba/Bluebird.swift/releases/tag/2.0.0)

1. Swift 4 and Xcode 9
Expand Down
2 changes: 2 additions & 0 deletions Source/Promise+all.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
// Copyright © 2016 Andrew Barba. All rights reserved.
//

import Foundation

/// Returns a Promise that resolved when all passed in Promises resolve. Rejects as soon as one promise rejects.
///
/// - parameter queue: dispatch queue to run the handler on
Expand Down
2 changes: 2 additions & 0 deletions Source/Promise+any.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
// Copyright © 2016 Andrew Barba. All rights reserved.
//

import Foundation

/// Returns a Promise that resolves as soon as one passed in Promise resolves
///
/// - parameter queue: dispatch queue to run the handler on
Expand Down
2 changes: 2 additions & 0 deletions Source/Promise+catch.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
// Copyright © 2016 Andrew Barba. All rights reserved.
//

import Foundation

extension Promise {

/// Catches an error in a Promise chain and allows the chain to recover
Expand Down
2 changes: 2 additions & 0 deletions Source/Promise+defer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
// Copyright © 2016 Andrew Barba. All rights reserved.
//

import Foundation

extension Promise {

/// Wrap a Promise and its resolve / reject handlers in a tuple
Expand Down
2 changes: 2 additions & 0 deletions Source/Promise+delay.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
// Copyright © 2016 Andrew Barba. All rights reserved.
//

import Foundation

/// Delay the start of a Promise chain by some number of seconds
///
/// - parameter queue: dispatch queue to run the delay on
Expand Down
2 changes: 2 additions & 0 deletions Source/Promise+errors.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
// Copyright © 2016 Andrew Barba. All rights reserved.
//

import Foundation

/// Bluebird errors
///
/// - cancelled: thrown when a Promise was explicity cancelled
Expand Down
2 changes: 2 additions & 0 deletions Source/Promise+finally.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
// Copyright © 2016 Andrew Barba. All rights reserved.
//

import Foundation

extension Promise {

/// Always run a handler at the end of a promise chain regardless of the whether the chain resolves or rejects
Expand Down
2 changes: 2 additions & 0 deletions Source/Promise+join.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
// Copyright © 2016 Andrew Barba. All rights reserved.
//

import Foundation

/// Returns a Promise that resolves to a tuple of the passed in Promises. Rejects as soon as one Promise rejects.
///
/// - parameter queue: dispatch queue to run the handler on
Expand Down
2 changes: 2 additions & 0 deletions Source/Promise+map.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
// Copyright © 2016 Andrew Barba. All rights reserved.
//

import Foundation

/// Map an array of items to Promises, and resolve when all Promises resolve. Rejects as soon as any Promise rejects.
///
/// - parameter queue: dispatch queue to run the handler on
Expand Down
2 changes: 2 additions & 0 deletions Source/Promise+race.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
// Copyright © 2016 Andrew Barba. All rights reserved.
//

import Foundation

/// Identical to `all`, but does not throw an error for an empty array of Promises
///
/// - parameter queue: dispatch queue to run the handler on
Expand Down
2 changes: 2 additions & 0 deletions Source/Promise+reduce.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
// Copyright © 2016 Andrew Barba. All rights reserved.
//

import Foundation

/// Reduce a sequence of items with a asynchronous operation (Promise) to a single value
///
/// - parameter queue: dispatch queue to run transform on
Expand Down
2 changes: 2 additions & 0 deletions Source/Promise+reflect.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
// Copyright © 2016 Andrew Barba. All rights reserved.
//

import Foundation

/// Enum used to describe the result of a promise
///
/// - resolved: the resolved value
Expand Down
2 changes: 2 additions & 0 deletions Source/Promise+tap.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
// Copyright © 2016 Andrew Barba. All rights reserved.
//

import Foundation

extension Promise {

/// Perform an operation in the middle of a promise chain that does not effect the resolved value, but can reject the chain
Expand Down
2 changes: 2 additions & 0 deletions Source/Promise+then.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
// Copyright © 2016 Andrew Barba. All rights reserved.
//

import Foundation

extension Promise {

/// Perform an operation on a Promise once it resolves. The chain will then resolve to the Promise returned from the handler
Expand Down
2 changes: 2 additions & 0 deletions Source/Promise+timeout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
// Copyright © 2016 Andrew Barba. All rights reserved.
//

import Foundation

extension Promise {

/// Reject the receiving Promise if it does not resolve / reject after a given number of seconds
Expand Down
2 changes: 2 additions & 0 deletions Source/Promise+try.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
// Copyright © 2016 Andrew Barba. All rights reserved.
//

import Foundation

/// Begin a promise chain
///
/// - parameter queue: dispatch queue to start the chain on
Expand Down
2 changes: 2 additions & 0 deletions Source/Promise+void.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
// Copyright © 2016 Andrew Barba. All rights reserved.
//

import Foundation

extension Promise {

/// Converts the current Promise to a generic Void Promise
Expand Down
2 changes: 2 additions & 0 deletions Source/Promise.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
// Copyright © 2016 Andrew Barba. All rights reserved.
//

import Foundation

/// Enum representing the current state of a Promise
///
/// - pending: in a pending state, neither resolved or rejected
Expand Down

0 comments on commit 932ddc1

Please sign in to comment.