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
41ac8d24
Commit
41ac8d24
authored
Feb 01, 2018
by
Samuel Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert target name changes
While well-intentioned, they broke cross-project target dependency detection
parent
95276786
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
11 deletions
+15
-11
target.rb
lib/cocoapods/target.rb
+6
-2
aggregate_xcconfig_spec.rb
spec/unit/generator/xcconfig/aggregate_xcconfig_spec.rb
+1
-1
aggregate_target_spec.rb
spec/unit/target/aggregate_target_spec.rb
+1
-1
pod_target_spec.rb
spec/unit/target/pod_target_spec.rb
+7
-7
No files found.
lib/cocoapods/target.rb
View file @
41ac8d24
...
...
@@ -45,7 +45,11 @@ module Pod
# and #product_module_name or #label.
#
def
product_basename
product_module_name
if
requires_frameworks?
product_module_name
else
label
end
end
# @return [String] the name of the framework, depends on #label.
...
...
@@ -63,7 +67,7 @@ module Pod
# used for migration.
#
def
static_library_name
"lib
#{
product_module_name
}
.a"
"lib
#{
label
}
.a"
end
# @return [Symbol] either :framework or :static_library, depends on
...
...
spec/unit/generator/xcconfig/aggregate_xcconfig_spec.rb
View file @
41ac8d24
...
...
@@ -156,7 +156,7 @@ module Pod
end
it
'links the pod targets with the aggregate target'
do
@xcconfig
.
to_hash
[
'OTHER_LDFLAGS'
].
should
.
include
'-l"BananaLib"'
@xcconfig
.
to_hash
[
'OTHER_LDFLAGS'
].
should
.
include
'-l"BananaLib
-Pods
"'
end
end
...
...
spec/unit/target/aggregate_target_spec.rb
View file @
41ac8d24
...
...
@@ -433,7 +433,7 @@ module Pod
end
it
'returns the library name'
do
@target
.
static_library_name
.
should
==
'libPods
_iOS_
Example.a'
@target
.
static_library_name
.
should
==
'libPods
-iOS
Example.a'
end
it
'returns :framework as product type'
do
...
...
spec/unit/target/pod_target_spec.rb
View file @
41ac8d24
...
...
@@ -48,7 +48,7 @@ module Pod
it
'returns the name of its product'
do
@pod_target
.
product_name
.
should
==
'libBananaLib.a'
@pod_target
.
scoped
.
first
.
product_name
.
should
==
'libBananaLib.a'
@pod_target
.
scoped
.
first
.
product_name
.
should
==
'libBananaLib
-Pods
.a'
end
it
'returns the spec consumers for the pod targets'
do
...
...
@@ -225,9 +225,9 @@ module Pod
it
'returns the path for the CONFIGURATION_BUILD_DIR build setting'
do
@pod_target
.
build_product_path
.
should
==
'${PODS_CONFIGURATION_BUILD_DIR}/BananaLib/libBananaLib.a'
@pod_target
.
scoped
.
first
.
build_product_path
.
should
==
'${PODS_CONFIGURATION_BUILD_DIR}/BananaLib-Pods/libBananaLib.a'
@pod_target
.
scoped
.
first
.
build_product_path
.
should
==
'${PODS_CONFIGURATION_BUILD_DIR}/BananaLib-Pods/libBananaLib
-Pods
.a'
@pod_target
.
build_product_path
(
'$BUILT_PRODUCTS_DIR'
).
should
==
'$BUILT_PRODUCTS_DIR/BananaLib/libBananaLib.a'
@pod_target
.
scoped
.
first
.
build_product_path
(
'$BUILT_PRODUCTS_DIR'
).
should
==
'$BUILT_PRODUCTS_DIR/BananaLib-Pods/libBananaLib.a'
@pod_target
.
scoped
.
first
.
build_product_path
(
'$BUILT_PRODUCTS_DIR'
).
should
==
'$BUILT_PRODUCTS_DIR/BananaLib-Pods/libBananaLib
-Pods
.a'
end
it
'returns prefix header path'
do
...
...
@@ -369,7 +369,7 @@ module Pod
it
'returns the library name'
do
@pod_target
.
static_library_name
.
should
==
'libBananaLib.a'
@pod_target
.
scoped
.
first
.
static_library_name
.
should
==
'libBananaLib.a'
@pod_target
.
scoped
.
first
.
static_library_name
.
should
==
'libBananaLib
-Pods
.a'
end
it
'returns :framework as product type'
do
...
...
@@ -388,7 +388,7 @@ module Pod
describe
'Host does not requires frameworks'
do
it
'returns the product name'
do
@pod_target
.
product_name
.
should
==
'libBananaLib.a'
@pod_target
.
scoped
.
first
.
product_name
.
should
==
'libBananaLib.a'
@pod_target
.
scoped
.
first
.
product_name
.
should
==
'libBananaLib
-Pods
.a'
end
it
'returns the framework name'
do
...
...
@@ -397,7 +397,7 @@ module Pod
it
'returns the library name'
do
@pod_target
.
static_library_name
.
should
==
'libBananaLib.a'
@pod_target
.
scoped
.
first
.
static_library_name
.
should
==
'libBananaLib.a'
@pod_target
.
scoped
.
first
.
static_library_name
.
should
==
'libBananaLib
-Pods
.a'
end
it
'returns :static_library as product type'
do
...
...
@@ -434,7 +434,7 @@ module Pod
it
'returns the library name'
do
@pod_target
.
static_library_name
.
should
==
'libOrangeFramework.a'
@pod_target
.
scoped
.
first
.
static_library_name
.
should
==
'libOrangeFramework.a'
@pod_target
.
scoped
.
first
.
static_library_name
.
should
==
'libOrangeFramework
-Pods
.a'
end
it
'returns :framework as product type'
do
...
...
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