{
  "id": "price-compare",
  "name": "同类商品比价",
  "version": "1.0.0",
  "kind": "utility",
  "description": "按相同计量单位比较两个规格的价格，并保存比价结果。",
  "branding": {
    "icon": "assets/icon.png"
  },
  "categories": [
    "shopping",
    "finance"
  ],
  "tags": [
    "shopping",
    "finance"
  ],
  "localizations": {
    "zh-CN": {
      "displayName": "同类商品比价",
      "description": "按相同计量单位比较两个规格的价格，并保存比价结果。"
    },
    "en": {
      "displayName": "Unit Price Compare",
      "description": "Compare two package sizes in the same unit and save the result."
    }
  },
  "ui": {
    "main": "ui/index.html",
    "permissions": [
      "theme",
      "storage"
    ],
    "collections": [
      {
        "name": "comparisons",
        "title": "同类商品比价",
        "fields": [
          {
            "key": "title",
            "type": "string",
            "required": true
          },
          {
            "key": "unit",
            "type": "enum",
            "values": [
              "千克",
              "克",
              "升",
              "毫升",
              "件"
            ]
          },
          {
            "key": "priceA",
            "type": "number",
            "required": true
          },
          {
            "key": "sizeA",
            "type": "number",
            "required": true
          },
          {
            "key": "priceB",
            "type": "number",
            "required": true
          },
          {
            "key": "sizeB",
            "type": "number",
            "required": true
          }
        ]
      }
    ]
  },
  "engines": {
    "xopc": ">=0.0.106 <1.0.0"
  }
}
