Skip to content

Commit

Permalink
Merge pull request grpc#3567 from jcanizales/fix-podspec
Browse files Browse the repository at this point in the history
Make podspec lint pass for submitting ObjC beta to Cocoapods
  • Loading branch information
murgatroid99 committed Sep 29, 2015
2 parents ba2829e + 423f412 commit fa69f19
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
7 changes: 4 additions & 3 deletions gRPC.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,15 @@

Pod::Spec.new do |s|
s.name = 'gRPC'
s.version = '0.11.0'
version = '0.11.1'
s.version = version
s.summary = 'gRPC client library for iOS/OSX'
s.homepage = 'http://www.grpc.io'
s.license = 'New BSD'
s.authors = { 'The gRPC contributors' => 'grpc-packages@google.com' }

# s.source = { :git => 'https://github.com/grpc/grpc.git',
# :tag => 'release-0_11_0-objectivec-0.11.0' }
s.source = { :git => 'https://github.com/grpc/grpc.git',
:tag => "release-#{version.gsub(/\./, '_')}-objectivec-#{version}" }

s.ios.deployment_target = '7.1'
s.osx.deployment_target = '10.9'
Expand Down
2 changes: 0 additions & 2 deletions include/grpc/support/port_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,6 @@
#endif /* _LP64 */
#elif defined(__APPLE__)
#include <TargetConditionals.h>
/* Provides IPV6_RECVPKTINFO */
#define __APPLE_USE_RFC_3542
#ifndef _BSD_SOURCE
#define _BSD_SOURCE
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/core/iomgr/udp_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ static int prepare_socket(int fd, const struct sockaddr *addr, int addr_len) {
rc = setsockopt(fd, IPPROTO_IP, IP_PKTINFO, &get_local_ip,
sizeof(get_local_ip));
if (rc == 0 && addr->sa_family == AF_INET6) {
#if !TARGET_OS_IPHONE
#if !defined(__APPLE__)
rc = setsockopt(fd, IPPROTO_IPV6, IPV6_RECVPKTINFO, &get_local_ip,
sizeof(get_local_ip));
#endif
Expand Down
10 changes: 6 additions & 4 deletions templates/gRPC.podspec.template
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,16 @@
%>
Pod::Spec.new do |s|
s.name = 'gRPC'
s.version = '0.11.0'
version = '0.11.1'
s.version = version
s.summary = 'gRPC client library for iOS/OSX'
s.homepage = 'http://www.grpc.io'
s.license = 'New BSD'
s.authors = { 'The gRPC contributors' => 'grpc-packages@google.com' }

# s.source = { :git => 'https://github.com/grpc/grpc.git',
# :tag => 'release-0_11_0-objectivec-0.11.0' }

s.source = { :git => 'https://github.com/grpc/grpc.git',
:tag => "release-#{version.gsub(/\./, '_')}-objectivec-#{version}" }


s.ios.deployment_target = '7.1'
s.osx.deployment_target = '10.9'
Expand Down

0 comments on commit fa69f19

Please sign in to comment.