From b28d7c815e83d9dd651098f23652db1578bc580e Mon Sep 17 00:00:00 2001 From: Manoel Aranda Neto <5731772+marandaneto@users.noreply.github.com> Date: Wed, 4 Oct 2023 14:07:03 +0200 Subject: [PATCH] Fix `device_type` typo (#35) --- .../java/com/posthog/android/internal/PostHogAndroidContext.kt | 2 +- .../com/posthog/android/internal/PostHogAndroidContextTest.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog-android/src/main/java/com/posthog/android/internal/PostHogAndroidContext.kt b/posthog-android/src/main/java/com/posthog/android/internal/PostHogAndroidContext.kt index de577473..e11e7fca 100644 --- a/posthog-android/src/main/java/com/posthog/android/internal/PostHogAndroidContext.kt +++ b/posthog-android/src/main/java/com/posthog/android/internal/PostHogAndroidContext.kt @@ -41,7 +41,7 @@ internal class PostHogAndroidContext( staticContext["\$device_model"] = Build.MODEL staticContext["\$device_name"] = Build.DEVICE // Check https://github.com/PostHog/posthog-flutter/issues/49 and change if needed - staticContext["\$device_type"] = "mobile" + staticContext["\$device_type"] = "Mobile" staticContext["\$os_name"] = "Android" staticContext["\$os_version"] = Build.VERSION.RELEASE diff --git a/posthog-android/src/test/java/com/posthog/android/internal/PostHogAndroidContextTest.kt b/posthog-android/src/test/java/com/posthog/android/internal/PostHogAndroidContextTest.kt index a9753ceb..61f3efca 100644 --- a/posthog-android/src/test/java/com/posthog/android/internal/PostHogAndroidContextTest.kt +++ b/posthog-android/src/test/java/com/posthog/android/internal/PostHogAndroidContextTest.kt @@ -60,7 +60,7 @@ internal class PostHogAndroidContextTest { assertNotNull(staticContext["\$device_manufacturer"]) assertNotNull(staticContext["\$device_model"]) assertNotNull(staticContext["\$device_name"]) - assertEquals("mobile", staticContext["\$device_type"]) + assertEquals("Mobile", staticContext["\$device_type"]) assertEquals("Android", staticContext["\$os_name"]) // its dynamic