Skip to content

Commit bcba72a

Browse files
committed
Fix API usage
1 parent e7f5a79 commit bcba72a

File tree

4 files changed

+20
-89
lines changed

4 files changed

+20
-89
lines changed

BAPromise.podspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "BAPromise"
3-
s.version = "3.0.2"
3+
s.version = "3.0.3"
44
s.summary = "Objective C Promise Library"
55
s.description = <<-DESC
66
Swift Promise Library. An alternative to NSOperation for asynchronous operations.
@@ -14,7 +14,7 @@ s.swift_version = '4.1'
1414

1515
s.ios.deployment_target = '10.0'
1616
s.osx.deployment_target = '10.12'
17-
s.tvos.deployment_target = '10.0'
17+
#s.tvos.deployment_target = '10.0'
1818
s.requires_arc = true
1919

2020
s.source_files = 'Classes/*'

BAPromise.xcodeproj/project.pbxproj

-73
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,8 @@
2424
0CFAEB2E212F370100777107 /* ChainTestsSwift.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0CFAEB2B212F370100777107 /* ChainTestsSwift.swift */; };
2525
3214F58F6DA81220AA8CC2F1 /* Pods_iOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1877D722813E904D61872347 /* Pods_iOS.framework */; };
2626
6F6C8C0B6970DFB7A14E3423 /* Pods_OS_X_OS_XTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B90205B55A87D2F3869C79E4 /* Pods_OS_X_OS_XTests.framework */; };
27-
A8751095199B3ADE9CC77F99 /* Pods_tvOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 297F45050D01BCF34E393ECC /* Pods_tvOS.framework */; };
2827
C9843192B1033B9887D6325A /* Pods_iOS_iOSTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C9EB8957964B1D09D022C484 /* Pods_iOS_iOSTests.framework */; };
2928
D1E0E9C2C71BFBE3BFDF4F22 /* Pods_OS_X.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E77BFEAC3DF4C3784C6CBB4F /* Pods_OS_X.framework */; };
30-
D2F7946EDACAE174A5C757DC /* Pods_tvOS_tvOSTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2667770040C7B146CCC69D3D /* Pods_tvOS_tvOSTests.framework */; };
3129
E712B3311B7E6B4800590AA8 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = E712B3301B7E6B4800590AA8 /* AppDelegate.m */; };
3230
E712B3341B7E6B4800590AA8 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = E712B3331B7E6B4800590AA8 /* main.m */; };
3331
E712B3361B7E6B4800590AA8 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = E712B3351B7E6B4800590AA8 /* Assets.xcassets */; };
@@ -111,14 +109,12 @@
111109
/* End PBXContainerItemProxy section */
112110

113111
/* Begin PBXFileReference section */
114-
0518CB3DF35F802C5ED1D0D7 /* Pods-tvOS-tvOSTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-tvOS-tvOSTests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-tvOS-tvOSTests/Pods-tvOS-tvOSTests.debug.xcconfig"; sourceTree = "<group>"; };
115112
0CFAEB18212C71C500777107 /* Promise+ObjC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = "Promise+ObjC.swift"; path = "Classes/Promise+ObjC.swift"; sourceTree = "<group>"; };
116113
0CFAEB1C212C9A8F00777107 /* DoneTestsSwift.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = DoneTestsSwift.swift; path = BAPromiseTests/DoneTestsSwift.swift; sourceTree = "<group>"; };
117114
0CFAEB22212EFE9D00777107 /* BAPromise.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = BAPromise.m; path = Classes/BAPromise.m; sourceTree = "<group>"; };
118115
0CFAEB23212EFE9D00777107 /* BAPromise.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = BAPromise.h; path = Classes/BAPromise.h; sourceTree = "<group>"; };
119116
0CFAEB27212F1DE200777107 /* CancelTestsSwift.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = CancelTestsSwift.swift; path = BAPromiseTests/CancelTestsSwift.swift; sourceTree = "<group>"; };
120117
0CFAEB2B212F370100777107 /* ChainTestsSwift.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = ChainTestsSwift.swift; path = BAPromiseTests/ChainTestsSwift.swift; sourceTree = "<group>"; };
121-
0DC6C8A91AB714249173C72B /* Pods-tvOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-tvOS.debug.xcconfig"; path = "Pods/Target Support Files/Pods-tvOS/Pods-tvOS.debug.xcconfig"; sourceTree = "<group>"; };
122118
16DD4F3550F929C5BBD8BDD9 /* Pods-iOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-iOS.debug.xcconfig"; path = "Pods/Target Support Files/Pods-iOS/Pods-iOS.debug.xcconfig"; sourceTree = "<group>"; };
123119
1877D722813E904D61872347 /* Pods_iOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_iOS.framework; sourceTree = BUILT_PRODUCTS_DIR; };
124120
243B8F2E624F6BE5D0C933E7 /* Pods-ios.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ios.release.xcconfig"; path = "Pods/Target Support Files/Pods-ios/Pods-ios.release.xcconfig"; sourceTree = "<group>"; };
@@ -128,13 +124,11 @@
128124
3EF2D03E2BA940AD4BF4FB27 /* Pods-osx.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-osx.release.xcconfig"; path = "Pods/Target Support Files/Pods-osx/Pods-osx.release.xcconfig"; sourceTree = "<group>"; };
129125
5129D17C789F624CAE958541 /* Pods-OS X.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OS X.debug.xcconfig"; path = "Pods/Target Support Files/Pods-OS X/Pods-OS X.debug.xcconfig"; sourceTree = "<group>"; };
130126
5D414C51DEAAB359F2B867D1 /* Pods-iOS-iOSTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-iOS-iOSTests.release.xcconfig"; path = "Pods/Target Support Files/Pods-iOS-iOSTests/Pods-iOS-iOSTests.release.xcconfig"; sourceTree = "<group>"; };
131-
5FF7D83DEA2A4AA8AA86B2F8 /* Pods-tvOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-tvOS.release.xcconfig"; path = "Pods/Target Support Files/Pods-tvOS/Pods-tvOS.release.xcconfig"; sourceTree = "<group>"; };
132127
742837DFA25D4147301AE923 /* Pods-iOS-iOSTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-iOS-iOSTests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-iOS-iOSTests/Pods-iOS-iOSTests.debug.xcconfig"; sourceTree = "<group>"; };
133128
8A66D686E60BD55536E75979 /* Pods-OS X.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OS X.release.xcconfig"; path = "Pods/Target Support Files/Pods-OS X/Pods-OS X.release.xcconfig"; sourceTree = "<group>"; };
134129
8AC2F4560C0EB728686E1554 /* Pods-osx.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-osx.debug.xcconfig"; path = "Pods/Target Support Files/Pods-osx/Pods-osx.debug.xcconfig"; sourceTree = "<group>"; };
135130
B3AADFC31E1448DF00E538A2 /* OS XTests-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "OS XTests-Bridging-Header.h"; sourceTree = "<group>"; };
136131
B90205B55A87D2F3869C79E4 /* Pods_OS_X_OS_XTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_OS_X_OS_XTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
137-
C1C40DD6F36EB21757E7B24E /* Pods-tvOS-tvOSTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-tvOS-tvOSTests.release.xcconfig"; path = "Pods/Target Support Files/Pods-tvOS-tvOSTests/Pods-tvOS-tvOSTests.release.xcconfig"; sourceTree = "<group>"; };
138132
C9EB8957964B1D09D022C484 /* Pods_iOS_iOSTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_iOS_iOSTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
139133
CC02C6D8EBC5AA822D8AE4DD /* Pods-tvos.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-tvos.release.xcconfig"; path = "Pods/Target Support Files/Pods-tvos/Pods-tvos.release.xcconfig"; sourceTree = "<group>"; };
140134
DBCB8FAFF3B7C9A5E69B6303 /* Pods-OS X-OS XTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OS X-OS XTests.release.xcconfig"; path = "Pods/Target Support Files/Pods-OS X-OS XTests/Pods-OS X-OS XTests.release.xcconfig"; sourceTree = "<group>"; };
@@ -230,15 +224,13 @@
230224
isa = PBXFrameworksBuildPhase;
231225
buildActionMask = 2147483647;
232226
files = (
233-
A8751095199B3ADE9CC77F99 /* Pods_tvOS.framework in Frameworks */,
234227
);
235228
runOnlyForDeploymentPostprocessing = 0;
236229
};
237230
E7CA170B1BB9B0FC002D7196 /* Frameworks */ = {
238231
isa = PBXFrameworksBuildPhase;
239232
buildActionMask = 2147483647;
240233
files = (
241-
D2F7946EDACAE174A5C757DC /* Pods_tvOS_tvOSTests.framework in Frameworks */,
242234
);
243235
runOnlyForDeploymentPostprocessing = 0;
244236
};
@@ -262,10 +254,6 @@
262254
FA23215336889692FFAFE84A /* Pods-iOS.release.xcconfig */,
263255
742837DFA25D4147301AE923 /* Pods-iOS-iOSTests.debug.xcconfig */,
264256
5D414C51DEAAB359F2B867D1 /* Pods-iOS-iOSTests.release.xcconfig */,
265-
0DC6C8A91AB714249173C72B /* Pods-tvOS.debug.xcconfig */,
266-
5FF7D83DEA2A4AA8AA86B2F8 /* Pods-tvOS.release.xcconfig */,
267-
0518CB3DF35F802C5ED1D0D7 /* Pods-tvOS-tvOSTests.debug.xcconfig */,
268-
C1C40DD6F36EB21757E7B24E /* Pods-tvOS-tvOSTests.release.xcconfig */,
269257
);
270258
name = Pods;
271259
sourceTree = "<group>";
@@ -527,7 +515,6 @@
527515
isa = PBXNativeTarget;
528516
buildConfigurationList = E7CA17191BB9B0FC002D7196 /* Build configuration list for PBXNativeTarget "tvOS" */;
529517
buildPhases = (
530-
628C1F6500FD7EF1C1013DB0 /* [CP] Check Pods Manifest.lock */,
531518
E7CA16F51BB9B0FC002D7196 /* Sources */,
532519
E7CA16F61BB9B0FC002D7196 /* Frameworks */,
533520
E7CA16F71BB9B0FC002D7196 /* Resources */,
@@ -545,11 +532,9 @@
545532
isa = PBXNativeTarget;
546533
buildConfigurationList = E7CA171A1BB9B0FC002D7196 /* Build configuration list for PBXNativeTarget "tvOSTests" */;
547534
buildPhases = (
548-
6D4EAFD8C54B3127689C764F /* [CP] Check Pods Manifest.lock */,
549535
E7CA170A1BB9B0FC002D7196 /* Sources */,
550536
E7CA170B1BB9B0FC002D7196 /* Frameworks */,
551537
E7CA170C1BB9B0FC002D7196 /* Resources */,
552-
BA43232D498484C3F2DBCE2E /* [CP] Embed Pods Frameworks */,
553538
);
554539
buildRules = (
555540
);
@@ -691,42 +676,6 @@
691676
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
692677
showEnvVarsInLog = 0;
693678
};
694-
628C1F6500FD7EF1C1013DB0 /* [CP] Check Pods Manifest.lock */ = {
695-
isa = PBXShellScriptBuildPhase;
696-
buildActionMask = 2147483647;
697-
files = (
698-
);
699-
inputPaths = (
700-
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
701-
"${PODS_ROOT}/Manifest.lock",
702-
);
703-
name = "[CP] Check Pods Manifest.lock";
704-
outputPaths = (
705-
"$(DERIVED_FILE_DIR)/Pods-tvOS-checkManifestLockResult.txt",
706-
);
707-
runOnlyForDeploymentPostprocessing = 0;
708-
shellPath = /bin/sh;
709-
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
710-
showEnvVarsInLog = 0;
711-
};
712-
6D4EAFD8C54B3127689C764F /* [CP] Check Pods Manifest.lock */ = {
713-
isa = PBXShellScriptBuildPhase;
714-
buildActionMask = 2147483647;
715-
files = (
716-
);
717-
inputPaths = (
718-
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
719-
"${PODS_ROOT}/Manifest.lock",
720-
);
721-
name = "[CP] Check Pods Manifest.lock";
722-
outputPaths = (
723-
"$(DERIVED_FILE_DIR)/Pods-tvOS-tvOSTests-checkManifestLockResult.txt",
724-
);
725-
runOnlyForDeploymentPostprocessing = 0;
726-
shellPath = /bin/sh;
727-
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
728-
showEnvVarsInLog = 0;
729-
};
730679
9064295F7C1CFF91D0D0626F /* [CP] Check Pods Manifest.lock */ = {
731680
isa = PBXShellScriptBuildPhase;
732681
buildActionMask = 2147483647;
@@ -781,24 +730,6 @@
781730
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-iOS/Pods-iOS-frameworks.sh\"\n";
782731
showEnvVarsInLog = 0;
783732
};
784-
BA43232D498484C3F2DBCE2E /* [CP] Embed Pods Frameworks */ = {
785-
isa = PBXShellScriptBuildPhase;
786-
buildActionMask = 2147483647;
787-
files = (
788-
);
789-
inputPaths = (
790-
"${SRCROOT}/Pods/Target Support Files/Pods-tvOS-tvOSTests/Pods-tvOS-tvOSTests-frameworks.sh",
791-
"${BUILT_PRODUCTS_DIR}/OCMock-tvOS/OCMock.framework",
792-
);
793-
name = "[CP] Embed Pods Frameworks";
794-
outputPaths = (
795-
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/OCMock.framework",
796-
);
797-
runOnlyForDeploymentPostprocessing = 0;
798-
shellPath = /bin/sh;
799-
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-tvOS-tvOSTests/Pods-tvOS-tvOSTests-frameworks.sh\"\n";
800-
showEnvVarsInLog = 0;
801-
};
802733
C97CF3414709012E06DC305D /* [CP] Check Pods Manifest.lock */ = {
803734
isa = PBXShellScriptBuildPhase;
804735
buildActionMask = 2147483647;
@@ -1270,7 +1201,6 @@
12701201
};
12711202
E7CA17151BB9B0FC002D7196 /* Debug */ = {
12721203
isa = XCBuildConfiguration;
1273-
baseConfigurationReference = 0DC6C8A91AB714249173C72B /* Pods-tvOS.debug.xcconfig */;
12741204
buildSettings = {
12751205
ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image";
12761206
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
@@ -1289,7 +1219,6 @@
12891219
};
12901220
E7CA17161BB9B0FC002D7196 /* Release */ = {
12911221
isa = XCBuildConfiguration;
1292-
baseConfigurationReference = 5FF7D83DEA2A4AA8AA86B2F8 /* Pods-tvOS.release.xcconfig */;
12931222
buildSettings = {
12941223
ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image";
12951224
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
@@ -1309,7 +1238,6 @@
13091238
};
13101239
E7CA17171BB9B0FC002D7196 /* Debug */ = {
13111240
isa = XCBuildConfiguration;
1312-
baseConfigurationReference = 0518CB3DF35F802C5ED1D0D7 /* Pods-tvOS-tvOSTests.debug.xcconfig */;
13131241
buildSettings = {
13141242
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
13151243
BUNDLE_LOADER = "$(TEST_HOST)";
@@ -1326,7 +1254,6 @@
13261254
};
13271255
E7CA17181BB9B0FC002D7196 /* Release */ = {
13281256
isa = XCBuildConfiguration;
1329-
baseConfigurationReference = C1C40DD6F36EB21757E7B24E /* Pods-tvOS-tvOSTests.release.xcconfig */;
13301257
buildSettings = {
13311258
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
13321259
BUNDLE_LOADER = "$(TEST_HOST)";

Classes/Promise.swift

+10-6
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public class PromiseCancelToken {
5454
static let queue = DispatchQueue(label: "com.github.benski.promise")
5555
var onCancel : Canceled?
5656

57-
func cancelled(_ onCancel: @escaping Canceled, on queue: DispatchQueue) {
57+
public func cancelled(_ onCancel: @escaping Canceled, on queue: DispatchQueue) {
5858
let wrappedBlock = {
5959
queue.async {
6060
onCancel()
@@ -71,7 +71,7 @@ public class PromiseCancelToken {
7171
}
7272
}
7373

74-
func cancel() {
74+
public func cancel() {
7575
cancelled = true
7676
atomic_thread_fence(memory_order_release)
7777
PromiseCancelToken.queue.async {
@@ -89,6 +89,10 @@ public class Promise<ValueType> : PromiseCancelToken {
8989

9090
var fulfilledObject: PromiseResult<ValueType>?
9191

92+
public override init() {
93+
super.init()
94+
}
95+
9296
public class PromiseBlock {
9397
var done: Fulfilled?
9498
var observed: Fulfilled?
@@ -121,7 +125,7 @@ public class Promise<ValueType> : PromiseCancelToken {
121125
}
122126
}
123127

124-
@discardableResult func then(_ onFulfilled: Fulfilled? = nil,
128+
@discardableResult public func then(_ onFulfilled: Fulfilled? = nil,
125129
observed: Fulfilled? = nil,
126130
rejected: Rejected? = nil,
127131
always: Always? = nil,
@@ -165,7 +169,7 @@ public class Promise<ValueType> : PromiseCancelToken {
165169

166170
fileprivate lazy var blocks: Array<PromiseBlock> = []
167171

168-
override func cancelled(_ onCancel: @escaping Canceled, on queue: DispatchQueue) {
172+
public override func cancelled(_ onCancel: @escaping Canceled, on queue: DispatchQueue) {
169173
let wrappedBlock = {
170174
queue.async {
171175
onCancel()
@@ -202,7 +206,7 @@ extension Promise {
202206
// fulfillment
203207
extension Promise {
204208

205-
func fulfill(with: PromiseResult<ValueType>) {
209+
public func fulfill(with: PromiseResult<ValueType>) {
206210
switch(with) {
207211
case .success, .failure:
208212
Promise.queue.async {
@@ -235,7 +239,7 @@ extension Promise {
235239
extension Promise {
236240
public typealias ThenRejected<ReturnType> = (Error) -> PromiseResult<ReturnType>
237241

238-
func then<ReturnType>(_ onFulfilled: @escaping ((ValueType) throws -> PromiseResult<ReturnType>),
242+
public func then<ReturnType>(_ onFulfilled: @escaping ((ValueType) throws -> PromiseResult<ReturnType>),
239243
rejected : @escaping ThenRejected<ReturnType> = { return .failure($0) },
240244
queue : DispatchQueue) -> Promise<ReturnType> {
241245
var cancellationToken: PromiseCancelToken? = nil

Podfile

+8-8
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@ xcodeproj 'BAPromise'
22
use_frameworks!
33

44
target 'iOS' do
5-
platform :ios, '8.0'
5+
platform :ios, '10.0'
66
pod "BAPromise" , :path => "."
77
target 'iOSTests' do
88
pod "OCMock"
99
end
1010
end
1111

1212
target 'OS X' do
13-
platform :osx, '10.10'
13+
platform :osx, '10.12'
1414
target 'OS XTests' do
1515
pod "OCMock"
1616
end
1717
end
1818

19-
target 'tvOS' do
20-
platform :tvos, '9.0'
21-
target 'tvOSTests' do
22-
pod "OCMock"
23-
end
24-
end
19+
#target 'tvOS' do
20+
# platform :tvos, '9.0'
21+
# target 'tvOSTests' do
22+
# pod "OCMock"
23+
# end
24+
#end

0 commit comments

Comments
 (0)