Restore android metrics_default_jni dependency on heavy pc:peerconnection target
Bug: None
Change-Id: I63f64ca0c403c381ca6506fd14ac752ca5f5da05
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/328880
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
Auto-Submit: Danil Chapovalov <danilchap@webrtc.org>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#41248}
diff --git a/sdk/android/BUILD.gn b/sdk/android/BUILD.gn
index e8e8075..88fd1e7 100644
--- a/sdk/android/BUILD.gn
+++ b/sdk/android/BUILD.gn
@@ -822,11 +822,13 @@
rtc_library("libjingle_peerconnection_metrics_default_jni") {
visibility = [ "*" ]
sources = [ "src/jni/android_metrics.cc" ]
+ allow_poison = [ "environment_construction" ]
deps = [
":base_jni",
":generated_metrics_jni",
":native_api_jni",
":peerconnection_jni",
+ "../../pc:peerconnection",
"../../rtc_base:stringutils",
"../../system_wrappers:metrics",
]