Status Update
Comments
pa...@google.com <pa...@google.com> #2
We are currently using AGP internal task types to flag memory-intensive tasks to enforce a reduced parallelism at execution time. I've raised this separately (with a lot more detail) as a feature request (
pa...@google.com <pa...@google.com> #4
Another use case that we have is to reactively respond to the creation of APKs and AABs. The new AGP APIs allow us to connect out tasks into the artifact pipeline via wiredWith
but the best we can come up with to receive the completed artifact is to wire in toTransform
. This A) does not guarantee that we will receive the final artifact as more transforms may be applied after our task is called, and B) requires us to copy the input property file/dir to our tasks output property file/dir in order to not break the build cache.
The reactive behavior of the above is the complicating factor.
A non-reactive approach could simply depend upon the task name and then look for a hardcoded path in the build directory (which is still sort of gross, since the build output paths are not documented as public API and change from time to time).
Another approach would be to wire a custom task to consume the output of the build via the built artifacts loader feeding an input property. However, this approach cannot be applied reactively. Either the custom task is included in the build and causes the creation of the binary artifact, or it is not included in the build and never gets invoked.
al...@android.com <al...@android.com> #6
We didn't provide a task wiring helper for that case as there's only one thing to wire, but I can see how the inconsistency can be misleading
Description
Version used: 23.2.0
Theme used: doesn't matter
Devices/Android versions reproduced on: 4.4, 6
MediaRouteControllerDialog doesn't display correct volume value on slider
Reproduced with CastVideos-android sample app
Action Performed
1. Open the app
2. Start casting
3. Go to cast menu
4. Swipe sound level multiple times
Expected Result
It should show actual sound level
Actual Result
It shows incorrect(previous) sound level
it seems to be problem with MediaRoute returning wrong volume