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
d4e32b7b
Commit
d4e32b7b
authored
Sep 29, 2016
by
Ben Asher
Committed by
GitHub
Sep 29, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5959 from benasher44/basher_remove_cd
Remove uses of shell cd
parents
93e847fd
7e2ecc1a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
14 deletions
+13
-14
CHANGELOG.md
CHANGELOG.md
+5
-1
Rakefile
Rakefile
+2
-1
copy_resources_script.rb
lib/cocoapods/generator/copy_resources_script.rb
+2
-8
pod_target_installer.rb
...ller/xcode/pods_project_generator/pod_target_installer.rb
+3
-3
cocoapods-integration-specs
spec/cocoapods-integration-specs
+1
-1
No files found.
CHANGELOG.md
View file @
d4e32b7b
...
@@ -11,7 +11,7 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
...
@@ -11,7 +11,7 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
*
Cache result of inhibit_warnings and include_in_build_config to speed up pod install.
*
Cache result of inhibit_warnings and include_in_build_config to speed up pod install.
[
Dimitris Koutsogiorgas
](
https://github.com/dnkoutso
)
[
Dimitris Koutsogiorgas
](
https://github.com/dnkoutso
)
[
#5934
](
https://github.com/CocoaPods/CocoaPods/pull/5934
)
[
#5934
](
https://github.com/CocoaPods/CocoaPods/pull/5934
)
*
Improve performance of PathList.read_file_system
*
Improve performance of PathList.read_file_system
[
Heath Borders
](
https://github.com/hborders
)
[
Heath Borders
](
https://github.com/hborders
)
[
#5890
](
https://github.com/CocoaPods/CocoaPods/issues/5890
)
[
#5890
](
https://github.com/CocoaPods/CocoaPods/issues/5890
)
...
@@ -20,6 +20,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
...
@@ -20,6 +20,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
[
Dimitris Koutsogiorgas
](
https://github.com/dnkoutso
)
[
Dimitris Koutsogiorgas
](
https://github.com/dnkoutso
)
[
#5837
](
https://github.com/CocoaPods/CocoaPods/pull/5837
)
[
#5837
](
https://github.com/CocoaPods/CocoaPods/pull/5837
)
*
Remove uses of
`cd`
in generated scripts
[
Ben Asher
](
https://github.com/benasher44
)
[
#5959
](
https://github.com/CocoaPods/CocoaPods/pull/5959
)
##### Bug Fixes
##### Bug Fixes
*
Remove special handling for messages apps
*
Remove special handling for messages apps
...
...
Rakefile
View file @
d4e32b7b
...
@@ -178,7 +178,8 @@ begin
...
@@ -178,7 +178,8 @@ begin
task
:rebuild
=>
:check_for_pending_changes
do
task
:rebuild
=>
:check_for_pending_changes
do
tarballs
.
each
do
|
tarball
|
tarballs
.
each
do
|
tarball
|
basename
=
File
.
basename
(
tarball
)
basename
=
File
.
basename
(
tarball
)
sh
"cd
#{
File
.
dirname
(
tarball
)
}
&& rm
#{
basename
}
&& env COPYFILE_DISABLE=1 tar -zcf
#{
basename
}
#{
basename
[
0
..-
8
]
}
"
untarred_path
=
File
.
join
(
File
.
dirname
(
tarball
),
basename
[
0
..-
8
])
sh
"rm
#{
tarball
}
&& env COPYFILE_DISABLE=1 tar -zcf
#{
tarball
}
#{
untarred_path
}
"
end
end
end
end
...
...
lib/cocoapods/generator/copy_resources_script.rb
View file @
d4e32b7b
...
@@ -119,12 +119,6 @@ case "${TARGETED_DEVICE_FAMILY}" in
...
@@ -119,12 +119,6 @@ case "${TARGETED_DEVICE_FAMILY}" in
;;
;;
esac
esac
realpath() {
DIRECTORY="$(cd "${1%/*}" && pwd)"
FILENAME="${1##*/}"
echo "$DIRECTORY/$FILENAME"
}
install_resource()
install_resource()
{
{
if [[ "$1" = /* ]] ; then
if [[ "$1" = /* ]] ; then
...
@@ -166,7 +160,7 @@ EOM
...
@@ -166,7 +160,7 @@ EOM
xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm"
xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm"
;;
;;
*.xcassets)
*.xcassets)
ABSOLUTE_XCASSET_FILE=
$(realpath "$RESOURCE_PATH")
ABSOLUTE_XCASSET_FILE=
"$RESOURCE_PATH"
XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE")
XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE")
;;
;;
*)
*)
...
@@ -195,7 +189,7 @@ then
...
@@ -195,7 +189,7 @@ then
# Find all other xcassets (this unfortunately includes those of path pods and other targets).
# Find all other xcassets (this unfortunately includes those of path pods and other targets).
OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d)
OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d)
while read line; do
while read line; do
if [[ $line != "
`realpath $PODS_ROOT`
*" ]]; then
if [[ $line != "
${PODS_ROOT}
*" ]]; then
XCASSET_FILES+=("$line")
XCASSET_FILES+=("$line")
fi
fi
done <<<"$OTHER_XCASSETS"
done <<<"$OTHER_XCASSETS"
...
...
lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb
View file @
d4e32b7b
...
@@ -241,9 +241,9 @@ module Pod
...
@@ -241,9 +241,9 @@ module Pod
build_phase
=
native_target
.
new_shell_script_build_phase
(
'Create Symlinks to Header Folders'
)
build_phase
=
native_target
.
new_shell_script_build_phase
(
'Create Symlinks to Header Folders'
)
build_phase
.
shell_script
=
<<-
eos
.
strip_heredoc
build_phase
.
shell_script
=
<<-
eos
.
strip_heredoc
cd
"$CONFIGURATION_BUILD_DIR/$WRAPPER_NAME"
base=
"$CONFIGURATION_BUILD_DIR/$WRAPPER_NAME"
ln -fs $
{PUBLIC_HEADERS_FOLDER_PATH
\#
$WRAPPER_NAME/}
${PUBLIC_HEADERS_FOLDER_PATH
\#\$
CONTENTS_FOLDER_PATH/}
ln -fs $
base/${PUBLIC_HEADERS_FOLDER_PATH
\#
$WRAPPER_NAME/} $base/
${PUBLIC_HEADERS_FOLDER_PATH
\#\$
CONTENTS_FOLDER_PATH/}
ln -fs $
{PRIVATE_HEADERS_FOLDER_PATH
\#\$
WRAPPER_NAME/}
${PRIVATE_HEADERS_FOLDER_PATH
\#\$
CONTENTS_FOLDER_PATH/}
ln -fs $
base/${PRIVATE_HEADERS_FOLDER_PATH
\#\$
WRAPPER_NAME/} $base/
${PRIVATE_HEADERS_FOLDER_PATH
\#\$
CONTENTS_FOLDER_PATH/}
eos
eos
end
end
...
...
cocoapods-integration-specs
@
261c576b
Subproject commit
6efec430148b581610f82f67947f0d12ebd62ce4
Subproject commit
261c576b588e6c8d9729cdbb9c4751f7b10f4ee7
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