Commit 61c30bb 1 parent 397fa25 commit 61c30bb Copy full SHA for 61c30bb
File tree 5 files changed +45
-1
lines changed
lib/cocoapods-core/specification
5 files changed +45
-1
lines changed Original file line number Diff line number Diff line change 4
4
5
5
##### Enhancements
6
6
7
+ * Add ` project_header_files ` DSL to specifications.
8
+ [ Dimitris Koutsogiorgas] ( https://github.com/dnkoutso )
9
+ [ #692 ] ( https://github.com/CocoaPods/Core/pull/692 )
10
+
7
11
* Add support for ` on_demand_resources ` DSL.
8
12
[ JunyiXie] ( https://github.com/JunyiXie )
9
13
[ Dimitris Koutsogiorgas] ( https://github.com/dnkoutso )
Original file line number Diff line number Diff line change @@ -168,6 +168,10 @@ def user_target_xcconfig
168
168
#
169
169
spec_attr_accessor :public_header_files
170
170
171
+ # @return [Array<String>] the project headers of the Pod.
172
+ #
173
+ spec_attr_accessor :project_header_files
174
+
171
175
# @return [Array<String>] the private headers of the Pod.
172
176
#
173
177
spec_attr_accessor :private_header_files
Original file line number Diff line number Diff line change @@ -1259,6 +1259,32 @@ def dependency=(args)
1259
1259
1260
1260
#------------------#
1261
1261
1262
+ # @!method project_header_files=(project_header_files)
1263
+ #
1264
+ # A list of file patterns that should be used to mark project headers.
1265
+ #
1266
+ # ---
1267
+ #
1268
+ # These patterns are matched against the public headers (or all the
1269
+ # headers if no public headers have been specified) to exclude those
1270
+ # headers which should not be exposed to the user project and which
1271
+ # should not be used to generate the documentation. When the library
1272
+ # is built, these headers will _not_ appear in the build directory.
1273
+ #
1274
+ #
1275
+ # @example
1276
+ #
1277
+ # spec.project_header_files = 'Headers/Project/*.h'
1278
+ #
1279
+ # @param [String, Array<String>] project_header_files
1280
+ # the project headers of the Pod.
1281
+ #
1282
+ attribute :project_header_files ,
1283
+ :container => Array ,
1284
+ :file_patterns => true
1285
+
1286
+ #------------------#
1287
+
1262
1288
# @!method private_header_files=(private_header_files)
1263
1289
#
1264
1290
# A list of file patterns that should be used to mark private headers.
Original file line number Diff line number Diff line change @@ -435,7 +435,12 @@ module Pod
435
435
@consumer . public_header_files . should == [ 'include/**/*' ]
436
436
end
437
437
438
- it 'returns the public headers files' do
438
+ it 'returns the project headers files' do
439
+ @spec . project_header_files = [ 'project/**/*' ]
440
+ @consumer . project_header_files . should == [ 'project/**/*' ]
441
+ end
442
+
443
+ it 'returns the private headers files' do
439
444
@spec . private_header_files = [ 'private/**/*' ]
440
445
@consumer . private_header_files . should == [ 'private/**/*' ]
441
446
end
Original file line number Diff line number Diff line change @@ -415,6 +415,11 @@ module Pod
415
415
@spec . attributes_hash [ 'public_header_files' ] . should == [ 'include/**/*' ]
416
416
end
417
417
418
+ it 'allows to specify the project headers files' do
419
+ @spec . project_header_files = [ 'project/**/*' ]
420
+ @spec . attributes_hash [ 'project_header_files' ] . should == [ 'project/**/*' ]
421
+ end
422
+
418
423
it 'allows to specify the private headers files' do
419
424
@spec . private_header_files = [ 'private/**/*' ]
420
425
@spec . attributes_hash [ 'private_header_files' ] . should == [ 'private/**/*' ]
You can’t perform that action at this time.
0 commit comments