Skip to content

Commit 71817a4

Browse files
committed
OS X support
1 parent 4df9c79 commit 71817a4

29 files changed

+1587
-213
lines changed

BAPromise.podspec

+3-4
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 = "1.0.0"
3+
s.version = "1.1.0"
44
s.summary = "Objective C Promise Library"
55
s.description = <<-DESC
66
Objective C Promise Library. An alternative to NSOperation for asynchronous operations.
@@ -11,9 +11,8 @@ s.author = { "Ben Allison" => "[email protected]" }
1111
s.source = { :git => "https://github.com/benski/BAPromise.git", :tag => s.version.to_s }
1212
#s.social_media_url = 'https://twitter.com/NAME'
1313

14-
s.platform = :ios, '7.0'
15-
# s.ios.deployment_target = '5.0'
16-
# s.osx.deployment_target = '10.7'
14+
s.ios.deployment_target = '8.0'
15+
s.osx.deployment_target = '10.10'
1716
s.requires_arc = true
1817

1918
s.source_files = 'Classes/*'

BAPromise.xcodeproj/project.pbxproj

+515-187
Large diffs are not rendered by default.

BAPromise.xcodeproj/project.xcworkspace/contents.xcworkspacedata

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

BAPromiseTests/CancelTests.m

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
// Copyright (c) 2015 Ben Allison. All rights reserved.
77
//
88

9-
#import <UIKit/UIKit.h>
109
#import <XCTest/XCTest.h>
1110
#import "TestWaiter.h"
1211
#import "BAPromise.h"

BAPromiseTests/ChainTests.m

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
// Copyright (c) 2015 Ben Allison. All rights reserved.
77
//
88

9-
#import <UIKit/UIKit.h>
109
#import <XCTest/XCTest.h>
1110
#import "TestWaiter.h"
1211
#import "BAPromise.h"

BAPromiseTests/DoneTests.m

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
// Copyright (c) 2015 Ben Allison. All rights reserved.
77
//
88

9-
#import <UIKit/UIKit.h>
109
#import <XCTest/XCTest.h>
1110
#import "TestWaiter.h"
1211
#import "BAPromise.h"

BAPromiseTests/JoinTests.m

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
// Copyright (c) 2015 Ben Allison. All rights reserved.
77
//
88

9-
#import <UIKit/UIKit.h>
109
#import <XCTest/XCTest.h>
1110
#import "TestWaiter.h"
1211
#import "BAPromise.h"

BAPromiseTests/RejectTests.m

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
// Copyright (c) 2015 Ben Allison. All rights reserved.
77
//
88

9-
#import <UIKit/UIKit.h>
109
#import <XCTest/XCTest.h>
1110
#import "TestWaiter.h"
1211
#import "BAPromise.h"

BAPromiseTests/ThenTests.m

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
// Copyright (c) 2015 Ben Allison. All rights reserved.
77
//
88

9-
#import <UIKit/UIKit.h>
109
#import <XCTest/XCTest.h>
1110
#import "TestWaiter.h"
1211
#import "BAPromise.h"

OS X/AppDelegate.h

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//
2+
// AppDelegate.h
3+
// OS X
4+
//
5+
// Created by Ben Allison on 8/14/15.
6+
// Copyright © 2015 Ben Allison. All rights reserved.
7+
//
8+
9+
#import <Cocoa/Cocoa.h>
10+
11+
@interface AppDelegate : NSObject <NSApplicationDelegate>
12+
13+
14+
@end
15+

OS X/AppDelegate.m

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
//
2+
// AppDelegate.m
3+
// OS X
4+
//
5+
// Created by Ben Allison on 8/14/15.
6+
// Copyright © 2015 Ben Allison. All rights reserved.
7+
//
8+
9+
#import "AppDelegate.h"
10+
11+
@interface AppDelegate ()
12+
13+
@property (weak) IBOutlet NSWindow *window;
14+
@end
15+
16+
@implementation AppDelegate
17+
18+
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
19+
// Insert code here to initialize your application
20+
}
21+
22+
- (void)applicationWillTerminate:(NSNotification *)aNotification {
23+
// Insert code here to tear down your application
24+
}
25+
26+
@end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "mac",
5+
"size" : "16x16",
6+
"scale" : "1x"
7+
},
8+
{
9+
"idiom" : "mac",
10+
"size" : "16x16",
11+
"scale" : "2x"
12+
},
13+
{
14+
"idiom" : "mac",
15+
"size" : "32x32",
16+
"scale" : "1x"
17+
},
18+
{
19+
"idiom" : "mac",
20+
"size" : "32x32",
21+
"scale" : "2x"
22+
},
23+
{
24+
"idiom" : "mac",
25+
"size" : "128x128",
26+
"scale" : "1x"
27+
},
28+
{
29+
"idiom" : "mac",
30+
"size" : "128x128",
31+
"scale" : "2x"
32+
},
33+
{
34+
"idiom" : "mac",
35+
"size" : "256x256",
36+
"scale" : "1x"
37+
},
38+
{
39+
"idiom" : "mac",
40+
"size" : "256x256",
41+
"scale" : "2x"
42+
},
43+
{
44+
"idiom" : "mac",
45+
"size" : "512x512",
46+
"scale" : "1x"
47+
},
48+
{
49+
"idiom" : "mac",
50+
"size" : "512x512",
51+
"scale" : "2x"
52+
}
53+
],
54+
"info" : {
55+
"version" : 1,
56+
"author" : "xcode"
57+
}
58+
}

0 commit comments

Comments
 (0)