# packageinfo.json

## Overview

Defines the contents of a package. A package contains one application, zero or more services, zero or more account templates, and other special files such as scripts.

## Schema

>     {
>       "id"                     : string,
>       "package_format_version" : string,
>       "loc_name"               : string,
>       "version"                : string,
>       "icon"                   : string,
>       "miniicon"               : string,
>       "vendor"                 : string,
>       "vendorurl"              : string,
>       "app"                    : string,
>       "services"               : string array,
>       "accounts"               : string array,
>       ... other user-defined fields ...
>     }

## Elements

Element | Required | Type | Description
--- | --- | --- | ---
id | Yes | string | Package ID.
package_format_version | Yes | int | Packaging format version, currently, "2".
loc_name | Yes | string | Localizable package name.
version | Yes | string | Package version.
icon | No | string | Icon file name.
miniicon | No | string | Mini icon file name.
vendor | Yes | string | Vendor name.
vendorurl | Yes | string | Vendor URL.
app | Yes | string | Application ID.
services | No | string array | Services packaged with the app.
accounts | No | string array | Account template files.

## Example

    {
      "id": "com.palmdts.testacct",
      "package_format_version": 2,
      "loc_name": "Palm Synergy Contact Demo",
      "version": "1.0.0",
      "vendor": "Palm",
      "vendorurl": "www.palm.com",
      "app": "com.palmdts.testacct",
      "services": ["com.palmdts.testacct.contacts.service"],
      "accounts": ["com.palmdts.testacct.contact"]
    }