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
70e2acfb
Commit
70e2acfb
authored
Apr 09, 2017
by
Devon Carew
Committed by
GitHub
Apr 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tweak the layout for the ios doctor checks (#9306)
parent
ca5f0c9a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
24 deletions
+25
-24
logger.dart
packages/flutter_tools/lib/src/base/logger.dart
+7
-3
doctor.dart
packages/flutter_tools/lib/src/doctor.dart
+2
-5
ios_workflow.dart
packages/flutter_tools/lib/src/ios/ios_workflow.dart
+16
-16
No files found.
packages/flutter_tools/lib/src/base/logger.dart
View file @
70e2acfb
...
...
@@ -271,10 +271,14 @@ class AnsiTerminal {
String
bolden
(
String
message
)
{
if
(!
supportsColor
)
return
message
;
final
StringBuffer
result
=
new
StringBuffer
();
final
StringBuffer
buffer
=
new
StringBuffer
();
for
(
String
line
in
message
.
split
(
'
\n
'
))
result
.
writeln
(
'
$_bold$line$_reset
'
);
return
result
.
toString
();
buffer
.
writeln
(
'
$_bold$line$_reset
'
);
final
String
result
=
buffer
.
toString
();
// avoid introducing a new newline to the emboldened text
return
(!
message
.
endsWith
(
'
\n
'
)
&&
result
.
endsWith
(
'
\n
'
))
?
result
.
substring
(
0
,
result
.
length
-
1
)
:
result
;
}
String
clearScreen
()
=>
supportsColor
?
_clear
:
'
\n\n
'
;
...
...
packages/flutter_tools/lib/src/doctor.dart
View file @
70e2acfb
...
...
@@ -108,14 +108,9 @@ class Doctor {
/// Print verbose information about the state of installed tooling.
Future
<
bool
>
diagnose
()
async
{
bool
firstLine
=
true
;
bool
doctorResult
=
true
;
for
(
DoctorValidator
validator
in
validators
)
{
if
(!
firstLine
)
printStatus
(
''
);
firstLine
=
false
;
final
ValidationResult
result
=
await
validator
.
validate
();
if
(
result
.
type
==
ValidationType
.
missing
)
...
...
@@ -134,6 +129,8 @@ class Doctor {
printStatus
(
' •
$text
'
);
}
}
printStatus
(
''
);
}
return
doctorResult
;
...
...
packages/flutter_tools/lib/src/ios/ios_workflow.dart
View file @
70e2acfb
...
...
@@ -136,9 +136,9 @@ class IOSWorkflow extends DoctorValidator implements Workflow {
messages
.
add
(
new
ValidationMessage
.
error
(
'ideviceinstaller not available; this is used to discover connected iOS devices.
\n
'
'To install, run:
\n
'
'brew update
\n
'
'brew install --HEAD libimobiledevice
\n
'
'brew install ideviceinstaller'
'
brew update
\n
'
'
brew install --HEAD libimobiledevice
\n
'
'
brew install ideviceinstaller'
));
}
...
...
@@ -151,14 +151,14 @@ class IOSWorkflow extends DoctorValidator implements Workflow {
if
(
hasIosDeploy
)
{
messages
.
add
(
new
ValidationMessage
.
error
(
'ios-deploy out of date (
$iosDeployMinimumVersion
is required). To upgrade:
\n
'
'brew update
\n
'
'brew upgrade ios-deploy'
'
brew update
\n
'
'
brew upgrade ios-deploy'
));
}
else
{
messages
.
add
(
new
ValidationMessage
.
error
(
'ios-deploy not installed. To install:
\n
'
'brew update
\n
'
'brew install ios-deploy'
'
brew update
\n
'
'
brew install ios-deploy'
));
}
}
else
{
...
...
@@ -169,9 +169,9 @@ class IOSWorkflow extends DoctorValidator implements Workflow {
brewStatus
=
ValidationType
.
partial
;
messages
.
add
(
new
ValidationMessage
.
error
(
'libimobiledevice is incompatible with the installed Xcode version. To update, run:
\n
'
'brew update
\n
'
'brew uninstall --ignore-dependencies libimobiledevice
\n
'
'brew install --HEAD libimobiledevice'
'
brew update
\n
'
'
brew uninstall --ignore-dependencies libimobiledevice
\n
'
'
brew install --HEAD libimobiledevice'
));
}
}
...
...
@@ -182,16 +182,16 @@ class IOSWorkflow extends DoctorValidator implements Workflow {
if
(!
hasCocoaPods
)
{
messages
.
add
(
new
ValidationMessage
.
error
(
'CocoaPods not installed. To install:
\n
'
'brew update
\n
'
'brew install cocoapods
\n
'
'pod setup'
'
brew update
\n
'
'
brew install cocoapods
\n
'
'
pod setup'
));
}
else
{
messages
.
add
(
new
ValidationMessage
.
error
(
'CocoaPods out of date (
$cocoaPodsMinimumVersion
is required). To upgrade:
\n
'
'brew update
\n
'
'brew upgrade cocoapods
\n
'
'pod setup'
'
brew update
\n
'
'
brew upgrade cocoapods
\n
'
'
pod setup'
));
}
}
...
...
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