Skip to content

fix: conditionally generate platform jobs in flutter_plugin workflow#1643

Closed
unicoderbot[bot] wants to merge 1 commit into
mainfrom
vgv-ai-bot/issue-469
Closed

fix: conditionally generate platform jobs in flutter_plugin workflow#1643
unicoderbot[bot] wants to merge 1 commit into
mainfrom
vgv-ai-bot/issue-469

Conversation

@unicoderbot

@unicoderbot unicoderbot Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Summary

This change fixes the flutter_plugin template to only generate platform-specific jobs in the main workflow based on the platforms specified during plugin creation.

What Changed

Wrapped all platform job definitions (android, ios, linux, macos, web, windows) with mustache conditionals:

  • {{#android}}...{{/android}}
  • {{#ios}}...{{/ios}}
  • {{#linux}}...{{/linux}}
  • {{#macos}}...{{/macos}}
  • {{#web}}...{{/web}}
  • {{#windows}}...{{/windows}}

This ensures that only the selected platforms will have their corresponding CI/CD jobs generated in the workflow file.

Why

Previously, all platform jobs were always generated regardless of which platforms were specified during plugin creation, leading to unnecessary CI jobs and potential failures for unsupported platforms.

Closes #469

Closes #469

Co-authored-by: marcossevilla <marcossevilla@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: flutter_plugin generates all platform jobs in main workflow

1 participant