-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- A dedicated screen in Settings for error list when updating library - Allow to jump to Error screen if click on notification - Allow to migrate error entry - Create error on each entry updated instead of waiting for the whole updating list to finished - Overwrite entry's error if new error happens after updating - Clear entry's error if it successfully updated - Clear un-relevant errors (entry which was removed from Library) on next update - List of errors can jump to top/bottom or next/previous errors group - Won't create error file anymore * Added library update errors screen (cherry picked from commit 7cf37d52f959ac65f53cf7657563fb4428bd9188) * Open library update errors screen on clicking library update error notification (cherry picked from commit d2d22f437a1d61b086f1e19dfbcd2c0a2bc125f4) * LibraryUpdateErrorScreen's bottom UI with scroll to top/bottom buttons (cherry picked from commit 859ce54474d456232510e21f4f6795af65489be2) * migrate to AppBar * sticky header * scroll to next/previous group of errors * insert error entry one by one * delete error from DB when successfully updated * clean un-relevant errors from DB on every updates * fix errors & clean up * catch exception & fix notification intent --------- Co-authored-by: ImaginaryDesignation <[email protected]>
- Loading branch information
1 parent
454249d
commit bc460dd
Showing
27 changed files
with
579 additions
and
230 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package eu.kanade.domain | ||
|
||
import tachiyomi.data.libraryUpdateError.LibraryUpdateErrorRepositoryImpl | ||
import tachiyomi.data.libraryUpdateError.LibraryUpdateErrorWithRelationsRepositoryImpl | ||
import tachiyomi.data.libraryUpdateErrorMessage.LibraryUpdateErrorMessageRepositoryImpl | ||
import tachiyomi.domain.libraryUpdateError.interactor.DeleteLibraryUpdateErrors | ||
import tachiyomi.domain.libraryUpdateError.interactor.GetLibraryUpdateErrorWithRelations | ||
import tachiyomi.domain.libraryUpdateError.interactor.GetLibraryUpdateErrors | ||
import tachiyomi.domain.libraryUpdateError.interactor.InsertLibraryUpdateErrors | ||
import tachiyomi.domain.libraryUpdateError.repository.LibraryUpdateErrorRepository | ||
import tachiyomi.domain.libraryUpdateError.repository.LibraryUpdateErrorWithRelationsRepository | ||
import tachiyomi.domain.libraryUpdateErrorMessage.interactor.DeleteLibraryUpdateErrorMessages | ||
import tachiyomi.domain.libraryUpdateErrorMessage.interactor.GetLibraryUpdateErrorMessages | ||
import tachiyomi.domain.libraryUpdateErrorMessage.interactor.InsertLibraryUpdateErrorMessages | ||
import tachiyomi.domain.libraryUpdateErrorMessage.repository.LibraryUpdateErrorMessageRepository | ||
import uy.kohesive.injekt.api.InjektModule | ||
import uy.kohesive.injekt.api.InjektRegistrar | ||
import uy.kohesive.injekt.api.addFactory | ||
import uy.kohesive.injekt.api.addSingletonFactory | ||
import uy.kohesive.injekt.api.get | ||
|
||
class KMKDomainModule : InjektModule { | ||
|
||
override fun InjektRegistrar.registerInjectables() { | ||
addSingletonFactory<LibraryUpdateErrorWithRelationsRepository> { | ||
LibraryUpdateErrorWithRelationsRepositoryImpl(get()) | ||
} | ||
addFactory { GetLibraryUpdateErrorWithRelations(get()) } | ||
|
||
addSingletonFactory<LibraryUpdateErrorMessageRepository> { LibraryUpdateErrorMessageRepositoryImpl(get()) } | ||
addFactory { GetLibraryUpdateErrorMessages(get()) } | ||
addFactory { DeleteLibraryUpdateErrorMessages(get()) } | ||
addFactory { InsertLibraryUpdateErrorMessages(get()) } | ||
|
||
addSingletonFactory<LibraryUpdateErrorRepository> { LibraryUpdateErrorRepositoryImpl(get()) } | ||
addFactory { GetLibraryUpdateErrors(get()) } | ||
addFactory { DeleteLibraryUpdateErrors(get()) } | ||
addFactory { InsertLibraryUpdateErrors(get()) } | ||
} | ||
} |
Oops, something went wrong.