forked from firka/flutter
[Doctor] Improve CocoaPods messages (#146701)
This tweaks the Flutter doctor messages for CocoaPods.
This also switches the "unknown version" error to link to the update instructions instead of the installation instructions; the user has already installed CocoaPods in this scenario.
Example error before:
```
â CocoaPods not installed.
CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/platform-plugins
To install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.
```
Example error after:
```
â CocoaPods not installed.
CocoaPods is a package manager for iOS or macOS platform code.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/platform-plugins
For installation instructions, see https://guides.cocoapods.org/using/getting-started.html#installation
```
This commit is contained in:
@@ -193,19 +193,19 @@ class UserMessages {
|
||||
String cocoaPodsMissing(String consequence, String installInstructions) =>
|
||||
'CocoaPods not installed.\n'
|
||||
'$consequence\n'
|
||||
'To install $installInstructions';
|
||||
'For installation instructions, $installInstructions';
|
||||
String cocoaPodsUnknownVersion(String consequence, String upgradeInstructions) =>
|
||||
'Unknown CocoaPods version installed.\n'
|
||||
'$consequence\n'
|
||||
'To upgrade $upgradeInstructions';
|
||||
'To update CocoaPods, $upgradeInstructions';
|
||||
String cocoaPodsOutdated(String currentVersion, String recVersion, String consequence, String upgradeInstructions) =>
|
||||
'CocoaPods $currentVersion out of date ($recVersion is recommended).\n'
|
||||
'$consequence\n'
|
||||
'To upgrade $upgradeInstructions';
|
||||
'To update CocoaPods, $upgradeInstructions';
|
||||
String cocoaPodsBrokenInstall(String consequence, String reinstallInstructions) =>
|
||||
'CocoaPods installed but not working.\n'
|
||||
'$consequence\n'
|
||||
'To re-install $reinstallInstructions';
|
||||
'For re-installation instructions, $reinstallInstructions';
|
||||
|
||||
// Messages used in VisualStudioValidator
|
||||
String visualStudioVersion(String name, String version) => '$name version $version';
|
||||
|
||||
Reference in New Issue
Block a user