Skip to content

Commit

Permalink
Added target conditional for imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
esttorhe committed Jun 19, 2015
1 parent 996db6b commit 741db92
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions XcodeServerSDK/XcodeServerSDK.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@
// Copyright (c) 2015 Honza Dvorsky. All rights reserved.
//

#import "TargetConditionals.h"

#if TARGET_OS_IPHONE
@import Foundation;
#elif TARGET_OS_MAC
#import <Cocoa/Cocoa.h>
#endif

//! Project version number for XcodeServerSDK.
FOUNDATION_EXPORT double XcodeServerSDKVersionNumber;
Expand Down
4 changes: 4 additions & 0 deletions XcodeServerSDKTests/BotParsingTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
// Copyright (c) 2015 Honza Dvorsky. All rights reserved.
//

#if os(iOS)
import Foundation
#else
import Cocoa
#endif
import XCTest
import XcodeServerSDK

Expand Down
4 changes: 4 additions & 0 deletions XcodeServerSDKTests/XcodeServerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
// Copyright (c) 2015 Honza Dvorsky. All rights reserved.
//

#if os(iOS)
import Foundation
#else
import Cocoa
#endif
import XCTest
import XcodeServerSDK

Expand Down

0 comments on commit 741db92

Please sign in to comment.