MobileChromeApps / mobile-chrome-apps

Chrome apps on Android and iOS
BSD 3-Clause "New" or "Revised" License
2.5k stars 347 forks source link

Differences config.xml and manifest.json #562

Closed GustavoCostaW closed 9 years ago

GustavoCostaW commented 9 years ago

I create new project for test and I check manifest.json and config.xml have icons to project, why? this is a little confusing to me, what should I do with the manifest and what I should do with config.xml? I know that the config.xml is a file to cordova project, and manifest is chrome app, but, why there is not just one? thx!

schme16 commented 9 years ago

@GustavoCostaW: Just to remove any confusion, you only need to update the manifest.json file, when you run cca prepare the cca tool will make all necissary adjustments to the config.xml file for you.

As for the reason there are two, that's because all web apps are moving to using a manifest.json file (see: https://developer.chrome.com/extensions/manifest and https://w3c.github.io/manifest/); this helps keep your app consistent across multiple platforms; while cordova uses the config.xml format, so must be added for you; but as mentioned above, you do not need to manually change the config.xml file, it will get updated when you run the cca prepare command.

GustavoCostaW commented 9 years ago

@schme16 thx!