Skip to content

Commit d40cb37

Browse files
committed
Merge pull request robbiehanson#162 from appscape/update-podspec
Update podspec to new format
2 parents 8ac8a92 + 258709f commit d40cb37

File tree

1 file changed

+20
-9
lines changed

1 file changed

+20
-9
lines changed

CocoaAsyncSocket.podspec

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
Pod::Spec.new do |s|
22
s.name = 'CocoaAsyncSocket'
33
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.'
614
s.homepage = 'https://github.com/robbiehanson/CocoaAsyncSocket'
715
s.authors = 'Dustin Voss', { 'Robbie Hanson' => 'robbiehanson@deusty.com' }
816

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}" }
1019

1120
s.description = 'CocoaAsyncSocket supports TCP and UDP. The AsyncSocket class is for TCP, and the AsyncUdpSocket class is for UDP. ' \
1221
'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|
1625
'delegate support, run-loop based, self-contained class, and support for IPv4 and IPv6.'
1726

1827
s.source_files = '{GCD,RunLoop}/*.{h,m}'
19-
s.clean_paths = 'Vendor', 'GCD/Xcode', 'RunLoop/Xcode'
28+
2029
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'
2637
end

0 commit comments

Comments
 (0)