Skip to content

Commit e72678e

Browse files
committed
- Refactor: Enable concurrent model downloads
This change refactors the model download service to support downloading multiple models simultaneously. Key changes: - Replaced the single `downloadState` with a `downloadStates` map, allowing individual tracking of each download's progress, keyed by model ID. - Each download now runs in its own coroutine job and displays a separate notification, preventing conflicts. - Cancellation is now specific to a model ID, allowing users to cancel individual downloads without affecting others. - Implemented robust cleanup logic to delete temporary files and remove download state upon completion, cancellation, or error. - Added a new `EmbeddingModelDownloadWorker` to handle the download of the embedding model in the background, separate from the main model download service.
1 parent fa84fdf commit e72678e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ android {
2222
applicationId = "com.dark.tool_neuron"
2323
minSdk = 31
2424
targetSdk = 36
25-
versionCode = 17
25+
versionCode = 18
2626
versionName = "1.1.2-Fix"
2727
ndk {
2828
abiFilters += listOf("arm64-v8a", "x86_64")

0 commit comments

Comments
 (0)