forked from flutter/packages
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[tools]Build IPA validation UI Polish (#116744)
* [tools]some ui polish for build ipa validation * do not print out a few success validations * rename installed type to success for more general usage * forgot nit after reverting custom validation types and re-use doctor types
- Loading branch information
1 parent
c98978a
commit 0916375
Showing
27 changed files
with
221 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,21 +42,23 @@ Future<void> main() async { | |
throw TaskResult.failure('Usage archive event not sent'); | ||
} | ||
|
||
if (!output.contains('Warning: App icon is using the wrong size (e.g. [email protected]).')) { | ||
throw TaskResult.failure('Must validate incorrect app icon image size.'); | ||
} | ||
|
||
// The project is still using Flutter template icon and launch image. | ||
if (!output.contains('Warning: App icon is set to the default placeholder icon. Replace with unique icons.')) { | ||
throw TaskResult.failure('Must validate template app icon.'); | ||
} | ||
if (!output.contains('Warning: Launch image is set to the default placeholder. Replace with unique launch images.')) { | ||
throw TaskResult.failure('Must validate template launch image.'); | ||
} | ||
|
||
// The project is still using com.example as bundle identifier prefix. | ||
if (!output.contains('Warning: Your application still contains the default "com.example" bundle identifier.')) { | ||
throw TaskResult.failure('Must validate the default bundle identifier prefix'); | ||
// The output contains extra time related prefix, so cannot use a single string. | ||
const List<String> expectedValidationMessages = <String>[ | ||
'[!] App Settings Validation\n', | ||
' • Version Number: 1.0.0\n', | ||
' • Build Number: 1\n', | ||
' • Display Name: Hello\n', | ||
' • Deployment Target: 11.0\n', | ||
' • Bundle Identifier: com.example.hello\n', | ||
' ! Your application still contains the default "com.example" bundle identifier.\n', | ||
'[!] App Icon and Launch Image Assets Validation\n', | ||
' ! App icon is set to the default placeholder icon. Replace with unique icons.\n', | ||
' ! App icon is using the incorrect size (e.g. [email protected]).\n', | ||
' ! Launch image is set to the default placeholder icon. Replace with unique launch image.\n', | ||
'To update the settings, please refer to https://docs.flutter.dev/deployment/ios\n', | ||
]; | ||
if (expectedValidationMessages.any((String message) => !output.contains(message))) { | ||
throw TaskResult.failure('Must have the expected validation message'); | ||
} | ||
}); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.