From 1878712d981aea00b2885c5cf65eb6dd1b81e307 Mon Sep 17 00:00:00 2001 From: Nino van Hooff Date: Wed, 20 Oct 2021 17:37:51 +0200 Subject: [PATCH] Add sdkVersion to SystemCollector --- README.md | 1 + .../java/com/q42/q42stats/library/collector/SystemCollector.kt | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index d8f52d2..e3756f2 100644 --- a/README.md +++ b/README.md @@ -87,6 +87,7 @@ Not all fields are supported on all versions of Android. If unsupported, the cor | Key | Value | Notes | |-|-|-| | `defaultLanguage`| en, nl, ... | +| `sdkVersion` | int | 29 for Android 10. [See this list](https://source.android.com/setup/start/build-numbers) ## Development diff --git a/q42stats/src/main/java/com/q42/q42stats/library/collector/SystemCollector.kt b/q42stats/src/main/java/com/q42/q42stats/library/collector/SystemCollector.kt index 9c06c4c..19fc7ce 100644 --- a/q42stats/src/main/java/com/q42/q42stats/library/collector/SystemCollector.kt +++ b/q42stats/src/main/java/com/q42/q42stats/library/collector/SystemCollector.kt @@ -8,5 +8,6 @@ internal object SystemCollector { fun collect() = mutableMapOf().apply { put("defaultLanguage", Locale.getDefault().language) // language code like en or nl + put("sdkVersion", android.os.Build.VERSION.SDK_INT) // eg 16 for Android 4.1 Jelly Bean } } \ No newline at end of file