Hi. 

Please, I need help again.
My custom sign mechanism is again broken in plugin 4.6.0.

InstallableVariantImpl.getFinalArtifact now return a different value, 
insead of BuildableArtifact it is there now Provider<FileCollection>.
It is also necessary to call it in this way from Groovy now 
variant.getFinalArtifact(new 
InternalArtifactType.APK())
I get Provider instance correctly, but the collection is always empty.

@TaskAction
void sign() {
    println '>>>>>>>>>>>>>> A2 sign task: ' + inputFiles.get().files.size()


This is always 0.
I'm calling get() in my task, which is registered in this way

variant.assembleProvider.configure {
    dependsOn(signTask)
}



Dne čtvrtek 17. ledna 2019 12:40:06 UTC+1 Tomáš Procházka napsal(a):
>
> So, here is my final solution:
> https://gist.github.com/tprochazka/457c7eebd044c0210dcc8ba49301cda9
>
> It's quite complicated. I'm using not public API, but it looks that it 
> works currently.
>
> I created a new feature request to make it possible in some easier way 
> https://issuetracker.google.com/issues/122883577
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adt-dev/32902776-8330-4b57-a9e3-ae09e55af95d%40googlegroups.com.

Reply via email to