Configuration

Create an android profile

Add an android profile in your app.config.json file:

"base-android": {
    "base": {
        "name": "android",
        "vendors": [
            "@dana/engine-android",
            "@dana/renderer-android"
        ]
    },
    "device": {
       "platform": "android",
       "type": "androidtv"
    }
},

// For debug
"android-dev": {
    "mixins": ["base-android"],
    "device": {
       "debugMode": true
    }
},

// For release
"android-release": {
    "mixins": ["base-android"],
    "device": {
        "debugMode": false
    }
}

Launching your first server

When launching the application with grunt serve --profile=android-dev for the first time, some files will be created. You will mainly see:

  • a file named template/android.js.tpl which is basically the index.js of the application,
  • a folder app_android containing native code, which is the wrapper for the application,

Caution

You must commit those files.