forked from pokeb/asi-http-request
-
Notifications
You must be signed in to change notification settings - Fork 4
/
ASIHTTPRequest.podspec
61 lines (50 loc) · 2.19 KB
/
ASIHTTPRequest.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Pod::Spec.new do |s|
s.name = 'ASIHTTPRequest'
s.version = '1.8.2'
s.summary = 'Easy to use CFNetwork wrapper for HTTP requests, Objective-C, Mac OS X and iPhone.'
s.homepage = 'http://allseeing-i.com/ASIHTTPRequest'
s.author = { 'Ben Copsey' => '[email protected]' }
s.license = 'New BSD License'
s.source = { :git => 'https://github.com/pokeb/asi-http-request.git', :tag => 'v1.8.2' }
s.description = %{
ASIHTTPRequest is an easy to use wrapper around the CFNetwork API that
makes some of the more tedious aspects of communicating with web servers
easier. It is written in Objective-C and works in both Mac OS X and iPhone
applications.
It is suitable performing basic HTTP requests and interacting with
REST-based services (GET / POST / PUT / DELETE). The included
ASIFormDataRequest subclass makes it easy to submit POST data and files
using multipart/form-data.
Please note that ASIHTTPRequest is not recommended for newer projects
since it's not actively maintained anymore.
For more info visit: http://allseeing-i.com/%5Brequest_release%5D
}
s.requires_arc = true
s.ios.deployment_target = '8.0'
# s.osx.deployment_target = '10.6'
s.subspec 'Core' do |core|
core.source_files = 'Classes/*.{h,m}'
core.ios.dependency 'Reachability' #, '~> 2.0', '>= 2.0.4'
core.ios.frameworks = 'MobileCoreServices', 'CFNetwork', 'CoreGraphics'
core.osx.exclude_files = '**/*ASIAuthenticationDialog*'
core.osx.frameworks = 'SystemConfiguration', 'CoreServices'
core.libraries = 'z.1'
end
s.subspec 'ASIWebPageRequest' do |ws|
ws.requires_arc = false
ws.source_files = 'Classes/ASIWebPageRequest/*.{h,m}'
ws.libraries = 'xml2.2'
ws.xcconfig = { 'HEADER_SEARCH_PATHS' => '"$(SDKROOT)/usr/include/libxml2"' }
ws.dependency 'ASIHTTPRequest/Core'
end
s.subspec 'CloudFiles' do |cfs|
cfs.requires_arc = false
cfs.source_files = 'Classes/CloudFiles/*.{h,m}','Classes/S3/ASINSXMLParserCompat.h'
cfs.dependency 'ASIHTTPRequest/Core'
end
s.subspec 'S3' do |s3s|
s3s.requires_arc = false
s3s.source_files = 'Classes/S3/*.{h,m}'
s3s.dependency 'ASIHTTPRequest/Core'
end
end