From c867eb4055d715b8aa56e1ce630e739df3abdc0a Mon Sep 17 00:00:00 2001 From: Thomas Van Lenten Date: Mon, 19 Jun 2017 10:46:26 -0400 Subject: Add default_subspecs to help avoid testing code ended up in apps. This has come up on issues #130 and #138. --- GoogleToolboxForMac.podspec | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'GoogleToolboxForMac.podspec') 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' -- cgit v1.2.3