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
93ddfa2a
Commit
93ddfa2a
authored
Nov 03, 2014
by
Marius Rackwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Refactor] Extracted product_basename from Target's product name getters
parent
f086a013
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
target.rb
lib/cocoapods/target.rb
+10
-4
No files found.
lib/cocoapods/target.rb
View file @
93ddfa2a
...
@@ -37,16 +37,22 @@ module Pod
...
@@ -37,16 +37,22 @@ module Pod
end
end
end
end
# @return [String] the name of the framework.
# @return [String] the name of the product excluding the file extension.
#
def
product_basename
label
end
# @return [String] the name of the framework, depends on #product_basename.
#
#
def
framework_name
def
framework_name
"
#{
label
}
.framework"
"
#{
product_basename
}
.framework"
end
end
# @return [String] the name of the library.
# @return [String] the name of the library
, depends on #product_basename
.
#
#
def
static_library_name
def
static_library_name
"lib
#{
label
}
.a"
"lib
#{
product_basename
}
.a"
end
end
# @return [Symbol] either :framework or :static_library, depends on
# @return [Symbol] either :framework or :static_library, depends on
...
...
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