Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
06b208f3
Unverified
Commit
06b208f3
authored
Apr 05, 2018
by
Mikkel Nygaard Ravn
Committed by
GitHub
Apr 05, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make Podfiles work with Cocoapods 1.5.0 (#16273)
parent
c7d982eb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
10 deletions
+8
-10
Podfile-objc
packages/flutter_tools/templates/cocoapods/Podfile-objc
+4
-5
Podfile-swift
packages/flutter_tools/templates/cocoapods/Podfile-swift
+4
-5
No files found.
packages/flutter_tools/templates/cocoapods/Podfile-objc
View file @
06b208f3
...
@@ -30,7 +30,6 @@ target 'Runner' do
...
@@ -30,7 +30,6 @@ target 'Runner' do
# Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
# Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
# referring to absolute paths on developers' machines.
# referring to absolute paths on developers' machines.
system('rm -rf Pods/.symlinks')
system('rm -rf Pods/.symlinks')
system('mkdir -p Pods/.symlinks/flutter')
system('mkdir -p Pods/.symlinks/plugins')
system('mkdir -p Pods/.symlinks/plugins')
# Flutter Pods
# Flutter Pods
...
@@ -40,16 +39,16 @@ target 'Runner' do
...
@@ -40,16 +39,16 @@ target 'Runner' do
end
end
generated_xcode_build_settings.map { |p|
generated_xcode_build_settings.map { |p|
if p[:name] == 'FLUTTER_FRAMEWORK_DIR'
if p[:name] == 'FLUTTER_FRAMEWORK_DIR'
symlink = File.join('Pods', '.symlinks', 'flutter'
, File.basename(p[:path])
)
symlink = File.join('Pods', '.symlinks', 'flutter')
File.symlink(
p[:path]
, symlink)
File.symlink(
File.dirname(p[:path])
, symlink)
pod 'Flutter', :path =>
symlink
pod 'Flutter', :path =>
File.join(symlink, File.basename(p[:path]))
end
end
}
}
# Plugin Pods
# Plugin Pods
plugin_pods = parse_KV_file('../.flutter-plugins')
plugin_pods = parse_KV_file('../.flutter-plugins')
plugin_pods.map { |p|
plugin_pods.map { |p|
symlink = File.join('Pods', '.symlinks', 'plugins',
File.basename(p[:path])
)
symlink = File.join('Pods', '.symlinks', 'plugins',
p[:name]
)
File.symlink(p[:path], symlink)
File.symlink(p[:path], symlink)
pod p[:name], :path => File.join(symlink, 'ios')
pod p[:name], :path => File.join(symlink, 'ios')
}
}
...
...
packages/flutter_tools/templates/cocoapods/Podfile-swift
View file @
06b208f3
...
@@ -32,7 +32,6 @@ target 'Runner' do
...
@@ -32,7 +32,6 @@ target 'Runner' do
# Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
# Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
# referring to absolute paths on developers' machines.
# referring to absolute paths on developers' machines.
system('rm -rf Pods/.symlinks')
system('rm -rf Pods/.symlinks')
system('mkdir -p Pods/.symlinks/flutter')
system('mkdir -p Pods/.symlinks/plugins')
system('mkdir -p Pods/.symlinks/plugins')
# Flutter Pods
# Flutter Pods
...
@@ -42,16 +41,16 @@ target 'Runner' do
...
@@ -42,16 +41,16 @@ target 'Runner' do
end
end
generated_xcode_build_settings.map { |p|
generated_xcode_build_settings.map { |p|
if p[:name] == 'FLUTTER_FRAMEWORK_DIR'
if p[:name] == 'FLUTTER_FRAMEWORK_DIR'
symlink = File.join('Pods', '.symlinks', 'flutter'
, File.basename(p[:path])
)
symlink = File.join('Pods', '.symlinks', 'flutter')
File.symlink(
p[:path]
, symlink)
File.symlink(
File.dirname(p[:path])
, symlink)
pod 'Flutter', :path =>
symlink
pod 'Flutter', :path =>
File.join(symlink, File.basename(p[:path]))
end
end
}
}
# Plugin Pods
# Plugin Pods
plugin_pods = parse_KV_file('../.flutter-plugins')
plugin_pods = parse_KV_file('../.flutter-plugins')
plugin_pods.map { |p|
plugin_pods.map { |p|
symlink = File.join('Pods', '.symlinks', 'plugins',
File.basename(p[:path])
)
symlink = File.join('Pods', '.symlinks', 'plugins',
p[:name]
)
File.symlink(p[:path], symlink)
File.symlink(p[:path], symlink)
pod p[:name], :path => File.join(symlink, 'ios')
pod p[:name], :path => File.join(symlink, 'ios')
}
}
...
...
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