Prashant Jaikumar 8b10d5faa7 Fix GrpcIosTestUITests flake and add some more testcases. 6 anos atrás
..
GRPCClient 71727d1efb Merge remote-tracking branch 'upstream/master' into default-cfstream-2 6 anos atrás
ProtoRPC f7ca97a6fe clang-format 7 anos atrás
RxLibrary 121e04bc1e address comments 2 7 anos atrás
examples 76f1ec16e1 sensible nullability annotation for old API 7 anos atrás
manual_tests 8b10d5faa7 Fix GrpcIosTestUITests flake and add some more testcases. 6 anos atrás
tests 71727d1efb Merge remote-tracking branch 'upstream/master' into default-cfstream-2 6 anos atrás
!ProtoCompiler-gRPCPlugin.podspec 0231bf3b01 Regenerate projects 6 anos atrás
!ProtoCompiler.podspec 44a646bc39 more commits for v1.19.0 6 anos atrás
BoringSSL-GRPC.podspec 44a646bc39 more commits for v1.19.0 6 anos atrás
CronetFramework.podspec 123d0dbd61 bug fix 9 anos atrás
NetworkTransitionBehavior.md 5d4bb063e1 Fix grammar 7 anos atrás
README-CFSTREAM.md b9e53ee368 Nit polish on the user manual 7 anos atrás
README.md e8d6d47854 Update README for #16821 7 anos atrás
change-comments.py 7897ae9308 auto-fix most of licenses 8 anos atrás
format-all-comments.sh 7897ae9308 auto-fix most of licenses 8 anos atrás
grpc_shadow_boringssl_symbol_list b24b212ee5 Make symbols of BoringSSL private to gRPC 7 anos atrás

README-CFSTREAM.md

Cocoapods

gRPC Objective-C with CFStream

gRPC Objective-C library now provides the option to use Apple's CFStream API (rather than TCP sockets) for networking. Using CFStream resolves a bunch of network connectivity transition issues (see the doc for more information).

CFStream integration is now in experimental state. You will need explicit opt-in to use it to get the benefits of resolving the issues above. We expect to make CFStream the default networking interface that gRPC uses when it is ready for production.

Usage

If you use gRPC following the instructions in README.md:

  • Replace the dependency on gRPC-ProtoRPC with gRPC-ProtoRPC/CFStream.
  • Enable CFStream with environment variable grpc_cfstream=1. This can be done either in Xcode console or by your code with setenv() before gRPC is initialized.

If your project directly depends on podspecs other than gRPC-ProtoRPC (e.g. gRPC or gRPC-Core):

  • Make your projects depend on subspecs corresponding to CFStream in each gRPC podspec.
  • Enable CFStream with environment variable grpc_cfstream=1. This can be done either in Xcode console or by your code with setenv() before gRPC is initialized.

Notes

  • Currently we do not support platforms other than iOS, although it is likely that this integration can run on MacOS targets with Apple's compiler.
  • Let us know if you meet any issue by filing issue and ping @muxi.