Enable metrics collection by default

PiperOrigin-RevId: 730383523
This commit is contained in:
shahddaghash 2025-02-24 03:45:44 -08:00 committed by Copybara-Service
parent 76df13d390
commit c90ca4e86e

View File

@ -145,6 +145,7 @@ public final class Transformer {
clock = Clock.DEFAULT;
listeners = new ListenerSet<>(looper, clock, (listener, flags) -> {});
if (SDK_INT >= 35) {
usePlatformDiagnostics = true;
metricsReporterFactory =
new EditingMetricsCollector.DefaultMetricsReporter.Factory(context);
}
@ -549,6 +550,8 @@ public final class Transformer {
* href="https://support.google.com/accounts/answer/6078260">if sharing usage and diagnostics
* data is enabled</a> by the user of the device.
*
* <p>The default value is {@code true}.
*
* @param usePlatformDiagnostics Whether transformer reports diagnostics data to the Android
* platform.
* @return This builder.