1
1
Pod ::Spec . new do |s |
2
2
s . name = 'CocoaAsyncSocket'
3
3
s . version = '7.3.1'
4
- s . license = 'public domain'
5
- s . summary = 'Asynchronous socket networking library for Mac and iOS'
4
+ s . license = { :type => 'public domain' , :text => <<-LICENSE
5
+ Public Domain License
6
+
7
+ The CocoaAsyncSocket project is in the public domain.
8
+
9
+ The original TCP version (AsyncSocket) was created by Dustin Voss in January 2003.
10
+ Updated and maintained by Deusty LLC and the Apple development community.
11
+ LICENSE
12
+ }
13
+ s . summary = 'Asynchronous socket networking library for Mac and iOS.'
6
14
s . homepage = 'https://github.com/robbiehanson/CocoaAsyncSocket'
7
15
s . authors = 'Dustin Voss' , { 'Robbie Hanson' => 'robbiehanson@deusty.com' }
8
16
9
- s . source = { :git => 'https://github.com/robbiehanson/CocoaAsyncSocket.git' , :commit => '8407f28d92aff1f95a73274e3f305794fc518a61' }
17
+ s . source = { :git => 'https://github.com/robbiehanson/CocoaAsyncSocket.git' ,
18
+ :tag => "#{ s . version } " }
10
19
11
20
s . description = 'CocoaAsyncSocket supports TCP and UDP. The AsyncSocket class is for TCP, and the AsyncUdpSocket class is for UDP. ' \
12
21
'AsyncSocket is a TCP/IP socket networking library that wraps CFSocket and CFStream. It offers asynchronous ' \
@@ -16,11 +25,13 @@ Pod::Spec.new do |s|
16
25
'delegate support, run-loop based, self-contained class, and support for IPv4 and IPv6.'
17
26
18
27
s . source_files = '{GCD,RunLoop}/*.{h,m}'
19
- s . clean_paths = 'Vendor' , 'GCD/Xcode' , 'RunLoop/Xcode'
28
+
20
29
s . requires_arc = true
21
- if config . ios?
22
- s . frameworks = [ 'CFNetwork' , 'Security' ]
23
- else
24
- s . frameworks = [ 'CoreServices' , 'Security' ]
25
- end
30
+
31
+ # dispatch_queue_set_specific() is available in OS X v10.7+ and iOS 5.0+
32
+ s . ios . deployment_target = '5.0'
33
+ s . osx . deployment_target = '10.7'
34
+
35
+ s . ios . frameworks = 'CFNetwork' , 'Security'
36
+ s . osx . frameworks = 'CoreServices' , 'Security'
26
37
end
0 commit comments