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

Recent Discussions

07 May, 2023 04:17 PM
28 Apr, 2023 11:22 PM
23 Apr, 2023 09:43 AM
03 Nov, 2022 01:22 AM
29 Jun, 2022 05:39 PM

 

04 Aug, 2021 12:50 PM
15 Apr, 2021 06:10 PM
15 Jan, 2021 06:56 PM
09 Mar, 2020 11:11 PM
09 Mar, 2020 11:09 PM
17 Apr, 2019 02:51 PM