Skip to content

Commit

Permalink
Merge pull request #24282 from veblush/ios-bump
Browse files Browse the repository at this point in the history
Bump iOS and OSX version
  • Loading branch information
veblush authored Oct 7, 2020
2 parents 89b3444 + ccf3cbc commit be23ad0
Show file tree
Hide file tree
Showing 48 changed files with 106 additions and 124 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ endif()
if(gRPC_BACKWARDS_COMPATIBILITY_MODE)
add_definitions(-DGPR_BACKWARDS_COMPATIBILITY_MODE)
if(_gRPC_PLATFORM_MAC)
# some C++11 constructs not supported before OS X 10.9
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.9)
# some C++11 constructs not supported before OS X 10.10
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.10)
endif()
endif()

Expand Down
4 changes: 2 additions & 2 deletions examples/objective-c/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ ios_application(
"ipad",
],
infoplists = ["helloworld/HelloWorld/Info.plist"],
minimum_os_version = "8.0",
minimum_os_version = "9.0",
tags = ["manual"],
deps = [":HelloWorld-lib"],
)
Expand Down Expand Up @@ -113,7 +113,7 @@ ios_application(
"ipad",
],
infoplists = ["route_guide/Misc/Info.plist"],
minimum_os_version = "8.0",
minimum_os_version = "9.0",
tags = ["manual"],
deps = [":RouteGuideClient-lib"],
)
4 changes: 2 additions & 2 deletions examples/objective-c/auth_sample/AuthTestService.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ Pod::Spec.new do |s|
s.summary = "AuthTestService example"
s.source = { :git => 'https://github.com/grpc/grpc.git' }

s.ios.deployment_target = "7.1"
s.osx.deployment_target = "10.9"
s.ios.deployment_target = "9.0"
s.osx.deployment_target = "10.10"

# Base directory where the .proto files are.
src = "../../protos"
Expand Down
4 changes: 2 additions & 2 deletions examples/objective-c/helloworld/HelloWorld.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ Pod::Spec.new do |s|
s.summary = "HelloWorld example"
s.source = { :git => 'https://github.com/grpc/grpc.git' }

s.ios.deployment_target = "7.1"
s.osx.deployment_target = "10.9"
s.ios.deployment_target = "9.0"
s.osx.deployment_target = "10.10"

# Base directory where the .proto files are.
src = "../../protos"
Expand Down
2 changes: 1 addition & 1 deletion examples/objective-c/helloworld/Podfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
platform :ios, '9.0'

install! 'cocoapods', :deterministic_uuids => false

Expand Down
4 changes: 2 additions & 2 deletions examples/objective-c/helloworld_macos/HelloWorld.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ Pod::Spec.new do |s|
s.summary = "HelloWorld example"
s.source = { :git => 'https://github.com/grpc/grpc.git' }

s.ios.deployment_target = "7.1"
s.osx.deployment_target = "10.9"
s.ios.deployment_target = "9.0"
s.osx.deployment_target = "10.10"

# Base directory where the .proto files are.
src = "../../protos"
Expand Down
2 changes: 1 addition & 1 deletion examples/objective-c/helloworld_macos/Podfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
source 'https://github.com/CocoaPods/Specs.git'
platform :macos, '10.9'
platform :macos, '10.10'

install! 'cocoapods', :deterministic_uuids => false

Expand Down
2 changes: 1 addition & 1 deletion examples/objective-c/route_guide/Podfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
platform :ios, '9.0'

install! 'cocoapods', :deterministic_uuids => false

Expand Down
4 changes: 2 additions & 2 deletions examples/objective-c/route_guide/RouteGuide.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ Pod::Spec.new do |s|
s.summary = "RouteGuide example"
s.source = { :git => 'https://github.com/grpc/grpc.git' }

s.ios.deployment_target = "7.1"
s.osx.deployment_target = "10.9"
s.ios.deployment_target = "9.0"
s.osx.deployment_target = "10.10"

# Base directory where the .proto files are.
src = "../../protos"
Expand Down
4 changes: 2 additions & 2 deletions gRPC-C++.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ Pod::Spec.new do |s|
:tag => "v#{version}",
}

s.ios.deployment_target = '7.0'
s.osx.deployment_target = '10.9'
s.ios.deployment_target = '9.0'
s.osx.deployment_target = '10.10'
s.tvos.deployment_target = '10.0'

s.requires_arc = false
Expand Down
4 changes: 2 additions & 2 deletions gRPC-Core.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ Pod::Spec.new do |s|
# which was released in Cocoapods v1.2.0.
s.cocoapods_version = '>= 1.2.0'

s.ios.deployment_target = '7.0'
s.osx.deployment_target = '10.9'
s.ios.deployment_target = '9.0'
s.osx.deployment_target = '10.10'
s.tvos.deployment_target = '10.0'
s.watchos.deployment_target = '4.0'

Expand Down
4 changes: 2 additions & 2 deletions gRPC-ProtoRPC.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ Pod::Spec.new do |s|
:tag => "v#{version}",
}

s.ios.deployment_target = '7.0'
s.osx.deployment_target = '10.9'
s.ios.deployment_target = '9.0'
s.osx.deployment_target = '10.10'
s.tvos.deployment_target = '10.0'
s.watchos.deployment_target = '4.0'

Expand Down
4 changes: 2 additions & 2 deletions gRPC-RxLibrary.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ Pod::Spec.new do |s|
:tag => "v#{version}",
}

s.ios.deployment_target = '7.0'
s.osx.deployment_target = '10.9'
s.ios.deployment_target = '9.0'
s.osx.deployment_target = '10.10'
s.tvos.deployment_target = '10.0'
s.watchos.deployment_target = '4.0'

Expand Down
26 changes: 13 additions & 13 deletions gRPC.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ Pod::Spec.new do |s|
'CLANG_WARN_STRICT_PROTOTYPES' => 'NO',
}

s.ios.deployment_target = '7.0'
s.osx.deployment_target = '10.9'
s.ios.deployment_target = '9.0'
s.osx.deployment_target = '10.10'
s.tvos.deployment_target = '10.0'
s.watchos.deployment_target = '4.0'

Expand All @@ -70,8 +70,8 @@ Pod::Spec.new do |s|
"src/objective-c/GRPCClient/GRPCTypes.m"
ss.dependency "gRPC-RxLibrary/Interface", version

ss.ios.deployment_target = '7.0'
ss.osx.deployment_target = '10.9'
ss.ios.deployment_target = '9.0'
ss.osx.deployment_target = '10.10'
ss.tvos.deployment_target = '10.0'
ss.watchos.deployment_target = '4.0'
end
Expand Down Expand Up @@ -105,8 +105,8 @@ Pod::Spec.new do |s|

ss.dependency "#{s.name}/Interface-Legacy", version

ss.ios.deployment_target = '7.0'
ss.osx.deployment_target = '10.9'
ss.ios.deployment_target = '9.0'
ss.osx.deployment_target = '10.10'
ss.tvos.deployment_target = '10.0'
ss.watchos.deployment_target = '4.0'
end
Expand Down Expand Up @@ -141,8 +141,8 @@ Pod::Spec.new do |s|
ss.dependency 'gRPC-Core', version
ss.dependency 'gRPC-RxLibrary', version

ss.ios.deployment_target = '7.0'
ss.osx.deployment_target = '10.9'
ss.ios.deployment_target = '9.0'
ss.osx.deployment_target = '10.10'
ss.tvos.deployment_target = '10.0'
ss.watchos.deployment_target = '4.0'
end
Expand All @@ -157,15 +157,15 @@ Pod::Spec.new do |s|
ss.dependency 'gRPC-Core/Cronet-Implementation', version
ss.dependency 'CronetFramework'

ss.ios.deployment_target = '8.0'
ss.ios.deployment_target = '9.0'
end

# CFStream is now default. Leaving this subspec only for compatibility purpose.
s.subspec 'CFStream' do |ss|
ss.dependency "#{s.name}/GRPCCore", version

ss.ios.deployment_target = '7.0'
ss.osx.deployment_target = '10.9'
ss.ios.deployment_target = '9.0'
ss.osx.deployment_target = '10.10'
ss.tvos.deployment_target = '10.0'
ss.watchos.deployment_target = '4.0'
end
Expand All @@ -176,8 +176,8 @@ Pod::Spec.new do |s|
ss.source_files = 'src/objective-c/GRPCClient/internal_testing/*.{h,m}'
ss.header_mappings_dir = 'src/objective-c/GRPCClient'

ss.ios.deployment_target = '7.0'
ss.osx.deployment_target = '10.9'
ss.ios.deployment_target = '9.0'
ss.osx.deployment_target = '10.10'
ss.tvos.deployment_target = '10.0'
ss.watchos.deployment_target = '4.0'
end
Expand Down
18 changes: 0 additions & 18 deletions include/grpc/impl/codegen/port_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,23 +208,6 @@
#define GRPC_ARES 0
#else /* TARGET_OS_IPHONE */
#define GPR_PLATFORM_STRING "osx"
#ifdef __MAC_OS_X_VERSION_MIN_REQUIRED
#if __MAC_OS_X_VERSION_MIN_REQUIRED < __MAC_10_7
#define GPR_CPU_IPHONE 1
#define GPR_PTHREAD_TLS 1
#else /* __MAC_OS_X_VERSION_MIN_REQUIRED < __MAC_10_7 */
#define GPR_CPU_POSIX 1
/* TODO(vjpai): there is a reported issue in bazel build for Mac where __thread
in a header is currently not working (bazelbuild/bazel#4341). Remove
the following conditional and use GPR_GCC_TLS when that is fixed */
#ifndef GRPC_BAZEL_BUILD
#define GPR_GCC_TLS 1
#else /* GRPC_BAZEL_BUILD */
#define GPR_PTHREAD_TLS 1
#endif /* GRPC_BAZEL_BUILD */
#define GPR_APPLE_PTHREAD_NAME 1
#endif
#else /* __MAC_OS_X_VERSION_MIN_REQUIRED */
#define GPR_CPU_POSIX 1
/* TODO(vjpai): Remove the following conditional and use only GPR_GCC_TLS
when bazelbuild/bazel#4341 is fixed */
Expand All @@ -233,7 +216,6 @@
#else /* GRPC_BAZEL_BUILD */
#define GPR_PTHREAD_TLS 1
#endif /* GRPC_BAZEL_BUILD */
#endif
#define GPR_POSIX_CRASH_HANDLER 1
#endif
#define GPR_APPLE 1
Expand Down
4 changes: 2 additions & 2 deletions src/cpp/Protobuf-C++.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ Pod::Spec.new do |s|

s.header_mappings_dir = 'src'

s.ios.deployment_target = '7.0'
s.osx.deployment_target = '10.9'
s.ios.deployment_target = '9.0'
s.osx.deployment_target = '10.10'
s.tvos.deployment_target = '9.0'
s.watchos.deployment_target = '2.0'

Expand Down
4 changes: 2 additions & 2 deletions src/csharp/experimental/build_native_ext_for_ios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ function build {
PATH_CC="$(xcrun --sdk $SDK --find clang)"
PATH_CXX="$(xcrun --sdk $SDK --find clang++)"

CPPFLAGS="-O2 -Wframe-larger-than=16384 -arch $ARCH -isysroot $(xcrun --sdk $SDK --show-sdk-path) -mios-version-min=6.0 -DPB_NO_PACKED_STRUCTS=1"
LDFLAGS="-arch $ARCH -isysroot $(xcrun --sdk $SDK --show-sdk-path) -Wl,ios_version_min=6.0"
CPPFLAGS="-O2 -Wframe-larger-than=16384 -arch $ARCH -isysroot $(xcrun --sdk $SDK --show-sdk-path) -mios-version-min=9.0 -DPB_NO_PACKED_STRUCTS=1"
LDFLAGS="-arch $ARCH -isysroot $(xcrun --sdk $SDK --show-sdk-path) -Wl,ios_version_min=9.0"

# TODO(jtattermusch): revisit the build arguments
make -j4 static_csharp \
Expand Down
4 changes: 2 additions & 2 deletions src/objective-c/!ProtoCompiler-gRPCCppPlugin.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ Pod::Spec.new do |s|
# Restrict the protoc version to the one supported by this plugin.
s.dependency '!ProtoCompiler', '3.13.0'
# For the Protobuf dependency not to complain:
s.ios.deployment_target = '7.0'
s.osx.deployment_target = '10.9'
s.ios.deployment_target = '9.0'
s.osx.deployment_target = '10.10'
s.tvos.deployment_target = '10.0'
s.watchos.deployment_target = '2.0'

Expand Down
4 changes: 2 additions & 2 deletions src/objective-c/!ProtoCompiler-gRPCPlugin.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ Pod::Spec.new do |s|
# Restrict the protoc version to the one supported by this plugin.
s.dependency '!ProtoCompiler', '3.13.0'
# For the Protobuf dependency not to complain:
s.ios.deployment_target = '7.0'
s.osx.deployment_target = '10.9'
s.ios.deployment_target = '9.0'
s.osx.deployment_target = '10.10'
s.tvos.deployment_target = '10.0'

# watchOS is disabled due to #20258.
Expand Down
4 changes: 2 additions & 2 deletions src/objective-c/!ProtoCompiler.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ Pod::Spec.new do |s|
# Restrict the protobuf runtime version to the one supported by this version of protoc.
s.dependency 'Protobuf', '~> 3.0'
# For the Protobuf dependency not to complain:
s.ios.deployment_target = '7.0'
s.osx.deployment_target = '10.9'
s.ios.deployment_target = '9.0'
s.osx.deployment_target = '10.10'
s.tvos.deployment_target = '10.0'
s.watchos.deployment_target = '4.0'

Expand Down
4 changes: 2 additions & 2 deletions src/objective-c/BoringSSL-GRPC.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ Pod::Spec.new do |s|
:commit => "88aeb757f1a415c71fb4cbf5af936ecae4bc8179",
}

s.ios.deployment_target = '7.0'
s.osx.deployment_target = '10.7'
s.ios.deployment_target = '9.0'
s.osx.deployment_target = '10.10'
s.tvos.deployment_target = '10.0'
s.watchos.deployment_target = '4.0'

Expand Down
2 changes: 1 addition & 1 deletion src/objective-c/CronetFramework.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Pod::Spec.new do |s|
}
s.vendored_framework = "Cronet.framework"
s.author = "The Chromium Authors"
s.ios.deployment_target = "8.0"
s.ios.deployment_target = "9.0"
s.source = { :http => "https://storage.googleapis.com/grpc-precompiled-binaries/cronet/Cronet.framework-v#{v}.zip"}
s.preserve_paths = "Cronet.framework"
s.public_header_files = "Cronet.framework/Headers/**/*{.h}"
Expand Down
6 changes: 3 additions & 3 deletions src/objective-c/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[![Cocoapods](https://img.shields.io/cocoapods/v/gRPC.svg)](https://cocoapods.org/pods/gRPC)
# gRPC for Objective-C
gRPC Objective C library provides Objective C API for users to make gRPC calls on iOS or OS X
platforms. Currently, the minimum supported iOS version is 7.0 and OS X version is 10.9 (Mavericks).
platforms. Currently, the minimum supported iOS version is 9.0 and OS X version is 10.10 (Yosemite).

While gRPC doesn't require the use of an IDL to describe the API of services, using one simplifies
usage and adds some interoperability guarantees. Here we use [Protocol Buffers][], and provide a
Expand Down Expand Up @@ -43,8 +43,8 @@ Pod::Spec.new do |s|
s.summary = '...'
s.source = { :git => 'https://github.com/...' }

s.ios.deployment_target = '7.1'
s.osx.deployment_target = '10.9'
s.ios.deployment_target = '9.0'
s.osx.deployment_target = '10.10'

# Base directory where the .proto files are.
src = '.'
Expand Down
2 changes: 1 addition & 1 deletion src/objective-c/examples/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ ios_application(
"ipad",
],
infoplists = ["Sample/Sample/Info.plist"],
minimum_os_version = "8.0",
minimum_os_version = "9.0",
visibility = ["//visibility:public"],
deps = ["Sample-lib"],
)
Expand Down
2 changes: 1 addition & 1 deletion src/objective-c/examples/InterceptorSample/Podfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
platform :ios, '8.0'
platform :ios, '9.0'

install! 'cocoapods', :deterministic_uuids => false

Expand Down
4 changes: 2 additions & 2 deletions src/objective-c/examples/RemoteTestClient/RemoteTest.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ Pod::Spec.new do |s|
s.summary = 'RemoteTest example'
s.source = { :git => 'https://github.com/grpc/grpc.git' }

s.ios.deployment_target = '7.1'
s.osx.deployment_target = '10.9'
s.ios.deployment_target = '9.0'
s.osx.deployment_target = '10.10'
s.tvos.deployment_target = '10.0'
s.watchos.deployment_target = '4.0'

Expand Down
2 changes: 1 addition & 1 deletion src/objective-c/examples/Sample/Podfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
platform :ios, '9.0'

install! 'cocoapods', :deterministic_uuids => false

Expand Down
2 changes: 1 addition & 1 deletion src/objective-c/examples/SwiftSample/Podfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
platform :ios, '9.0'

install! 'cocoapods', :deterministic_uuids => false

Expand Down
2 changes: 1 addition & 1 deletion src/objective-c/examples/watchOS-sample/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def grpc_deps
end

target 'watchOS-sample' do
platform :ios, '8.0'
platform :ios, '9.0'
grpc_deps
end

Expand Down
2 changes: 1 addition & 1 deletion src/objective-c/manual_tests/Podfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
platform :ios, '9.0'

install! 'cocoapods', :deterministic_uuids => false

Expand Down
Loading

0 comments on commit be23ad0

Please sign in to comment.