diff --git a/src/schemas/json/pubspec.json b/src/schemas/json/pubspec.json index ffcc0b34307..e1ff3a0fab3 100644 --- a/src/schemas/json/pubspec.json +++ b/src/schemas/json/pubspec.json @@ -419,6 +419,22 @@ } ] ] + }, + "platforms": { + "title": "Asset Platforms", + "description": "A list of platforms that include the asset. [Learn more.](https://docs.flutter.dev/tools/pubspec#assets)", + "type": "array", + "items": { + "type": "string", + "enum": [ + "android", + "ios", + "linux", + "macos", + "web", + "windows" + ] + } } }, "required": ["path"], diff --git a/src/test/pubspec/pubspec.yaml b/src/test/pubspec/pubspec.yaml index 2f4f372bf1f..c0a75837629 100644 --- a/src/test/pubspec/pubspec.yaml +++ b/src/test/pubspec/pubspec.yaml @@ -13,6 +13,10 @@ environment: flutter: ^1.0.0 sdk: '>=2.2.2 <3.0.0' +resolution: workspace + +workspace: [] + dependencies: analyzer: any another: null @@ -52,6 +56,9 @@ flutter: - develop transformers: - package: grayscale_transformer + platforms: + - android + - windows - assets/another_asset.png - assets/a whole folder/