← Back to team overview

ubuntu-phone team mailing list archive

Re: Bundling scopes with webapps

 

Thanks Chris, will give it a go. I also notice that sometimes rss scopes made with scopecreator don't display pictures, however space is left for them. How do I troubleshoot this?

M


On Monday, 9 March 2015 2:54:14 AM AEDT, Chris Wayne wrote:
You can have more than one "app" in each click package, so you can just add
a second section for the webapp (or even a third!).  Here's the untappd
scope manifest for example (which does this + an account plugin).

{
    "description": "Untappd scope",
    "framework": "ubuntu-sdk-14.10",
    "architecture": "armhf",
    "hooks": {
        "untappd": {
            "scope": "untappd",
            "apparmor": "scope-security.json",
            "account-service": "untappd-scope.service",
            "account-application": "untappd.application"
        },
        "untappdaccount": {
    "account-qml-plugin": "untappd",
            "account-provider": "untappd.provider"
        },
        "webapp": {
            "account-service": "webapp-untappd.service",
            "desktop": "webapp-untappd.desktop",
            "apparmor": "webapp-untappd.json",
            "account-application": "webapp-untappd.application",
            "urls": "untappd.url-dispatcher"
       }
    },
    "icon": "icon",
    "maintainer": "Chris Wayne <cwayne@xxxxxxxxxx>",
    "name": "com.ubuntu.developer.cwayne18.untappd",
    "title": "Untappd scope",
    "version": "1.0.6"
}


On Sun, Mar 8, 2015 at 8:43 AM, Mitchell Reese <dev@xxxxxxxxxxxxxxxxxxxxx>
wrote:

Hi, I'm working on a couple scopes that call webapps through the
url-dispatcher. I've got them working individually, however is there a way I can bundle a scope and webapp together so they are installed at the same
time?

Also, url-dispatcher isn't well supported in the sdk at the moment. In
order to add that option I need to manually edit the manifest.json outside
of the sdk editor. Each time the manifest.json is edited from within the
sdk, it erases the line that calls the url-dispatcher -

"url": "omgubuntu.url-dispatcher"

Would be nice if this option were better supported.

Thanks.

Mitchell

--
Mailing list: https://launchpad.net/~ubuntu-phone
Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp





--
Sent using Dekko from my Ubuntu device


References