mirror of
https://github.com/flutter/packages.git
synced 2025-08-24 03:18:54 +08:00
[tools] Remove single-example RepositoryPackage method (#5600)
This commit is contained in:
@ -125,8 +125,7 @@ class DriveExamplesCommand extends PackageLoopingCommand {
|
||||
Future<PackageResult> runForPackage(RepositoryPackage package) async {
|
||||
final bool isPlugin = isFlutterPlugin(package);
|
||||
|
||||
if (package.isPlatformInterface &&
|
||||
!package.getSingleExampleDeprecated().directory.existsSync()) {
|
||||
if (package.isPlatformInterface && package.getExamples().isEmpty) {
|
||||
// Platform interface packages generally aren't intended to have
|
||||
// examples, and don't need integration tests, so skip rather than fail.
|
||||
return PackageResult.skip(
|
||||
|
Reference in New Issue
Block a user