[flutter_plugin_tools] Allow overriding breaking change check (#4369)

This commit is contained in:
stuartmorgan
2021-09-23 13:23:06 -04:00
committed by GitHub
parent 91ef4b1a00
commit c0aca80c15
6 changed files with 173 additions and 12 deletions

View File

@ -133,7 +133,7 @@ class DriveExamplesCommand extends PackageLoopingCommand {
@override
Future<PackageResult> runForPackage(RepositoryPackage package) async {
if (package.directory.basename.endsWith('_platform_interface') &&
if (package.isPlatformInterface &&
!package.getSingleExampleDeprecated().directory.existsSync()) {
// Platform interface packages generally aren't intended to have
// examples, and don't need integration tests, so skip rather than fail.