Android: Support the extraenvvars and extraappparams options

The Qt/Android runtime does support passing parameters to the
application. We have to pass '-e extraappparams <base64 string>' and
'-e extraenvvars <base64 strings, concatenated by ";">'. This is very
handy and should actually be exposed in the GUI.

Change-Id: I8c84a53ab8f6f07ea5b6e01c902f53385df8b35f
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
This commit is contained in:
Ulf Hermann
2018-01-30 18:28:23 +01:00
parent 9771333f9f
commit 6a964d8d0b
9 changed files with 49 additions and 12 deletions

View File

@@ -31,12 +31,14 @@ using namespace ProjectExplorer;
namespace Android {
namespace Internal {
AndroidQmlToolingSupport::AndroidQmlToolingSupport(RunControl *runControl)
AndroidQmlToolingSupport::AndroidQmlToolingSupport(
RunControl *runControl, const QString &intentName, const QString &extraAppParams,
const Utils::Environment &extraEnvVars)
: RunWorker(runControl)
{
setDisplayName("AndroidQmlToolingSupport");
auto runner = new AndroidRunner(runControl);
auto runner = new AndroidRunner(runControl, intentName, extraAppParams, extraEnvVars);
addStartDependency(runner);
auto profiler = runControl->createWorker(runControl->runMode());