Setting debug version in build script for moeLaunch Task

Hi! I use moe 1.3.0 beta. I have two different provisioning profiles: for development and for distribution. I assign distribution profile with release configuration. How can I set moeLaunch task to use debug config in build script?
I know about

moeLaunch -Pmoe.launcher.options=config:debug

But can I do it in build.gradle?

1 Like

Dear zufarfakhurtdinov,

This may work:

project.setProperty('moe.launcher.options', 'config:debug');

Best Regards,
Kristóf

Thank you. But how I can set it in task?
Will it work:

tasks.getByPath(":graphics-test-moe:moeLaunch") {
   project.setProperty('moe.launcher.options', 'config:debug');
}

?

And I want to disable proguard running for my debug configuration.
So, how can I handle that current task use debug configuration?
And then set

moe {
  proguardLevel 'all'
}
project.setProperty('moe.launcher.options', 'config:debug');

doesn’t work. I see that in log:

Could not set unknown property 'moe.launcher.options' for project ':graphics-test-moe' of type org.gradle.api.Project.