Status Update
Comments
am...@google.com <am...@google.com> #2
I am not sure I understand the use case. how can the benchmark be code to real world scenario when it's not possible to do right now ? which scenario is it ?
In any case, since this would be for benchmarking, this would clearly not be available through the public DSL. We should find a semi-private way of doing this (maybe the private variant API object could offer that functionality for instance or a property).
jg...@google.com <jg...@google.com>
jg...@google.com <jg...@google.com>
an...@google.com <an...@google.com> #3
We want benchmarks to measure code after Progaurd / R8, but it's not possible to turn that on for androidTests in library modules at the moment (to my knowledge?)
Benchmarks are also a public facing thing, but we have a plugin to help configure gradle builds for our users, so if support for this ends up in a private API, we could try to keep those usages localized to our code perhaps.
an...@google.com <an...@google.com> #4
Any update on the status of this request and when it can be supported?
Thanks,
Amanda
Description
Hello, I found that calling
context.getSystemService(Context.VIBRATOR_SERVICE)
leads to a crash if run in the IDE preview, even in interactive preview, which is quite annoying when you have haptics linked to touch interaction for example.Why isn't that implemented as a no-op in the IDE, or implemented through speakers, or as a visual indicator to see when the vibrator is asked to be running?
All the details are below, have a good one!
Louis CAD
Jetpack Compose version: 1.2.1
Jetpack Compose component(s) used: IDE preview
Android Studio Build:
Kotlin version: 1.7.10
Steps to Reproduce or Code Sample to Reproduce:
LocalContext.current.getSystemService(Context.VIBRATOR_SERVICE)
in a@Composable
functionStack trace (if applicable):