trevjonez / composer-gradle-plugin

Gradle task type and plugin for interacting with https://github.com/gojuno/composer
Apache License 2.0
53 stars 18 forks source link

Feature-Request: ability to have a global config #19

Closed ligi closed 6 years ago

ligi commented 6 years ago

Currently you have to configure per variant - it would be great to be able to configure globally. Especially interested in configuring apkInstallTimeout in a DRY way

trevjonez commented 6 years ago

I am thinking of adding more options to the root dsl object to resolve this. that will act as the global but the variants would override the root global config if different.

shard, verboseOutput, device, devices, devicePattern, apkInstallTimeout.

A possible workaround until I can do this work would be to use the tasks.all { ... } to find the tasks that match the composer task pattern and update the configuration of said task with your global setting.

ligi commented 6 years ago

sounds great - thanks!

trevjonez commented 6 years ago

in 0.8.0 and the readme dsl overview has a few adjustment to show the changes. I bit better doc block on the sources too.