Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
6665153f
Commit
6665153f
authored
Sep 10, 2014
by
Marius Rackwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Pod::Generator::UmbrellaHeader
parent
f8ee5112
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
0 deletions
+45
-0
cocoapods.rb
lib/cocoapods.rb
+1
-0
umbrella_header.rb
lib/cocoapods/generator/umbrella_header.rb
+44
-0
No files found.
lib/cocoapods.rb
View file @
6665153f
...
@@ -60,6 +60,7 @@ module Pod
...
@@ -60,6 +60,7 @@ module Pod
autoload
:InfoPlistFile
,
'cocoapods/generator/info_plist_file'
autoload
:InfoPlistFile
,
'cocoapods/generator/info_plist_file'
autoload
:PrefixHeader
,
'cocoapods/generator/prefix_header'
autoload
:PrefixHeader
,
'cocoapods/generator/prefix_header'
autoload
:TargetEnvironmentHeader
,
'cocoapods/generator/target_environment_header'
autoload
:TargetEnvironmentHeader
,
'cocoapods/generator/target_environment_header'
autoload
:UmbrellaHeader
,
'cocoapods/generator/umbrella_header'
autoload
:XCConfig
,
'cocoapods/generator/xcconfig'
autoload
:XCConfig
,
'cocoapods/generator/xcconfig'
end
end
...
...
lib/cocoapods/generator/umbrella_header.rb
0 → 100644
View file @
6665153f
module
Pod
module
Generator
# Generates an umbrella header file for clang modules, which are used by
# dynamic frameworks on iOS 8 and OSX 10.10 under the hood.
#
# If the target is a +PodTarget+, then the umbrella header is required
# to make all public headers in a convenient manner available without the
# need to write out header declarations for every library header.
#
class
UmbrellaHeader
<
Header
# @return [Target]
# the target, which provides the product name
attr_accessor
:target
# @param [Target] target
# @see target
#
def
initialize
(
target
)
super
(
target
.
target_definition
.
platform
)
@target
=
target
end
# Generates the contents of the umbrella header according to the included
# pods.
#
# @return [String]
#
def
generate
result
=
super
result
<<
"
\n
"
result
<<
<<-
eos
.
strip_heredoc
FOUNDATION_EXPORT double
#{
target
.
product_module_name
}
VersionNumber;
FOUNDATION_EXPORT const unsigned char
#{
target
.
product_module_name
}
VersionString[];
eos
result
<<
"
\n
"
result
end
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment