forked from pokeb/asi-http-request
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ASIHTTPRequest.podspec
46 lines (37 loc) · 1.66 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
Pod::Spec.new do |s|
s.name = 'ASIHTTPRequest'
s.version = '1.8.1'
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.1' }
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.
}
s.ios.dependency 'Reachability' #, '~> 2.0', '>= 2.0.4'
s.ios.source_files = 'Classes'
s.ios.frameworks = 'MobileCoreServices', 'CFNetwork', 'CoreGraphics'
s.osx.source_files = FileList['Classes/*.*'].exclude(/ASIAuthenticationDialog/)
s.osx.frameworks = 'SystemConfiguration', 'CoreServices'
s.library = 'z.1'
s.compiler_flags = '-Wno-format', '-Wno-format-extra-args'
s.subspec 'ASIWebPageRequest' do |ws|
ws.source_files = 'Classes/ASIWebPageRequest/'
ws.library = 'xml2.2'
ws.xcconfig = { 'HEADER_SEARCH_PATHS' => '$(SDKROOT)/usr/include/libxml2' }
end
s.subspec 'CloudFiles' do |cfs|
cfs.source_files = 'Classes/CloudFiles/'
end
s.subspec 'S3' do |s3s|
s3s.source_files = 'Classes/S3/'
end
end