Comment 1 for bug 1227058

Revision history for this message
James Tait (jamestait) wrote :

I'd like to clarify this requirement:

What we're expecting is that when a com.ubuntu.developer.SOMEDEV.SOMEAPP_0.1_unknown.click package is uploaded with a .desktop file that contains an entry X-Ubuntu-Touch=True:

[Desktop Entry]
Name=SOMEAPP
Comment=My awesome app.
Exec=qmlscene $@ myapp.qml
Icon=myapp.png
Terminal=false
Type=Application
X-Ubuntu-Touch=true

Then Software Centre/Click Updown/Click Package Index should parse the desktop file and convert that to a category, such that search.apps.ubuntu.com/api/v1/package/com.ubuntu.developer.SOMEDEV.SOMEAPP contains an entry "categories": [ ... "X-UbuntuTouch", ...]:

{
  "description": "My awesome app.",
  "license": "GNU GPL v3",
  "title": "SOMEAPP",
  "download_url": "https://public.apps.ubuntu.com/download/com.ubuntu.developer.SOMEDEV/SOMEAPP/com.ubuntu.developer.SOMEDEV.SOMEAPP_0.1_unknown.click",
  "click_version": "0.4",
  "version": "0.1",
  "framework": [
    "ubuntu-sdk-13.10"
  ],
  "name": "com.ubuntu.developer.SOMEDEV.SOMEAPP",
  "categories": [
    "X-UbuntuTouch"
  ]
}

Does that sound about right?