Merge pubspec.yaml and flutter.yaml. (#7605)

This commit is contained in:
Ian Hickson
2017-01-24 11:19:31 -08:00
committed by GitHub
parent ba4d78acb3
commit 1bdf351818
27 changed files with 268 additions and 176 deletions

View File

@@ -1,40 +0,0 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "flutter.yaml",
"type": "object",
"additionalProperties": false,
"properties": {
"name": { "type": "string" },
"uses-material-design": { "type": "boolean" },
"assets": {
"type": "array",
"items": { "type": "string" }
},
"services": {
"type": "array",
"items": { "type": "string" }
},
"fonts": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"family": { "type": "string" },
"fonts": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"asset": { "type": "string" },
"weight": { "type": "integer" },
"style": { "enum": [ "normal", "italic" ] }
}
}
}
}
}
}
}
}

View File

@@ -0,0 +1,46 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "pubspec.yaml",
"type": "object",
"additionalProperties": true,
"properties": {
"name": { "type": "string" },
"flutter": {
"type": "object",
"additionalProperties": false,
"properties": {
"uses-material-design": { "type": "boolean" },
"assets": {
"type": "array",
"items": { "type": "string" }
},
"services": {
"type": "array",
"items": { "type": "string" }
},
"fonts": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"family": { "type": "string" },
"fonts": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"asset": { "type": "string" },
"weight": { "enum": [ 100, 200, 300, 400, 500, 600, 700, 800, 900 ] },
"style": { "enum": [ "normal", "italic" ] }
}
}
}
}
}
}
}
}
}
}