cleanup leaked downloaded file
This commit is contained in:
@@ -12,8 +12,8 @@ android {
|
|||||||
applicationId = namespace
|
applicationId = namespace
|
||||||
minSdk = libs.versions.proj.min.get().toInt()
|
minSdk = libs.versions.proj.min.get().toInt()
|
||||||
targetSdk = libs.versions.proj.target.get().toInt()
|
targetSdk = libs.versions.proj.target.get().toInt()
|
||||||
versionCode = 37
|
versionCode = 38
|
||||||
versionName = "1.19.1"
|
versionName = "1.20"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+4
-1
@@ -48,7 +48,10 @@ class AndroidOfflineStorage(
|
|||||||
combine(
|
combine(
|
||||||
items.map { item ->
|
items.map { item ->
|
||||||
downloader.query(item.download_id)
|
downloader.query(item.download_id)
|
||||||
.mapNotNull { state -> item.toDomain(state) }
|
.mapNotNull { state ->
|
||||||
|
if (state == null) remove(item.id)
|
||||||
|
item.toDomain(state)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
) { it.toList() }
|
) { it.toList() }
|
||||||
}.flowOn(Dispatchers.IO)
|
}.flowOn(Dispatchers.IO)
|
||||||
|
|||||||
@@ -35,8 +35,8 @@ sqlite-driver = "2.3.2"
|
|||||||
ui-tooling = "1.11.1"
|
ui-tooling = "1.11.1"
|
||||||
essenty = "1.3.0"
|
essenty = "1.3.0"
|
||||||
stately-common = "2.0.6"
|
stately-common = "2.0.6"
|
||||||
proj-target = "36"
|
proj-target = "37"
|
||||||
proj-compile = "36"
|
proj-compile = "37"
|
||||||
proj-min = "29"
|
proj-min = "29"
|
||||||
proj-java = "21"
|
proj-java = "21"
|
||||||
proj-server-java = "21"
|
proj-server-java = "21"
|
||||||
|
|||||||
Reference in New Issue
Block a user