Skip to content

Commit

Permalink
Add sdkVersion to SystemCollector
Browse files Browse the repository at this point in the history
ninovanhooff committed Oct 20, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 35d4862 commit 1878712
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
@@ -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
Original file line number Diff line number Diff line change
@@ -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.