Skip to content

Commit

Permalink
Fix an error when run without recipe and update the recipe to test on…
Browse files Browse the repository at this point in the history
… 6.5 TV emulators (flutter-tizen#381)
  • Loading branch information
HakkyuKim authored May 12, 2022
1 parent c0974e6 commit 8f1a942
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 27 deletions.
28 changes: 14 additions & 14 deletions .github/recipe.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
plugins:
audioplayers: ["wearable-5.5"]
battery_plus: ["wearable-5.5"]
connectivity_plus: ["wearable-5.5", "tv-6.0"]
device_info_plus: ["wearable-5.5", "tv-6.0"]
flutter_tts: ["wearable-5.5", "tv-6.0"]
integration_test: ["wearable-5.5", "tv-6.0"]
messageport: ["wearable-5.5", "tv-6.0"]
package_info_plus: ["wearable-5.5", "tv-6.0"]
path_provider: ["tv-6.0"]
connectivity_plus: ["wearable-5.5", "tv-6.5"]
device_info_plus: ["wearable-5.5", "tv-6.5"]
flutter_tts: ["wearable-5.5", "tv-6.5"]
integration_test: ["wearable-5.5", "tv-6.5"]
messageport: ["wearable-5.5", "tv-6.5"]
package_info_plus: ["wearable-5.5", "tv-6.5"]
path_provider: ["tv-6.5"]
sensors_plus: ["wearable-5.5"]
share_plus: ["wearable-5.5"]
shared_preferences: ["wearable-5.5", "tv-6.0"]
sqflite: ["wearable-5.5", "tv-6.0"]
tizen_app_manager: ["wearable-5.5", "tv-6.0"]
tizen_audio_manager: ["wearable-5.5", "tv-6.0"]
tizen_package_manager: ["wearable-5.5", "tv-6.0"]
url_launcher: ["wearable-5.5", "tv-6.0"]
shared_preferences: ["wearable-5.5", "tv-6.5"]
sqflite: ["wearable-5.5", "tv-6.5"]
tizen_app_manager: ["wearable-5.5", "tv-6.5"]
tizen_audio_manager: ["wearable-5.5", "tv-6.5"]
tizen_package_manager: ["wearable-5.5", "tv-6.5"]
url_launcher: ["wearable-5.5", "tv-6.5"]
wakelock: ["wearable-5.5"]

# Not supported by emulators.
Expand All @@ -33,7 +33,7 @@ plugins:
# Permission cannot be granted without manual interaction.
geolocator: []
permission_handler: []

# Only testable with the drive command: https://github.com/flutter-tizen/plugins/issues/272
tizen_app_control: []

Expand Down
28 changes: 15 additions & 13 deletions tools/lib/src/integration_test_command.dart
Original file line number Diff line number Diff line change
Expand Up @@ -150,20 +150,22 @@ class IntegrationTestCommand extends PackageLoopingCommand {
}) async* {
if (_recipe == null) {
yield* super.getTargetPackages(filterExcluded: filterExcluded);
}
final Recipe recipe = _recipe!;
} else {
final Recipe recipe = _recipe!;
final List<PackageEnumerationEntry> plugins = await super
.getTargetPackages(filterExcluded: filterExcluded)
.toList();

final List<PackageEnumerationEntry> plugins =
await super.getTargetPackages(filterExcluded: filterExcluded).toList();
for (final PackageEnumerationEntry plugin in plugins) {
final String pluginName = plugin.package.displayName;
if (!recipe.contains(pluginName)) {
continue;
}
if (!(filterExcluded && plugin.excluded)) {
yield recipe.isExcluded(pluginName)
? PackageEnumerationEntry(plugin.package, excluded: true)
: plugin;
for (final PackageEnumerationEntry plugin in plugins) {
final String pluginName = plugin.package.displayName;
if (!recipe.contains(pluginName)) {
continue;
}
if (!(filterExcluded && plugin.excluded)) {
yield recipe.isExcluded(pluginName)
? PackageEnumerationEntry(plugin.package, excluded: true)
: plugin;
}
}
}
}
Expand Down

0 comments on commit 8f1a942

Please sign in to comment.