Skip to content

Commit

Permalink
Metrics Platform minor updates, bump version (#4470)
Browse files Browse the repository at this point in the history
- Update references to updated schema versions
- Include app_version_name in AgentData object
- Bump MP version to 2.3

Bug: T357371

Co-authored-by: Clare Ming <[email protected]>
  • Loading branch information
cjming and cjming authored Feb 16, 2024
1 parent b462aaf commit b948040
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ dependencies {
String roomVersion = "2.6.1"
String espressoVersion = '3.5.1'
String serialization_version = '1.6.2'
String metricsVersion = '2.2'
String metricsVersion = '2.3'

coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.4'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ArticleFindInPageInteraction(private val fragment: PageFragment) : TimedMe
fun logDone() {
submitEvent(
"android.product_metrics.find_in_page_interaction",
"/analytics/mobile_apps/product_metrics/android_find_in_page_interaction/1.0.0",
"/analytics/mobile_apps/product_metrics/android_find_in_page_interaction/1.1.0",
"find_in_page_interaction",
mapOf(
"find_text" to findText,
Expand Down Expand Up @@ -147,9 +147,9 @@ class ArticleToolbarInteraction(private val fragment: PageFragment) : TimedMetri
"android.product_metrics.article_toolbar_interaction",
"article_toolbar_interaction",
getInteractionData(
"article_toolbar_interaction",
action,
null,
null,
"time_spent_ms.${timer.elapsedMillis}"
),
getPageData(fragment)
Expand Down Expand Up @@ -187,7 +187,7 @@ class ArticleTocInteraction(private val fragment: PageFragment, private val numS
}
submitEvent(
"android.product_metrics.article_toc_interaction",
"/analytics/mobile_apps/product_metrics/android_article_toc_interaction/1.0.0",
"/analytics/mobile_apps/product_metrics/android_article_toc_interaction/1.1.0",
"article_toc_interaction",
mapOf(
"num_opens" to numOpens,
Expand Down Expand Up @@ -237,8 +237,8 @@ class ArticleLinkPreviewInteraction : TimedMetricsEvent {
"android.product_metrics.article_link_preview_interaction",
"article_link_preview_interaction",
getInteractionData(
"article_link_preview_interaction",
action,
null,
source.toString(),
"time_spent_ms.${timer.elapsedMillis}",
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ object MetricsPlatform {
WikipediaApp.instance.appInstallID,
WikipediaApp.instance.currentTheme.toString(),
WikipediaApp.instance.versionCode,
"WikipediaApp/" + BuildConfig.VERSION_NAME,
"android",
"app",
WikipediaApp.instance.languageState.systemLanguageCode,
Expand Down

0 comments on commit b948040

Please sign in to comment.