Adding tasks for mobile development

plank.michael's Avatar

plank.michael

06 Jan, 2014 10:07 AM

I'd like to add tasks to my gradle script to do things like:
- package ipa-debug - package ipa-debug-interpreter - package apk ...

Since the packageMobile tasks can of course only handle one of those packaging types, I'd like to add additional tasks so I can also simply launch them with a double click (using Gradle plugin in Eclipse).

I'm just starting and learning Groovy and Gradle, so I'm not really sure how to add such tasks.
Can I somehow call the packageMobile task and override properties?

Any help would be very appreciated.
Thx guys,
Michael

  1. Support Staff 1 Posted by Yennick Trevels on 06 Jan, 2014 10:25 AM

    Yennick Trevels's Avatar

    What may be even better suited for what you want to do is using multiple configurations. Maxim has an excellent explanation of this on his blog, which you can find here: http://blog.riastar.net/2013/03/28/gradlefx-multiple-configurations/

  2. 2 Posted by plank.michael on 06 Jan, 2014 01:08 PM

    plank.michael's Avatar

    Thx a lot for this!
    This is definitely a nice approach!
    I'll definitely try it and share my thoughts.

    Thx for your super fast responses, makes working with gradleFX really awesome!
    Michael

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac