{
  "name": "Treasure",
  "appDomain": "treasure.app.privacysafe.io",
  "version": "0.0.2",
  "description": "The app for storing passwords securely.",
  "icon": "logo.png",

  "components": {

    "/index.html": {
      "startedBy": "user",
      "runtime": "web-gui",
      "formFactor": [ "desktop", "tablet" ],
      "capsRequested": {
        "apps": "opener",
        "logout": "all",
        "log": "all",
        "mailerid": true,
        "keyrings": "all",
        "shell": {
          "fileDialog": "all",
          "clipboard": "all",
          "fsResource": {
            "otherApps": {
              "launcher.app.privacysafe.io": "ui-settings"
            }
          },
          "openDashboard": true
        },
        "storage": {
          "appFS": "default"
        },
        "appRPC": [
          "AppTreasureInternal"
        ],
        "connectivity": "check"
      },
      "windowOpts": {
        "width": 1200,
        "height": 680,
        "minWidth": 1024,
        "minHeight": 600,
        "maxWidth": 1680
      }
    },

    "/index-mobile.html": {
      "startedBy": "user",
      "runtime": "web-gui",
      "formFactor": "phone",
      "capsRequested": {
        "apps": "opener",
        "logout": "all",
        "log": "all",
        "mailerid": true,
        "keyrings": "all",
        "shell": {
          "fileDialog": "all",
          "fsResource": {
            "otherApps": {
              "launcher.app.privacysafe.io": "ui-settings"
            }
          },
          "openDashboard": true
        },
        "storage": {
          "appFS": "default"
        },
        "appRPC": [
          "AppTreasureInternal"
        ],
        "connectivity": "check"
      }
    },

    "/treasureDenoServices.js": {
      "services": {
        "AppTreasure": {
          "thisAppComponents": "*",
          "otherApps": "*"
        },
        "AppTreasureInternal": {
          "thisAppComponents": "*"
        }
      },
      "runtime": "deno",
      "capsRequested": {
        "log": "all",
        "mailerid": true,
        "mail": {
          "preflightsTo": "all"
        },
        "storage": {
          "appFS": "default"
        },
        "connectivity": "check"
      }
    }

  },

  "launchers": [
    {
      "name": "Treasure",
      "icon": "logo.png",
      "description": "The app for storing passwords securely.",
      "component": "/index.html",
      "formFactor": [ "desktop", "tablet" ]
    },
    {
      "name": "Treasure",
      "icon": "logo.png",
      "description": "The app for storing passwords securely.",
      "component": "/index-mobile.html",
      "formFactor": "phone"
    }
  ],

  "launchOnSystemStartup": [
    {
      "name": "Treasure service",
      "component": "/treasureDenoServices.js",
      "icon": "logo.png",
      "description": "Warms up the treasure app service"
    }
  ]

}
