Skip to content

Commit

Permalink
Add default_subspecs to help avoid testing code ended up in apps.
Browse files Browse the repository at this point in the history
This has come up on issues google#130 and google#138.
  • Loading branch information
thomasvl committed Jun 19, 2017
1 parent 7ae58d8 commit b548ba0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions GoogleToolboxForMac.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit b548ba0

Please sign in to comment.