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