With android-gradle, I can get the processResources task's associated
directory using the Output API with :
android.applicationVariants.all { variant ->
variant.outputs.each { output ->
def resDir = output.processResources.resDir;
// for flavorARelease variant, this resDir is : //
build/intermediates/res/flavorA/release/
}
}
Now, I would like to retrieve, *without hardcoding it*, the folder
/build/generated/res/something/rs/flavorA/release/
This folder might be retrievable with the generateResources task but I
can't find a way to get this specific task.
tasks["generate${variant.name.capitalize()}Resources"] may not be a good
idea ?
On a more generic note, can someone explain how works the resource merging
with "generated/" folders ? why are there intermediate folders in the
hierarchy (something/rs) and not simply (/generated/res/flavorA/release) ?
Thank you for your help.
--
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.