I am able to extend the Android plugin, however there is one place in the variant data where it hardcodes a ProGuardTask. This property is just used to create task dependencies in Gradle so a Task will work equally well. I have submitted a patch which changes this from ProGuardTask to simply Task.
https://android-review.googlesource.com/91231 On Wednesday, December 4, 2013 3:07:05 PM UTC-5, Xavier Ducrohet wrote: > > This should be possible already. Gradle allows you to add any new task and > our plugin give you access to the compile and dex tasks for every variants > so you should be able to hook in between. > > What you won't get out of the box is the ability to combine rules files > defined per flavors/build type (though you could reuse the same DSL items > and have it point to files in your format. Maybe we should rename the DSL > to not be Gradle specific), or to have aapt to output a different rule file > in your format. Maybe you can read proguard files though? > > > On Mon, Nov 18, 2013 at 8:21 AM, Matthew Insko > <[email protected]<javascript:> > > wrote: > >> The existing ANT integration was open to support a custom obfuscation >> tool to be called instead of Proguard. >> I work on PreEmptive Solutions' DashO product and am investigating >> integration options for the new Gradle based build system for Android. >> What are your thoughts on allowing for the configuration of a custom >> obfuscation task to be run from the Gradle integration? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "adt-dev" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > > > -- > Xavier Ducrohet > Android SDK Tech Lead > Google Inc. > http://developer.android.com | http://tools.android.com > > Please do not send me questions directly. Thanks! > -- You received this message because you are subscribed to the Google Groups "adt-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
