From f6e684bfe7f5e0d13c85ccaeac249a68663250a6 Mon Sep 17 00:00:00 2001 From: Mpendulo Ndlovu Date: Tue, 12 Sep 2023 19:01:44 +0200 Subject: [PATCH] Update analytics --- .../src/main/java/io/metamask/androidsdk/Analytics.kt | 2 +- .../src/main/java/io/metamask/androidsdk/EthereumViewModel.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/metamask-android-sdk/src/main/java/io/metamask/androidsdk/Analytics.kt b/metamask-android-sdk/src/main/java/io/metamask/androidsdk/Analytics.kt index bb6fd29b..99a56fe3 100644 --- a/metamask-android-sdk/src/main/java/io/metamask/androidsdk/Analytics.kt +++ b/metamask-android-sdk/src/main/java/io/metamask/androidsdk/Analytics.kt @@ -7,7 +7,7 @@ package io.metamask.androidsdk enum class Event(val value: String) { SDK_CONNECTION_REQUEST_STARTED("sdk_connect_request_started"), SDK_CONNECTION_ESTABLISHED("sdk_connection_established"), - SDK_CONNECTION_ACCEPTED("sdk_connection_accepted"), + SDK_CONNECTION_AUTHORIZED("sdk_connection_authorized"), SDK_CONNECTION_REJECTED("sdk_connection_rejected"), SDK_CONNECTION_FAILED("sdk_connection_failed"), SDK_DISCONNECTED("sdk_disconnected") diff --git a/metamask-android-sdk/src/main/java/io/metamask/androidsdk/EthereumViewModel.kt b/metamask-android-sdk/src/main/java/io/metamask/androidsdk/EthereumViewModel.kt index dfbdd301..b311b155 100644 --- a/metamask-android-sdk/src/main/java/io/metamask/androidsdk/EthereumViewModel.kt +++ b/metamask-android-sdk/src/main/java/io/metamask/androidsdk/EthereumViewModel.kt @@ -132,7 +132,7 @@ class EthereumViewModel @Inject constructor ( communicationClient.trackEvent(Event.SDK_CONNECTION_REJECTED, null) } } else { - communicationClient.trackEvent(Event.SDK_CONNECTION_ACCEPTED, null) + communicationClient.trackEvent(Event.SDK_CONNECTION_AUTHORIZED, null) } } @@ -152,7 +152,7 @@ class EthereumViewModel @Inject constructor ( communicationClient.trackEvent(Event.SDK_CONNECTION_REJECTED, null) } } else { - communicationClient.trackEvent(Event.SDK_CONNECTION_ACCEPTED, null) + communicationClient.trackEvent(Event.SDK_CONNECTION_AUTHORIZED, null) } callback?.invoke(result) }