cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CB-6895) Generated manifest skips some properties
Date Thu, 12 Jun 2014 18:37:05 GMT


ASF GitHub Bot commented on CB-6895:

Github user rodms10 commented on the pull request:
    Yeah, the priorities are pretty messy right now. Currently content in `config.xml` takes
precedence on all manifest properties, except two: `permissions` and `icons`. 
    For icons we added config to `default.xml` which end up in your platform's `config.xml`.
For permissions we update `plugin.xml` to add a `permission` element to the same platform's
`config.xml`. The problem is that this file is recreated from scratch on every prepare. Which
means you can't edit it.
    Because those 2 properties do not take precedence, you can overwrite them on the manifest.
But for that to work you need to create a manifest file in your root `www` folder or in `merges`.
    You can edit your root `config.xml` to alter these properties too, like so:
    ``` xml
    <platform name="firefoxos">
      <permission description="Will be required for accessing user location." name="geolocation"
      <icon height="128" src="nonwicon/icon-128.png" width="128" />
      <icon height="60" src="noneicon/icon-60.png" width="60" />
    This will create duplicates on the platform `config.xml`, that will come after whatever
is defined in `defaults.xml` or `plugins.xml`. It will be ignored by current code since what
comes first takes precedence.
    That said, I think that editing the root `config.xml` should be the "official" way of
changing those properties in the manifest and I made the changes to make it possible. The
down side is that you can't overwrite them with a manifest anymore, but that is better aligned
with cordova and removes the exceptions to precedence rules.
    Note that I amended the commit to the last one.

> Generated manifest skips some properties
> ----------------------------------------
>                 Key: CB-6895
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: FirefoxOS
>    Affects Versions: 3.5.0
>            Reporter: Rodrigo Silveira
>            Assignee: Rodrigo Silveira
> The properties *launch_path* and *installs_allowed_from* are hard coded and should instead
come from *content* and *access* elements in *config.xml*.
> Manifest doesn't support fullscreen and portrait.
> See [config.xml docs|]
for cordova props we can use and [app manifest doc|]
for what firefoxos supports.

This message was sent by Atlassian JIRA

View raw message