I found the solution. It is possible simply use project.afterEvaluate 
before apply android plugin.

Dne pátek 23. září 2016 11:53:02 UTC+2 Tomáš Procházka napsal(a):
>
> I did own gradle plugin which setup android build plugin and init all 
> default stuff which we are using in out company.
> But it allows override everything later in normal ways.
> For example it automatically setup applicationIdSuffix ".debug" for debug 
> build.
>
> But I can normally use 
>
> buildTypes {
>     debug {
>         applicationIdSuffix ""
>
>
> to turn it off, after plugin apply, when some project need it.
>
> But problem is that I'm doing also this
>
> project.android {
>
>     buildTypes {
>
>         debug {
>
>             manifestPlaceholders = ['applicationIdSuffix' : 
> applicationIdSuffix]
>
>         }
>
>
>         release {
>
>             manifestPlaceholders = ['applicationIdSuffix' : ""]
>
>         }
>
>     }
>
> }
>
>
> But when I change applicationIdSuffix later, manifestPlaceholders will use 
> different value.
> So I need to setup manifestPlaceholders at the end of the configuration 
> phase, when android closure is closed.
> And it must also keep the manifestPlaceholders setuped by user of the my 
> plugin.
> There is any proper way how to do it?
> I tried to use project.afterEvaluate, but for it is too late
>

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