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
9a61b871
Commit
9a61b871
authored
May 01, 2017
by
xster
Committed by
GitHub
May 01, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CocoaPods flow step 1 (#9687)
* Add cocoapods reason * s/native/iOS
parent
48f2770e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
9 deletions
+30
-9
ios_workflow.dart
packages/flutter_tools/lib/src/ios/ios_workflow.dart
+8
-8
mac.dart
packages/flutter_tools/lib/src/ios/mac.dart
+22
-1
No files found.
packages/flutter_tools/lib/src/ios/ios_workflow.dart
View file @
9a61b871
...
...
@@ -181,17 +181,17 @@ class IOSWorkflow extends DoctorValidator implements Workflow {
brewStatus
=
ValidationType
.
partial
;
if
(!
hasCocoaPods
)
{
messages
.
add
(
new
ValidationMessage
.
error
(
'CocoaPods not installed.
To install:
\n
'
'
brew updat
e
\n
'
'
brew install cocoapods
\n
'
'
pod setup
'
'CocoaPods not installed.
\n
'
'
$noCocoaPodsConsequenc
e
\n
'
'
To install:
\n
'
'
$cocoaPodsInstallInstructions
'
));
}
else
{
messages
.
add
(
new
ValidationMessage
.
error
(
'CocoaPods out of date (
$cocoaPodsMinimumVersion
is required).
To upgrade:
\n
'
'
brew updat
e
\n
'
'
brew upgrade cocoapods
\n
'
'
pod setup
'
'CocoaPods out of date (
$cocoaPodsMinimumVersion
is required).
\n
'
'
$noCocoaPodsConsequenc
e
\n
'
'
To upgrade:
\n
'
'
$cocoaPodsUpgradeInstructions
'
));
}
}
...
...
packages/flutter_tools/lib/src/ios/mac.dart
View file @
9a61b871
...
...
@@ -347,11 +347,32 @@ bool _checkXcodeVersion() {
return true;
}
final String noCocoaPodsConsequence = '''
CocoaPods
is
used
to
retrieve
the
iOS
platform
side
's plugin code that responds to your
plugin usage on the Dart side.
Without resolving iOS dependencies with CocoaPods, plugins will not work on iOS.
For more info, see https://flutter.io/platform-plugins'''
;
final
String
cocoaPodsInstallInstructions
=
'''
brew update
brew install cocoapods
pod setup'''
;
final
String
cocoaPodsUpgradeInstructions
=
'''
brew update
brew upgrade cocoapods
pod setup'''
;
Future
<
Null
>
_runPodInstall
(
Directory
bundle
,
String
engineDirectory
)
async
{
if
(
fs
.
file
(
fs
.
path
.
join
(
bundle
.
path
,
'Podfile'
)).
existsSync
())
{
if
(!
doctor
.
iosWorkflow
.
cocoaPodsInstalledAndMeetsVersionCheck
)
{
final
String
minimumVersion
=
doctor
.
iosWorkflow
.
cocoaPodsMinimumVersion
;
printError('
Warning:
CocoaPods
version
$minimumVersion
or
greater
not
installed
.
Skipping
pod
install
.
');
printError
(
'Warning: CocoaPods version
$minimumVersion
or greater not installed. Skipping pod install.
\n
'
'
$noCocoaPodsConsequence
\n
'
'To install:
\n
'
'
$cocoaPodsInstallInstructions
\n
'
);
return
;
}
try
{
...
...
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