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
f0bc470a
Commit
f0bc470a
authored
Aug 01, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Specification::DSL] frameworks_bundles -> vendored_frameworks; library_files -> vendored_libraries
parent
e4eec8d0
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
25 additions
and
25 deletions
+25
-25
Gemfile.lock
Gemfile.lock
+1
-1
aggregate_xcconfig.rb
lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb
+4
-4
public_pod_xcconfig.rb
lib/cocoapods/generator/xcconfig/public_pod_xcconfig.rb
+4
-4
file_references_installer.rb
lib/cocoapods/installer/file_references_installer.rb
+4
-4
pod_source_installer.rb
lib/cocoapods/installer/pod_source_installer.rb
+2
-2
file_accessor.rb
lib/cocoapods/sandbox/file_accessor.rb
+4
-4
banana-lib.tar.gz
spec/fixtures/banana-lib.tar.gz
+0
-0
chameleon.tar.gz
spec/fixtures/chameleon.tar.gz
+0
-0
public_pod_xcconfig_spec.rb
spec/unit/generator/xcconfig/public_pod_xcconfig_spec.rb
+2
-2
pod_source_installer_spec.rb
spec/unit/installer/pod_source_installer_spec.rb
+2
-2
file_accessor_spec.rb
spec/unit/sandbox/file_accessor_spec.rb
+2
-2
No files found.
Gemfile.lock
View file @
f0bc470a
...
...
@@ -7,7 +7,7 @@ GIT
GIT
remote: https://github.com/CocoaPods/Core.git
revision:
e78e9726126271d083d855c58ff3c9b30f360170
revision:
8a8ace23f5e6ecd4a32b26192d8f1be138a39604
branch: feature-frameworks-bundles
specs:
cocoapods-core (0.22.3)
...
...
lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb
View file @
f0bc470a
...
...
@@ -54,11 +54,11 @@ module Pod
target
.
pod_targets
.
each
do
|
pod_target
|
pod_target
.
file_accessors
.
each
do
|
file_accessor
|
XCConfigHelper
.
add_spec_build_settings_to_xcconfig
(
file_accessor
.
spec_consumer
,
@xcconfig
)
file_accessor
.
framework_bundles
.
each
do
|
framework_bundle
|
XCConfigHelper
.
add_framework_build_settings
(
framework_bundle
,
@xcconfig
,
target
.
sandbox
.
root
)
file_accessor
.
vendored_frameworks
.
each
do
|
vendored_framework
|
XCConfigHelper
.
add_framework_build_settings
(
vendored_framework
,
@xcconfig
,
target
.
sandbox
.
root
)
end
file_accessor
.
library_files
.
each
do
|
library_file
|
XCConfigHelper
.
add_library_build_settings
(
library_file
,
@xcconfig
,
target
.
sandbox
.
root
)
file_accessor
.
vendored_libraries
.
each
do
|
vendored_library
|
XCConfigHelper
.
add_library_build_settings
(
vendored_library
,
@xcconfig
,
target
.
sandbox
.
root
)
end
end
end
...
...
lib/cocoapods/generator/xcconfig/public_pod_xcconfig.rb
View file @
f0bc470a
...
...
@@ -44,11 +44,11 @@ module Pod
@xcconfig
=
Xcodeproj
::
Config
.
new
target
.
file_accessors
.
each
do
|
file_accessor
|
XCConfigHelper
.
add_spec_build_settings_to_xcconfig
(
file_accessor
.
spec_consumer
,
@xcconfig
)
file_accessor
.
framework_bundles
.
each
do
|
framework_bundle
|
XCConfigHelper
.
add_framework_build_settings
(
framework_bundle
,
@xcconfig
,
target
.
sandbox
.
root
)
file_accessor
.
vendored_frameworks
.
each
do
|
vendored_framework
|
XCConfigHelper
.
add_framework_build_settings
(
vendored_framework
,
@xcconfig
,
target
.
sandbox
.
root
)
end
file_accessor
.
library_files
.
each
do
|
library_file
|
XCConfigHelper
.
add_library_build_settings
(
library_file
,
@xcconfig
,
target
.
sandbox
.
root
)
file_accessor
.
vendored_libraries
.
each
do
|
vendored_library
|
XCConfigHelper
.
add_library_build_settings
(
vendored_library
,
@xcconfig
,
target
.
sandbox
.
root
)
end
end
@xcconfig
...
...
lib/cocoapods/installer/file_references_installer.rb
View file @
f0bc470a
...
...
@@ -36,7 +36,7 @@ module Pod
refresh_file_accessors
add_source_files_references
add_frameworks_bundles
add_
library_fil
es
add_
vendored_librari
es
add_resources
link_headers
end
...
...
@@ -83,7 +83,7 @@ module Pod
#
def
add_frameworks_bundles
UI
.
message
"- Adding frameworks to Pods project"
do
add_file_acessors_paths_to_pods_group
(
:
framework_bundle
s
,
:frameworks_and_libraries
)
add_file_acessors_paths_to_pods_group
(
:
vendored_framework
s
,
:frameworks_and_libraries
)
end
end
...
...
@@ -91,9 +91,9 @@ module Pod
#
# @return [void]
#
def
add_
library_fil
es
def
add_
vendored_librari
es
UI
.
message
"- Adding frameworks to Pods project"
do
add_file_acessors_paths_to_pods_group
(
:
library_fil
es
,
:frameworks_and_libraries
)
add_file_acessors_paths_to_pods_group
(
:
vendored_librari
es
,
:frameworks_and_libraries
)
end
end
...
...
lib/cocoapods/installer/pod_source_installer.rb
View file @
f0bc470a
...
...
@@ -229,8 +229,8 @@ module Pod
#
def
used_files
files
=
[
file_accessors
.
map
(
&
:
framework_bundle
s
),
file_accessors
.
map
(
&
:
library_fil
es
),
file_accessors
.
map
(
&
:
vendored_framework
s
),
file_accessors
.
map
(
&
:
vendored_librari
es
),
file_accessors
.
map
(
&
:resource_bundle_files
),
file_accessors
.
map
(
&
:license
),
file_accessors
.
map
(
&
:prefix_header
),
...
...
lib/cocoapods/sandbox/file_accessor.rb
View file @
f0bc470a
...
...
@@ -109,15 +109,15 @@ module Pod
# @return [Array<Pathname>] The paths of the framework bundles that come
# shipped with the Pod.
#
def
framework_bundle
s
paths_for_attribute
(
:
framework_bundle
s
,
true
)
def
vendored_framework
s
paths_for_attribute
(
:
vendored_framework
s
,
true
)
end
# @return [Array<Pathname>] The paths of the library bundles that come
# shipped with the Pod.
#
def
library_fil
es
paths_for_attribute
(
:
library_fil
es
)
def
vendored_librari
es
paths_for_attribute
(
:
vendored_librari
es
)
end
# @return [Hash{String => Array<Pathname>}] A hash that describes the
...
...
spec/fixtures/banana-lib.tar.gz
View file @
f0bc470a
No preview for this file type
spec/fixtures/chameleon.tar.gz
View file @
f0bc470a
No preview for this file type
spec/unit/generator/xcconfig/public_pod_xcconfig_spec.rb
View file @
f0bc470a
...
...
@@ -18,8 +18,8 @@ module Pod
@spec
.
weak_frameworks
=
[
'iAd'
]
@spec
.
libraries
=
[
'xml2'
]
file_accessors
=
[
Sandbox
::
FileAccessor
.
new
(
fixture
(
'banana-lib'
),
@spec
.
consumer
(
:ios
))]
#
framework_bundle
_paths = [config.sandbox.root + 'BananaLib/BananaLib.framework']
# Sandbox::FileAccessor.any_instance.stubs(:
framework_bundles).returns(framework_bundle
_paths)
#
vendored_framework
_paths = [config.sandbox.root + 'BananaLib/BananaLib.framework']
# Sandbox::FileAccessor.any_instance.stubs(:
vendored_frameworks).returns(vendored_framework
_paths)
@pod_target
.
target_definition
.
stubs
(
:podfile
).
returns
(
@podfile
)
@pod_target
.
stubs
(
:file_accessors
).
returns
(
file_accessors
)
...
...
spec/unit/installer/pod_source_installer_spec.rb
View file @
f0bc470a
...
...
@@ -171,13 +171,13 @@ module Pod
it
"compacts the used files as nil would be converted to the empty string"
do
Sandbox
::
FileAccessor
.
any_instance
.
stubs
(
:source_files
)
Sandbox
::
FileAccessor
.
any_instance
.
stubs
(
:
library_fil
es
)
Sandbox
::
FileAccessor
.
any_instance
.
stubs
(
:
vendored_librari
es
)
Sandbox
::
FileAccessor
.
any_instance
.
stubs
(
:resources
).
returns
(
nil
)
Sandbox
::
FileAccessor
.
any_instance
.
stubs
(
:preserve_paths
)
Sandbox
::
FileAccessor
.
any_instance
.
stubs
(
:prefix_header
)
Sandbox
::
FileAccessor
.
any_instance
.
stubs
(
:readme
)
Sandbox
::
FileAccessor
.
any_instance
.
stubs
(
:license
)
Sandbox
::
FileAccessor
.
any_instance
.
stubs
(
:
framework_bundle
s
)
Sandbox
::
FileAccessor
.
any_instance
.
stubs
(
:
vendored_framework
s
)
paths
=
@installer
.
send
(
:used_files
)
paths
.
should
==
[]
end
...
...
spec/unit/sandbox/file_accessor_spec.rb
View file @
f0bc470a
...
...
@@ -104,11 +104,11 @@ module Pod
end
it
"returns the paths of the framework bundles"
do
@accessor
.
framework_bundle
s
.
should
.
include?
(
@root
+
"Bananalib.framework"
)
@accessor
.
vendored_framework
s
.
should
.
include?
(
@root
+
"Bananalib.framework"
)
end
it
"returns the paths of the library files"
do
@accessor
.
library_fil
es
.
should
.
include?
(
@root
+
"libBananalib.a"
)
@accessor
.
vendored_librari
es
.
should
.
include?
(
@root
+
"libBananalib.a"
)
end
it
"returns the resource bundles of the pod"
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