No results found

Setting global configuration options in an App Cloud template

Version 1.7.3 of the App Cloud SDK introduced the ability to declare global configuration options in manifest.json. Global configs look exactly like view-level configs, except they apply to every view in your template. Here's how to include them in your manifest file:

    "name": "Rock",
    "description": "Roll",
    "version": "1.0",
    "devices": [ "iPhone", "Android" ],
    "global": {
        settings: [ ... ],
        styles: [ ... ],
        data: [ ...]
    "views": [

When you upload your template to App Cloud Studio and create an app from it, you'll see a new "Global" tab. Here, you can override the default values declared in the manifest file.

If you're using the same configuration options in more than one view, use global configs and keep it DRY: Don't Repeat Yourself!

p.s. Get more tips and tricks (and share your own) by joining the Brightcove App Cloud discussion group on Google.