Skip to content

Commit

Permalink
feat: add flavors to pubspec.json (#4018)
Browse files Browse the repository at this point in the history
  • Loading branch information
danieletulone authored Aug 28, 2024
1 parent 96707d0 commit c049995
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/schemas/json/pubspec.json
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,15 @@
"type": "string",
"examples": ["images/", "postscript_tiger.svg"]
},
"flavors": {
"title": "Asset Flavors",
"description": "A list of flavors that include the asset. [Learn more.](https://docs.flutter.dev/deployment/flavors#conditionally-bundling-assets-based-on-flavor)",
"type": "array",
"items": {
"description": "The name of the flavor",
"type": "string"
}
},
"transformers": {
"title": "Asset Transformers",
"description": "A list of transformers to apply to the asset. [Learn more.](https://docs.flutter.dev/ui/assets/asset-transformation)",
Expand Down
2 changes: 2 additions & 0 deletions src/test/pubspec/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ flutter:
uses-material-design: true
assets:
- path: assets/colorful.jpg
flavors:
- develop
transformers:
- package: grayscale_transformer
- assets/another_asset.png
Expand Down

0 comments on commit c049995

Please sign in to comment.