Custom sign for ID build

53 views
Skip to first unread message

Tomáš Procházka

unread,
Jun 23, 2017, 1:21:39 PM6/23/17
to adt-dev
Hi.

I'm using custom sign task.
I'm iterate over project.android.applicationVariants and setup necessary tasks and set variant.outputsAreSigned = true
But in the Gradle 2.3.X it stop working, probably becouse of some optimalisation, because project.android.applicationVariants is empty there.
There will be probably something special which will contain just one variant choosed by "Build Variants" window.

Can somebody helps me how to setup sign for release build also in the IDE builds?

Tomáš Procházka

unread,
Jul 12, 2017, 5:30:30 PM7/12/17
to adt-dev
So this will be also some lazy initialization and I should not do this in the configuration time, but move it to some Task which will do it just before build. Probably

btw. subject of this thread should be "Custom sign for IDE build".

Dne pátek 23. června 2017 19:21:39 UTC+2 Tomáš Procházka napsal(a):

Tomáš Procházka

unread,
Aug 19, 2017, 7:12:19 PM8/19/17
to adt-dev
I investigate it more.
It happen only when Instant run is activated and selected buildType has debuggable true setup.
In this scenario whole project.android.applicationVariants.all is empty after project evaluate. 
Reply all
Reply to author
Forward
0 new messages