aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2018-09-26 10:24:28 -0400
committerAllan Wang <me@allanwang.ca>2018-09-26 10:24:28 -0400
commit5b3762b3e04042447b9bf2758c37237d0c8af1b6 (patch)
tree1943b2c8f94de94cc33f9aabe47c830223957618 /core/src/main/kotlin
parent3ac791b744a56138501c9530fa6df8dcb0756739 (diff)
downloadkau-5b3762b3e04042447b9bf2758c37237d0c8af1b6.tar.gz
kau-5b3762b3e04042447b9bf2758c37237d0c8af1b6.tar.bz2
kau-5b3762b3e04042447b9bf2758c37237d0c8af1b6.zip
Suppress version code deprecation
Diffstat (limited to 'core/src/main/kotlin')
-rw-r--r--core/src/main/kotlin/ca/allanwang/kau/email/EmailBuilder.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/main/kotlin/ca/allanwang/kau/email/EmailBuilder.kt b/core/src/main/kotlin/ca/allanwang/kau/email/EmailBuilder.kt
index dbdcf09..2b9d91c 100644
--- a/core/src/main/kotlin/ca/allanwang/kau/email/EmailBuilder.kt
+++ b/core/src/main/kotlin/ca/allanwang/kau/email/EmailBuilder.kt
@@ -51,7 +51,7 @@ class EmailBuilder(val email: String, val subject: String) {
val emailBuilder = StringBuilder()
emailBuilder.append(message).append("\n\n")
if (deviceDetails) {
- val deviceItems = mutableMapOf(
+ val deviceItems = linkedMapOf(
"OS Version" to "${System.getProperty("os.version")} (${Build.VERSION.INCREMENTAL})",
"OS SDK" to Build.VERSION.SDK_INT,
"Device (Manufacturer)" to "${Build.DEVICE} (${Build.MANUFACTURER})",
@@ -72,6 +72,7 @@ class EmailBuilder(val email: String, val subject: String) {
val versionCode = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
appInfo.longVersionCode.toString()
} else {
+ @Suppress("DEPRECATION")
appInfo.versionCode.toString()
}
emailBuilder.append("\nApp: ").append(context.packageName)