Remove android directory from platform_channel_swift example project (#50213)
diff --git a/dev/bots/analyze.dart b/dev/bots/analyze.dart
index 325666e..3bfb5c0 100644
--- a/dev/bots/analyze.dart
+++ b/dev/bots/analyze.dart
@@ -225,7 +225,7 @@
Future<void> verifyNoMissingLicense(String workingDirectory, { bool checkMinimums = true }) async {
final int overrideMinimumMatches = checkMinimums ? null : 0;
await _verifyNoMissingLicenseForExtension(workingDirectory, 'dart', overrideMinimumMatches ?? 2000, _generateLicense('// '));
- await _verifyNoMissingLicenseForExtension(workingDirectory, 'java', overrideMinimumMatches ?? 40, _generateLicense('// '));
+ await _verifyNoMissingLicenseForExtension(workingDirectory, 'java', overrideMinimumMatches ?? 39, _generateLicense('// '));
await _verifyNoMissingLicenseForExtension(workingDirectory, 'h', overrideMinimumMatches ?? 30, _generateLicense('// '));
await _verifyNoMissingLicenseForExtension(workingDirectory, 'm', overrideMinimumMatches ?? 30, _generateLicense('// '));
await _verifyNoMissingLicenseForExtension(workingDirectory, 'swift', overrideMinimumMatches ?? 10, _generateLicense('// '));
diff --git a/dev/bots/test.dart b/dev/bots/test.dart
index 315c234..8759ba2 100644
--- a/dev/bots/test.dart
+++ b/dev/bots/test.dart
@@ -282,13 +282,6 @@
await selectSubshard(subshards);
}
-// Example apps that should not be built by _runBuildTests`
-const List<String> _excludedExampleApplications = <String>[
- // This application contains no platform code and cannot be built, except for
- // as a part of a '--fast-start' Android application.
- 'splash',
-];
-
/// Verifies that AOT, APK, and IPA (if on macOS) builds the examples apps
/// without crashing. It does not actually launch the apps. That happens later
/// in the devicelab. This is just a smoke-test. In particular, this will verify
@@ -300,14 +293,19 @@
if (fileEntity is! Directory) {
continue;
}
- if (_excludedExampleApplications.any(fileEntity.path.endsWith)) {
- continue;
- }
final String examplePath = fileEntity.path;
- await _flutterBuildAot(examplePath);
- await _flutterBuildApk(examplePath);
+ if (Directory(path.join(examplePath, 'android')).existsSync()) {
+ await _flutterBuildAot(examplePath);
+ await _flutterBuildApk(examplePath);
+ } else {
+ print('Example project ${path.basename(examplePath)} has no android directory, skipping aot and apk');
+ }
if (Platform.isMacOS) {
- await _flutterBuildIpa(examplePath);
+ if (Directory(path.join(examplePath, 'ios')).existsSync()) {
+ await _flutterBuildIpa(examplePath);
+ } else {
+ print('Example project ${path.basename(examplePath)} has no ios directory, skipping ipa');
+ }
}
}