This was https://code.google.com/p/android/issues/detail?id=69625 and this
has been fixed for the next release.

On Fri, Sep 12, 2014 at 11:27 PM, James Wald <[email protected]> wrote:

> I recently switched to consumerProguardFiles and experienced an issue with
> clean builds. The ProGuard rules are not being merged into the
> application's ProGuard configuration. Subsequent builds do have all of the
> ProGuard rules as expected.
>
> Apparently this is a known issue http://b.android.com/69625. Is anyone
> aware of a tenable workaround for this issue besides doing two builds?
>
> On Friday, December 6, 2013 8:03:04 PM UTC-10, Roman Mazur wrote:
>>
>> Thanks for explanations.
>> On 7 Dec 2013 01:28, "Xavier Ducrohet" <[email protected]> wrote:
>>
>>> This is because we can now apply proguard to the library code (to
>>> obfuscate internals for instance). So the DSL that was common to app and
>>> library plugin but had a different effect is now doing the same thing :
>>> configuring the project when running Proguard.
>>>
>>> However there is a new DSL to configure which proguard rule file to
>>> package inside the aar:
>>>
>>> android {
>>>    defaultConfig {
>>>         consumerProguardFiles 'rules1.txt', 'rules2.txt'
>>>    }
>>> }
>>>
>>> (you can also add files through the debug or release type in case you
>>> want to.)
>>>
>>>
>>>
>>> On Fri, Oct 11, 2013 at 11:59 AM, Roman Mazur <[email protected]>
>>> wrote:
>>>
>>>> Earlier proguard.txt file located in the root of a library project was
>>>> included to aar package.
>>>> But after some plugin update I do not see it in any more (my aar misses
>>>> proguard.txt). As a result appropriates proguard rules are not applied when
>>>> application is built.
>>>> And I cannot found any documentation covering this question...
>>>> I do not seem to change library build and blame plugin update only, but
>>>> maybe I'm mistaking...?
>>>>
>>>> --
>>>> 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/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 a topic in the
>>> Google Groups "adt-dev" group.
>>> To unsubscribe from this topic, visit https://groups.google.com/d/
>>> topic/adt-dev/BUIV_FDpq28/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> [email protected].
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>  --
> 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.
>



-- 
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.

Reply via email to