diff options
author | Muxi Yan <muxi@users.noreply.github.com> | 2017-08-14 12:01:14 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-14 12:01:14 -0700 |
commit | b82f82b7251abc56bbe249644e1ee2f29956f4e2 (patch) | |
tree | 500fbf4c4c33320f9bb179410bc52ef5c84525fc /templates/gRPC.podspec.template | |
parent | 023bb45a2476e1a51e8c83b98be94740593ee6a5 (diff) |
Revert "Revert "Add OAuth2 protocol in GRPCClient""
Diffstat (limited to 'templates/gRPC.podspec.template')
-rw-r--r-- | templates/gRPC.podspec.template | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/templates/gRPC.podspec.template b/templates/gRPC.podspec.template index 62a6d37c3c..5c92f9f9c4 100644 --- a/templates/gRPC.podspec.template +++ b/templates/gRPC.podspec.template @@ -42,12 +42,9 @@ s.header_dir = name src_dir = 'src/objective-c/GRPCClient' - s.source_files = "#{src_dir}/*.{h,m}", "#{src_dir}/**/*.{h,m}" - s.private_header_files = "#{src_dir}/private/*.h" - s.header_mappings_dir = "#{src_dir}" - s.dependency 'gRPC-Core', version s.dependency 'gRPC-RxLibrary', version + s.default_subspec = 'Main' # Certificates, to be able to establish TLS connections: s.resource_bundles = { 'gRPCCertificates' => ['etc/roots.pem'] } @@ -56,4 +53,22 @@ # This is needed by all pods that depend on gRPC-RxLibrary: 'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES', } + + s.subspec 'Main' do |ss| + ss.header_mappings_dir = "#{src_dir}" + + ss.source_files = "#{src_dir}/*.{h,m}", "#{src_dir}/**/*.{h,m}" + ss.exclude_files = "#{src_dir}/GRPCCall+GID.{h,m}" + ss.private_header_files = "#{src_dir}/private/*.h" + + ss.dependency 'gRPC-Core', version + end + + s.subspec 'GID' do |ss| + ss.header_mappings_dir = "#{src_dir}" + + ss.source_files = "#{src_dir}/GRPCCall+GID.{h,m}" + + ss.dependency 'Google/SignIn' + end end |