Skip to content

Commit

Permalink
Add sdkVersion to SystemCollector
Browse files Browse the repository at this point in the history
  • Loading branch information
ninovanhooff committed Oct 20, 2021
1 parent 35d4862 commit 1878712
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ internal object SystemCollector {

fun collect() = mutableMapOf<String, Serializable>().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
}
}

0 comments on commit 1878712

Please sign in to comment.