aboutsummaryrefslogtreecommitdiff
path: root/GoogleToolboxForMac.podspec
diff options
context:
space:
mode:
authorGravatar Thomas Van Lenten <thomasvl@google.com>2017-06-19 10:46:26 -0400
committerGravatar Sergio Campamá <kaipi@google.com>2017-06-19 11:23:42 -0400
commitc867eb4055d715b8aa56e1ce630e739df3abdc0a (patch)
tree5d94346062b4a1fbfacaefba7d62e902588486b5 /GoogleToolboxForMac.podspec
parent7ae58d8e92ef356255165b9d22d7941273fd2545 (diff)
Add default_subspecs to help avoid testing code ended up in apps.
This has come up on issues #130 and #138.
Diffstat (limited to 'GoogleToolboxForMac.podspec')
-rw-r--r--GoogleToolboxForMac.podspec11
1 files changed, 11 insertions, 0 deletions
diff --git a/GoogleToolboxForMac.podspec b/GoogleToolboxForMac.podspec
index 452679a..b012c06 100644
--- a/GoogleToolboxForMac.podspec
+++ b/GoogleToolboxForMac.podspec
@@ -18,6 +18,17 @@ Pod::Spec.new do |s|
s.requires_arc = false
+ # Generally developers should use specific subspecs themselves to get the things they
+ # want; but set the default to ensure the testing only code doesn't bundle
+ # into a shipping app. This has come up a few times issues 130, 138. The current
+ # list here is everything that doesn't have a platform requirement and isn't
+ # testing only.
+ s.default_subspecs = 'Defines', 'Core', 'GeometryUtils', 'KVO', 'Logger', 'Regex',
+ 'StringEncoding', 'SystemVersion', 'URLBuilder', 'NSData+zlib',
+ 'NSDictionary+URLArguments', 'NSFileHandle+UniqueName',
+ 'NSScanner+JSON', 'NSString+HTML', 'NSString+URLArguments',
+ 'NSString+XML', 'NSThread+Blocks'
+
s.subspec 'Defines' do |sp|
sp.public_header_files = 'GTMDefines.h'
sp.source_files = 'GTMDefines.h'