Skip to content

Commit e50e25d

Browse files
authored
Merge pull request #319 from thii/bazel
Add missing import to support building with Bazel
2 parents 9953dfa + a814a48 commit e50e25d

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# OHHTTPStubs — CHANGELOG
22

3-
43
## Master
54

5+
* Support building with Bazel
6+
[@thii](https://github.com/thii)
67
* Added `hasFormBody(_:)` matcher.
78
[@417-72KI](https://github.com/417-72KI)
89
* Added fix for Xcode 12 - Warnings related to iOS 8 support (Swift Package Manager) #328

Sources/OHHTTPStubs/include/BUILD

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
_PUBLIC_HEADERS = [
2+
"Compatibility.h",
3+
"JSON/OHHTTPStubsResponse+JSON.h",
4+
"NSURLSession/NSURLRequest+HTTPBodyTesting.h",
5+
"OHHTTPStubs.h",
6+
"OHHTTPStubsResponse.h",
7+
"OHPathHelpers/OHPathHelpers.h",
8+
]
9+
10+
objc_library(
11+
name = "OHHTTPStubs",
12+
srcs = glob(
13+
[
14+
"**/*.h",
15+
"**/*.m",
16+
],
17+
exclude = _PUBLIC_HEADERS,
18+
),
19+
hdrs = _PUBLIC_HEADERS,
20+
includes = [
21+
".",
22+
"HTTPMessage",
23+
"JSON",
24+
"NSURLSession",
25+
"OHPathHelpers",
26+
],
27+
)

Sources/OHHTTPStubsSwift/OHHTTPStubsSwift.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
/**
2626
* Swift Helpers
2727
*/
28+
2829
import Foundation
2930
#if SWIFT_PACKAGE
3031
import OHHTTPStubs

0 commit comments

Comments
 (0)