1
0

build: increase min api up to 26

This commit is contained in:
2025-05-23 11:54:42 +03:00
parent 515f950bde
commit 831b6bf491
2 changed files with 8 additions and 10 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ android {
defaultConfig {
applicationId = "ru.risdeveau.geotracker"
minSdk = 24
minSdk = 26
targetSdk = 35
versionCode = 2
versionName = "1.1"
@@ -70,15 +70,13 @@ class LocationForegroundService : Service() {
private fun createNotificationChannel() {
Log.d("Service", "createNotificationChannel")
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
val channel = NotificationChannel(
"location_channel",
"Отправка Местоположения",
NotificationManager.IMPORTANCE_HIGH
)
val manager = getSystemService(NOTIFICATION_SERVICE) as NotificationManager
manager.createNotificationChannel(channel)
}
val channel = NotificationChannel(
"location_channel",
"Отправка Местоположения",
NotificationManager.IMPORTANCE_HIGH
)
val manager = getSystemService(NOTIFICATION_SERVICE) as NotificationManager
manager.createNotificationChannel(channel)
}
private fun createNotification(): Notification {