Commit graph

94 commits

Author SHA1 Message Date
arkon
0cd551d4fd Revert removal of tracker start/end date 2021-01-16 15:48:20 -05:00
arkon
c9cf9cfff0 More coroutine tweaks 2021-01-10 11:01:10 -05:00
arkon
990fb22d3e Remove usage of RxJava from backup/restore 2021-01-04 15:30:05 -05:00
arkon
2d0a5eb02c Convert more TrackService methods to coroutines 2021-01-03 23:33:21 -05:00
arkon
54dc01253d Replace usages of fetchChapterList with 1.x getChapterList API 2021-01-01 19:19:11 -05:00
arkon
4db9a90da2 Replace usages of fetchMangaDetails with 1.x getMangaDetails API 2021-01-01 19:08:12 -05:00
arkon
3bb2102eb4 Include source name in backup restore error logs (closes #4230) 2021-01-01 16:43:32 -05:00
arkon
6e7fefb8b2 Strip out no longer used tracker start/end date code
Unfortunately MAL was the only one that supported it in the app, but the official API doesn't support it, so now no trackers have it.
2020-12-18 23:31:28 -05:00
arkon
e8627800fe Remove bundled fallback file picker 2020-12-13 12:42:10 -05:00
Taco
c2b8fea291
Update libraries, some lints (#4099)
* Update some plugins

* Fix some miscellaneous lints
2020-12-08 22:21:08 -05:00
arkon
c8316c7254 Move NSFW source setting into Browse settings 2020-11-28 12:43:17 -05:00
arkon
6b9180844d Fall back to filename in backup creation notification if path not available 2020-11-27 21:38:26 -05:00
arkon
368c30a2cc More restore code cleanup, remove some SY-specific logic 2020-11-22 12:43:23 -05:00
arkon
781971ee81 Set preview/experimental compiler flags instead of using annotations 2020-11-22 11:43:16 -05:00
arkon
cf6c48744a Some more code cleanup 2020-11-21 15:30:04 -05:00
arkon
858664bfd7 Some more code cleanup 2020-11-21 15:09:56 -05:00
arkon
eceac4d6e3 Merge restore entry points, avoid unnecessary new strings 2020-11-21 12:35:04 -05:00
arkon
47a172df1f Remove "full_" from v3 backup default file names 2020-11-21 12:22:46 -05:00
arkon
f2c0732c40 Minor cleanup 2020-11-21 12:22:25 -05:00
jobobby04
682fae12b6
Make a protobuf based backup system (#3936)
* Make a protobuf based backup system

* Cleanup

* More cleanup

* Fix restores always loading the full backup restore, even when legacy restore was used

* Make offline the default

(cherry picked from commit f6fd8a8ddb90869f3e28fd8fcd81a2125f8e0527)

* Find chapter based on the url

(cherry picked from commit 326dc2700944a60da381d82cd9782c5f0d335902)

* Dont break after finding one chapter

(cherry picked from commit f91d1af37398619cf371e4920b60f6d309799c74)

* Also apply changes to online restore

(cherry picked from commit e7c16cd0d14ea5d50ce4a9a3dfa8ca768be702f2)

* Rewrite backup categories

(cherry picked from commit f4200e2146a9c540675767206ed4664894aa1216)

* Dedupe some code, move over read and bookmarks properly

(cherry picked from commit d9ce86aca66945c831670a1523d8bc69966312df)

* Move some functions to the abstract backup manager

(cherry picked from commit b0c658741a2f506bc31823f1f0347772bc119d2e)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/data/backup/full/FullBackupManager.kt
#	app/src/main/java/eu/kanade/tachiyomi/data/backup/legacy/LegacyBackupManager.kt

* Fix some backup duplication issues

(cherry picked from commit a4a1c2827c4537d2d07a0cb589dc1c3be1d65185)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/data/backup/legacy/LegacyBackupManager.kt

* Fix a missed bundleOf

* So glad this wasnt merged before now, everything should be working with this commit
2020-11-20 22:34:24 -05:00
Taco
60755d0c26
Use some more KTX and Compat stuff (#3933)
* Use more KTX extensions

* Update Android Studio

* Use more Compat classes
2020-10-12 16:46:25 -04:00
arkon
88aea311f8 Remove support for backup v1 2020-09-20 10:35:05 -04:00
arkon
76f6fe4601 Use Kolinter Gradle plugin for linting instead of ktlint directly 2020-09-13 18:48:20 -04:00
arkon
66baf01e43 Localize "No chapters found" error 2020-09-04 15:21:09 -04:00
arkon
64bdfabbd8
Revert ktlint update, unrevert Gradle and PR build workflow reverts (#3681) 2020-08-15 16:44:46 -04:00
arkon
4a136ef2aa Automatic linting fixes 2020-08-13 09:02:15 -04:00
arkon
b1fb401f63 Warn before restoring backup if trackers aren't logged in 2020-08-05 22:46:37 -04:00
arkon
ec56c27071 More core-ktx usages 2020-07-31 10:29:32 -04:00
arkon
6713a7ae3c Include source ID if name not found in restore error log (closes #3018) 2020-07-16 22:36:01 -04:00
arkon
4bc2288806 Allow category names with different casing (fixes #3465) 2020-07-14 09:04:15 -04:00
arkon
bf5065d16b Minor cleanup, remove some usages of ArrayList 2020-05-30 23:42:11 -04:00
arkon
9a082d4df1 Fix being unable to restore backups if there's no categories 2020-05-25 16:41:53 -04:00
arkon
5f9df78ab0 Localize tracker not logged in error 2020-05-16 11:33:41 -04:00
arkon
a00d11701f Warn about missing sources before restoring backup 2020-05-16 11:29:55 -04:00
arkon
e4ea5d0344 Don't throw exception to stop restore job 2020-05-12 09:11:52 -04:00
arkon
530daeaa3a Move notification logic out of LibraryUpdateService 2020-05-10 18:14:43 -04:00
arkon
63f3180dff Move DB transaction blocks to only the DB portions of restore logic 2020-05-09 09:57:03 -04:00
arkon
521ebf0678 Remove redundant DB call in library settings (closes #3128) 2020-05-08 22:32:12 -04:00
arkon
40776bdc8d Concurrently refresh trackers 2020-05-08 19:04:45 -04:00
arkon
fb97ac47bc Replace restore completion string with plurals 2020-05-08 18:07:21 -04:00
arkon
b4c7992726 Minor cleanup of wakelocks, extension ID backup 2020-05-07 09:14:52 -04:00
arkon
bd45cc2024 Only alert once for backup/restore progress notifications 2020-05-03 20:08:29 -04:00
arkon
0a6de2b3ea Fix backup failing when source isn't installed 2020-05-02 10:24:37 -04:00
arkon
abf2d4b718 Start storing extension ID/source name mapping in backup files 2020-05-01 21:25:23 -04:00
arkon
2661700d9a Split out backup/restore notifications into separate channels for progress/completion 2020-04-29 22:30:33 -04:00
arkon
f97f4c68ba Hide titles in restore notification based on preference 2020-04-27 18:21:12 -04:00
arkon
6ef59a5949 Remove redundant DB transaction function 2020-04-26 16:45:23 -04:00
arkon
d19d787f6e Refactor backup service 2020-04-26 16:07:07 -04:00
arkon
9d22a9e664 Move some restore notification logic into service 2020-04-25 18:59:12 -04:00
arkon
96c55db7ca Consider individual manga as transactions rather than entire restore job (closes #2482) 2020-04-25 18:50:44 -04:00