From 37cce16d862b56fb0cef8207712d7fed6507db72 Mon Sep 17 00:00:00 2001 From: Muxi Yan Date: Tue, 12 Nov 2019 10:31:38 -0800 Subject: [PATCH] Fix gRPC-C++ Cronet subspec --- templates/gRPC-C++.podspec.template | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/templates/gRPC-C++.podspec.template b/templates/gRPC-C++.podspec.template index 4d45820f51e..57530b23018 100644 --- a/templates/gRPC-C++.podspec.template +++ b/templates/gRPC-C++.podspec.template @@ -199,13 +199,19 @@ ss.source_files = ${ruby_multiline_list(grpcpp_proto_files(filegroups), 22)} end - s.subspec 'Cronet' do |ss| + s.subspec 'Cronet-Interface' do |ss| + ss.header_mappings_dir = 'include/grpcpp' + ss.public_header_files = "include/grpcpp/security/cronet_credentials.h", + "include/grpcpp/security/cronet_credentials_impl.h" + ss.source_files = "include/grpcpp/security/cronet_credentials.h", + "include/grpcpp/security/cronet_credentials_impl.h" + end + + s.subspec 'Cronet-Implementation' do |ss| ss.header_mappings_dir = 'include/grpcpp' ss.dependency 'gRPC-Core/Cronet-Implementation', version ss.dependency "#{s.name}/Implementation", version - ss.public_header_files = "include/grpcpp/security/cronet_credentials.h", - "include/grpcpp/security/cronet_credentials_impl.h" ss.source_files = "src/cpp/client/cronet_credentials.cc" end