aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/gRPC.podspec.template
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2017-07-28 13:10:26 -0700
committerGravatar Muxi Yan <mxyan@google.com>2017-07-28 13:10:26 -0700
commit021c29ea36603dd2415d7e3ab98f2b98c6320e15 (patch)
tree42a5f7effda31913217fc696b15e53dbc06e48ce /templates/gRPC.podspec.template
parentc95110a721e74bc7bf12cb9376d5997409473c58 (diff)
Create optional subspec for GRPCCall+GID
Diffstat (limited to 'templates/gRPC.podspec.template')
-rw-r--r--templates/gRPC.podspec.template23
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