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
d21d7ec6
Commit
d21d7ec6
authored
Dec 28, 2015
by
Samuel E. Giddins
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4692 from CocoaPods/seg-update-xcodeproj
[Bundle] Update Xcodeproj
parents
5e13b2d1
4fc49822
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
Gemfile.lock
Gemfile.lock
+2
-2
plist.rb
lib/cocoapods/generator/acknowledgements/plist.rb
+1
-1
plist_spec.rb
spec/unit/generator/acknowledgements/plist_spec.rb
+1
-1
info_plist_file_spec.rb
spec/unit/generator/info_plist_file_spec.rb
+2
-2
No files found.
Gemfile.lock
View file @
d21d7ec6
GIT
GIT
remote: https://github.com/CocoaPods/CLAide.git
remote: https://github.com/CocoaPods/CLAide.git
revision:
4ded02e52c34d5bbe5f6f031d917394286445aa6
revision:
f16fb46831ae1ca77f0d1dc7e538a50044ee4951
branch: master
branch: master
specs:
specs:
claide (0.9.1)
claide (0.9.1)
...
@@ -24,7 +24,7 @@ GIT
...
@@ -24,7 +24,7 @@ GIT
GIT
GIT
remote: https://github.com/CocoaPods/Xcodeproj.git
remote: https://github.com/CocoaPods/Xcodeproj.git
revision:
eea8f8d58eef635f2cc9121ee1af6a5478a2841c
revision:
ffeadb7ca0edc5afafbac0304cf088c4e4b75ae5
branch: master
branch: master
specs:
specs:
xcodeproj (0.28.2)
xcodeproj (0.28.2)
...
...
lib/cocoapods/generator/acknowledgements/plist.rb
View file @
d21d7ec6
...
@@ -6,7 +6,7 @@ module Pod
...
@@ -6,7 +6,7 @@ module Pod
end
end
def
save_as
(
path
)
def
save_as
(
path
)
Xcodeproj
::
Plist
Helper
.
write
(
plist
,
path
)
Xcodeproj
::
Plist
.
write_to_path
(
plist
,
path
)
end
end
def
plist
def
plist
...
...
spec/unit/generator/acknowledgements/plist_spec.rb
View file @
d21d7ec6
...
@@ -54,7 +54,7 @@ describe Pod::Generator::Plist do
...
@@ -54,7 +54,7 @@ describe Pod::Generator::Plist do
basepath
=
config
.
sandbox
.
root
+
'Pods-acknowledgements'
basepath
=
config
.
sandbox
.
root
+
'Pods-acknowledgements'
given_path
=
@generator
.
class
.
path_from_basepath
(
basepath
)
given_path
=
@generator
.
class
.
path_from_basepath
(
basepath
)
expected_path
=
config
.
sandbox
.
root
+
'Pods-acknowledgements.plist'
expected_path
=
config
.
sandbox
.
root
+
'Pods-acknowledgements.plist'
Xcodeproj
::
Plist
Helper
.
expects
(
:write
).
with
(
equals
(
@generator
.
plist
),
equals
(
expected_path
))
Xcodeproj
::
Plist
.
expects
(
:write_to_path
).
with
(
equals
(
@generator
.
plist
),
equals
(
expected_path
))
@generator
.
save_as
(
given_path
)
@generator
.
save_as
(
given_path
)
end
end
end
end
spec/unit/generator/info_plist_file_spec.rb
View file @
d21d7ec6
...
@@ -69,7 +69,7 @@ module Pod
...
@@ -69,7 +69,7 @@ module Pod
generator
=
Generator
::
InfoPlistFile
.
new
(
mock
(
'Target'
,
:platform
=>
stub
(
:name
=>
:ios
)))
generator
=
Generator
::
InfoPlistFile
.
new
(
mock
(
'Target'
,
:platform
=>
stub
(
:name
=>
:ios
)))
file
=
temporary_directory
+
'Info.plist'
file
=
temporary_directory
+
'Info.plist'
generator
.
save_as
(
file
)
generator
.
save_as
(
file
)
Xcodeproj
::
Plist
Helper
.
read
(
file
).
should
==
{
Xcodeproj
::
Plist
.
read_from_path
(
file
).
should
==
{
'CFBundleDevelopmentRegion'
=>
'en'
,
'CFBundleDevelopmentRegion'
=>
'en'
,
'CFBundleExecutable'
=>
'${EXECUTABLE_NAME}'
,
'CFBundleExecutable'
=>
'${EXECUTABLE_NAME}'
,
'CFBundleIdentifier'
=>
'${PRODUCT_BUNDLE_IDENTIFIER}'
,
'CFBundleIdentifier'
=>
'${PRODUCT_BUNDLE_IDENTIFIER}'
,
...
@@ -89,7 +89,7 @@ module Pod
...
@@ -89,7 +89,7 @@ module Pod
generator
=
Generator
::
InfoPlistFile
.
new
(
pod_target
)
generator
=
Generator
::
InfoPlistFile
.
new
(
pod_target
)
file
=
temporary_directory
+
'Info.plist'
file
=
temporary_directory
+
'Info.plist'
generator
.
save_as
(
file
)
generator
.
save_as
(
file
)
Xcodeproj
::
Plist
Helper
.
read
(
file
)[
'UIRequiredDeviceCapabilities'
].
should
==
%w(arm64)
Xcodeproj
::
Plist
.
read_from_path
(
file
)[
'UIRequiredDeviceCapabilities'
].
should
==
%w(arm64)
end
end
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