summaryrefslogtreecommitdiffstats
path: root/mobile/android/geckoview_example
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:29 +0000
commit59203c63bb777a3bacec32fb8830fba33540e809 (patch)
tree58298e711c0ff0575818c30485b44a2f21bf28a0 /mobile/android/geckoview_example
parentAdding upstream version 126.0.1. (diff)
downloadfirefox-59203c63bb777a3bacec32fb8830fba33540e809.tar.xz
firefox-59203c63bb777a3bacec32fb8830fba33540e809.zip
Adding upstream version 127.0.upstream/127.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'mobile/android/geckoview_example')
-rw-r--r--mobile/android/geckoview_example/build.gradle1
-rw-r--r--mobile/android/geckoview_example/src/main/java/org/mozilla/geckoview_example/GeckoViewActivity.java24
2 files changed, 1 insertions, 24 deletions
diff --git a/mobile/android/geckoview_example/build.gradle b/mobile/android/geckoview_example/build.gradle
index 4c8473c047..56363cecfc 100644
--- a/mobile/android/geckoview_example/build.gradle
+++ b/mobile/android/geckoview_example/build.gradle
@@ -53,6 +53,7 @@ android {
dependencies {
implementation ComponentsDependencies.androidx_annotation
implementation ComponentsDependencies.androidx_appcompat
+ implementation ComponentsDependencies.androidx_core
implementation ComponentsDependencies.androidx_preferences
implementation project(path: ':geckoview')
diff --git a/mobile/android/geckoview_example/src/main/java/org/mozilla/geckoview_example/GeckoViewActivity.java b/mobile/android/geckoview_example/src/main/java/org/mozilla/geckoview_example/GeckoViewActivity.java
index 30ae778b8b..48036f7bf5 100644
--- a/mobile/android/geckoview_example/src/main/java/org/mozilla/geckoview_example/GeckoViewActivity.java
+++ b/mobile/android/geckoview_example/src/main/java/org/mozilla/geckoview_example/GeckoViewActivity.java
@@ -91,7 +91,6 @@ import org.mozilla.geckoview.GeckoWebExecutor;
import org.mozilla.geckoview.Image;
import org.mozilla.geckoview.MediaSession;
import org.mozilla.geckoview.OrientationController;
-import org.mozilla.geckoview.RuntimeTelemetry;
import org.mozilla.geckoview.SlowScriptResponse;
import org.mozilla.geckoview.TranslationsController;
import org.mozilla.geckoview.WebExtension;
@@ -874,7 +873,6 @@ public class GeckoViewActivity extends AppCompatActivity
.build())
.crashHandler(ExampleCrashHandler.class)
.preferredColorScheme(mPreferredColorScheme.value())
- .telemetryDelegate(new ExampleTelemetryDelegate())
.javaScriptEnabled(mJavascriptEnabled.value())
.extensionsProcessEnabled(mExtensionsProcessEnabled.value())
.globalPrivacyControlEnabled(mGlobalPrivacyControlEnabled.value())
@@ -3039,28 +3037,6 @@ public class GeckoViewActivity extends AppCompatActivity
}
}
- private final class ExampleTelemetryDelegate implements RuntimeTelemetry.Delegate {
- @Override
- public void onHistogram(final @NonNull RuntimeTelemetry.Histogram histogram) {
- Log.d(LOGTAG, "onHistogram " + histogram);
- }
-
- @Override
- public void onBooleanScalar(final @NonNull RuntimeTelemetry.Metric<Boolean> scalar) {
- Log.d(LOGTAG, "onBooleanScalar " + scalar);
- }
-
- @Override
- public void onLongScalar(final @NonNull RuntimeTelemetry.Metric<Long> scalar) {
- Log.d(LOGTAG, "onLongScalar " + scalar);
- }
-
- @Override
- public void onStringScalar(final @NonNull RuntimeTelemetry.Metric<String> scalar) {
- Log.d(LOGTAG, "onStringScalar " + scalar);
- }
- }
-
private class ExampleActivityDelegate implements GeckoView.ActivityContextDelegate {
public Context getActivityContext() {
return GeckoViewActivity.this;