Skip to content

Commit

Permalink
Fix device_type typo (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
marandaneto authored Oct 4, 2023
1 parent 2b5027b commit b28d7c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b28d7c8

Please sign in to comment.