|  | @@ -36,6 +36,27 @@ GRPC_LOCAL_SRC = '../../..'
 | 
	
		
			
				|  |  |    end
 | 
	
		
			
				|  |  |  end
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +%w(
 | 
	
		
			
				|  |  | +  InteropTestsRemoteCFStream
 | 
	
		
			
				|  |  | +  InteropTestsLocalSSLCFStream
 | 
	
		
			
				|  |  | +  InteropTestsLocalCleartextCFStream
 | 
	
		
			
				|  |  | +).each do |target_name|
 | 
	
		
			
				|  |  | +  target target_name do
 | 
	
		
			
				|  |  | +    pod 'Protobuf', :path => "#{GRPC_LOCAL_SRC}/third_party/protobuf", :inhibit_warnings => true
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    pod '!ProtoCompiler',            :path => "#{GRPC_LOCAL_SRC}/src/objective-c"
 | 
	
		
			
				|  |  | +    pod '!ProtoCompiler-gRPCPlugin', :path => "#{GRPC_LOCAL_SRC}/src/objective-c"
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    pod 'BoringSSL',                 :podspec => "#{GRPC_LOCAL_SRC}/src/objective-c", :inhibit_warnings => true
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    pod 'gRPC/CFStream',             :path => GRPC_LOCAL_SRC
 | 
	
		
			
				|  |  | +    pod 'gRPC-Core/CFStream-Implementation',       :path => GRPC_LOCAL_SRC
 | 
	
		
			
				|  |  | +    pod 'gRPC-RxLibrary', :path => GRPC_LOCAL_SRC
 | 
	
		
			
				|  |  | +    pod 'gRPC-ProtoRPC',  :path => GRPC_LOCAL_SRC, :inhibit_warnings => true
 | 
	
		
			
				|  |  | +    pod 'RemoteTest', :path => "RemoteTestClient", :inhibit_warnings => true
 | 
	
		
			
				|  |  | +  end
 | 
	
		
			
				|  |  | +end
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  %w(
 | 
	
		
			
				|  |  |    CoreCronetEnd2EndTests
 | 
	
		
			
				|  |  |    CronetUnitTests
 | 
	
	
		
			
				|  | @@ -65,7 +86,7 @@ end
 | 
	
		
			
				|  |  |  # TODO(jcanizales): Send a PR to Cocoapods to get rid of this need.
 | 
	
		
			
				|  |  |  pre_install do |installer|
 | 
	
		
			
				|  |  |    # This is the gRPC-Core podspec object, as initialized by its podspec file.
 | 
	
		
			
				|  |  | -  grpc_core_spec = installer.pod_targets.find{|t| t.name == 'gRPC-Core'}.root_spec
 | 
	
		
			
				|  |  | +  grpc_core_spec = installer.pod_targets.find{|t| t.name.start_with?('gRPC-Core')}.root_spec
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |    # Copied from gRPC-Core.podspec, except for the adjusted src_root:
 | 
	
		
			
				|  |  |    src_root = "$(PODS_ROOT)/../#{GRPC_LOCAL_SRC}"
 | 
	
	
		
			
				|  | @@ -96,7 +117,11 @@ post_install do |installer|
 | 
	
		
			
				|  |  |          # GPR_UNREACHABLE_CODE causes "Control may reach end of non-void
 | 
	
		
			
				|  |  |          # function" warning
 | 
	
		
			
				|  |  |          config.build_settings['GCC_WARN_ABOUT_RETURN_TYPE'] = 'NO'
 | 
	
		
			
				|  |  | -        config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] = '$(inherited) COCOAPODS=1 GRPC_CRONET_WITH_PACKET_COALESCING=1'
 | 
	
		
			
				|  |  | +        if target.name.include?('CFStream')
 | 
	
		
			
				|  |  | +          config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] = '$(inherited) COCOAPODS=1 GRPC_CFSTREAM=1'
 | 
	
		
			
				|  |  | +        else
 | 
	
		
			
				|  |  | +          config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] = '$(inherited) COCOAPODS=1 GRPC_CRONET_WITH_PACKET_COALESCING=1'
 | 
	
		
			
				|  |  | +        end
 | 
	
		
			
				|  |  |        end
 | 
	
		
			
				|  |  |      end
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -104,7 +129,7 @@ post_install do |installer|
 | 
	
		
			
				|  |  |      # the test target 'InteropTestsRemoteWithCronet'
 | 
	
		
			
				|  |  |      # Activate GRPCCall+InternalTests functions for the dedicated build configuration 'Test', which will
 | 
	
		
			
				|  |  |      # be used by all test targets using it.
 | 
	
		
			
				|  |  | -    if target.name == 'gRPC'
 | 
	
		
			
				|  |  | +    if target.name == 'gRPC' || target.name.start_with?('gRPC.')
 | 
	
		
			
				|  |  |        target.build_configurations.each do |config|
 | 
	
		
			
				|  |  |          if config.name == 'Cronet'
 | 
	
		
			
				|  |  |            config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] = '$(inherited) COCOAPODS=1 GRPC_COMPILE_WITH_CRONET=1 GRPC_TEST_OBJC=1'
 |