pubspec_yaml.json 2.45 KB
Newer Older
1 2 3 4 5 6 7 8
{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "pubspec.yaml",
    "type": "object",
    "additionalProperties": true,
    "properties": {
        "name": { "type": "string" },
        "flutter": {
9 10 11 12
            "oneOf": [
                { "type": "object" },
                { "type": "null" }
            ],
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
            "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" ] }
                                    }
                                }
                            }
                        }
                    }
45
                },
46
                "module": {
47 48 49
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
50 51
                        "androidPackage": { "type": "string" },
                        "iosBundleIdentifier": { "type": "string" }
52 53
                    }
                },
54 55 56 57 58
                "plugin": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                        "androidPackage": { "type": "string" },
59
                        "iosPrefix": { "type": "string" },
60
                        "pluginClass": { "type": "string" }
61
                    }
62 63 64 65 66
                }
            }
        }
    }
}