Gradle plugin API for Proguard mapping file

56 views
Skip to first unread message

Roman Mazur

unread,
Nov 25, 2014, 4:04:55 AM11/25/14
to adt...@googlegroups.com
I do not see any API to get output proguard mapping file.
Probably it is correct, since a proper solution would be

if (variant.obfuscation instanceof ProguardTask) {
  def mappingFile = variant.obfuscation.someNonExisintgPropertyInProguardTaskThatReturnesTheMappingFile
}

..but ProguardTask also does not have such an API.

I believe some time ago we did have some property to get this file...

Just tired of changing our internal publishing plugin due to mapping file relocations...

Should we poke Eric Lafortune for this?

Xavier Ducrohet

unread,
Nov 25, 2014, 12:37:21 PM11/25/14
to adt...@googlegroups.com
android.applicationVariants.all { variant -> }
  def mappingFile = variant.mappingFile
}

Yes it's on the variant instead of the task because the task does not have such an API.

--
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 adt-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.
http://developer.android.com | http://tools.android.com

Please do not send me questions directly. Thanks!

Roman Mazur

unread,
Nov 26, 2014, 3:16:04 AM11/26/14
to adt...@googlegroups.com
Thanks! Missed that property.

You received this message because you are subscribed to a topic in the Google Groups "adt-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adt-dev/8Wfw6Htrcaw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adt-dev+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages