forked from AliSoftware/OHHTTPStubs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOHHTTPStubs.podspec
45 lines (33 loc) · 1.61 KB
/
OHHTTPStubs.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Pod::Spec.new do |s|
s.name = "OHHTTPStubs"
s.version = "3.1.12"
s.summary = "Stubbing framework for network requests (HTTP or any other protocol)."
s.description = <<-DESC.gsub(/^ +\|/,'')
|A class to stub network requests easily:
|
| * Test your apps with fake network data (stubbed from file)
| * Use customized stubs depending on the requests
| * Use custom response time to simulate slow network.
| * This works with any request (HTTP, HTTPS, or any protocol) sent using
| the iOS URL Loading System (NSURLConnection, NSURLSession, AFNetworking, …)
DESC
s.homepage = "https://github.com/AliSoftware/OHHTTPStubs"
s.license = "MIT"
s.authors = { 'Olivier Halligon' => '[email protected]' }
s.source = { :git => "https://github.com/AliSoftware/OHHTTPStubs.git", :tag => s.version.to_s }
s.default_subspec = 'Core'
s.subspec 'Core' do |ss|
ss.source_files = "OHHTTPStubs/Sources/*.{h,m}"
ss.public_header_files = "OHHTTPStubs/Sources/*.h"
end
s.subspec 'XCTestExpectation' do |ss|
ss.source_files = "OHHTTPStubs/XCTestExpectation+Xcode5/*.{h,m}"
ss.public_header_files = "OHHTTPStubs/XCTestExpectation+Xcode5/*.h"
ss.frameworks = 'XCTest'
end
s.frameworks = 'Foundation', 'CFNetwork'
s.requires_arc = true
s.ios.deployment_target = '5.0'
s.osx.deployment_target = '10.7'
s.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => 'XCODE_VERSION=$(XCODE_VERSION_MAJOR)' }
end