Raised minSdk to 24,Drop legacy Android support

Raised minSdk to 24 and removed conditional code for pre-Nougat Android versions. Cleaned up context wrapping, notification, and service start logic to use modern APIs. Also removed unnecessary @RequiresApi annotations and legacy feature declarations from the manifest.
This commit is contained in:
2dust
2025-12-29 14:45:36 +08:00
parent 214ab76459
commit fd83f88ec2
15 changed files with 34 additions and 79 deletions
@@ -116,13 +116,6 @@ fun Long.toTrafficString(): String {
return String.format("%.1f %s", size, units[unitIndex])
}
val URLConnection.responseLength: Long
get() = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
contentLengthLong
} else {
contentLength.toLong()
}
val URI.idnHost: String
get() = host?.replace("[", "")?.replace("]", "").orEmpty()