arkon
2d7650537d
Address some build warnings
2023-12-25 16:31:40 -05:00
arkon
6887d98f15
Minor tracking cleanups
2023-12-24 22:25:22 -05:00
arkon
5908bd1930
Move backup models to domain module
2023-12-24 18:01:58 -05:00
arkon
1a559124eb
Split up BackupCreator into smaller classes
2023-12-24 16:56:16 -05:00
arkon
9f90ee358b
Initial move of restore backup into a separate screen
2023-12-21 22:47:23 -05:00
arkon
83a67feb48
Foundations for partial restores
...
Related to #3136
2023-12-21 22:16:42 -05:00
arkon
db3ddf07ee
Set foreground service types for remaining jobs
2023-12-16 12:08:08 -05:00
arkon
cd16522805
Split restoring logic into smaller classes
2023-12-16 11:43:18 -05:00
arkon
5fec881387
Clean up history restoring
2023-12-16 11:15:09 -05:00
arkon
ad3d915fc5
Skip updating unchanged chapters and tracks when restoring backup
2023-12-15 23:11:14 -05:00
arkon
58daedc89e
Clean up manga restoring logic
...
Some behavior changes:
- It prioritizes new entries, then anything more recently updated
- It copies the more recently updated entry's metadata (description, thumbnail, etc.)
2023-12-14 23:26:02 -05:00
arkon
0f9895eec8
Clean up category restoring logic
2023-12-11 22:48:42 -05:00
arkon
1ef01b53f2
Avoid starting restore job if already running
...
We already check in the settings screen where it's triggered, but who knows.
Also addressing some errors for method calls that require SDK 26+ (but don't
fail the build, somehow?).
2023-12-11 22:02:22 -05:00
arkon
ab9a26f6bd
Migrate to some newer date/time APIs
2023-12-08 23:11:53 -05:00
arkon
1f259f9298
Fix sharing saved pages from notification
...
Related to #8327
Deleting doesn't seem to do anything still, but at least doesn't throw an exception.
Also removed behavior of dismissing notification after sharing/deleting pages/backups
in case you want to do something again afterwards. Users can manually dismiss the
notification whenever they want.
2023-12-03 16:31:10 -05:00
arkon
6a48fed170
Remove storage permission check when manually creating backups
...
Co-authored-by: jmir1 <jmir1@users.noreply.github.com >
2023-12-03 14:25:09 -05:00
Ivan Iskandar
24e1b4034e
Move workers to foreground service context a bit more safely ( #10202 )
...
The system will crash the app if the worker that calls setForeground() finished
before the service runner be able to call Service.startForeground(). This edge
case is not handled by WorkManager and there is no way to check if the required
calls are done.
So here we suspend the worker by an arbitrary duration assuming the transition
to foreground service is done by then.
2023-12-02 11:46:59 -05:00
arkon
a74a689c90
Update UniFile
...
Which has more correct nullability for some methods and case insensitivity for listFiles where possible.
2023-11-27 22:21:40 -05:00
arkon
27c4db752c
Actually use configured storage location for local source
...
Fixes #10178
2023-11-26 16:24:37 -05:00
arkon
f365b53a0f
Move automatic backups from /backup/automatic to /autobackup
...
Removes the need to try to create child folders, which simplifies things.
2023-11-26 16:04:25 -05:00
arkon
1fbf8ca079
Use unified storage location for automatic backups
2023-11-19 16:08:24 -05:00
arkon
695813ef7d
Add unified storage location setting
...
Currently only using it as a replacement for the downloads location.
2023-11-19 16:04:28 -05:00
arkon
e3b70ca08d
Remove max automatic backups setting
...
We just always create up to 4 now to simplify it, given the addition of syncing
is going to make this section pretty busy.
2023-11-19 15:18:15 -05:00
arkon
0d1bced122
Replace remaining Android-specific strings
...
Also renaming the helper composables so it's a bit easier to find/replace everything
in forks.
2023-11-18 19:41:33 -05:00
arkon
46e734fc8e
Migrate to multiplatform string resources ( #10147 )
...
* Migrate to multiplatform string resources
* Move plurals translations into separate files
* Fix lint check on generated files
2023-11-18 13:54:56 -05:00
arkon
00b2853d3d
Convert create backup dialog to a screen
...
Allows us more flexibility in adding more options/explanations in the future.
2023-11-05 17:22:08 -05:00
AntsyLich
b97aa23548
Implement scanlator filter ( #8803 )
...
* Implement scanlator filter
* Visual improvement to scanlator filter dialog
* Review changes + Bug fixes
Backup not containing filtered chapters and similar issue fix
* Review Changes + Fix SQL query
* Lint mamma mia
2023-11-05 10:34:35 -05:00
arkon
4502902fb0
Clean up reading mode / orientation enum classes
...
Categorizing the reading modes so we can implement a better
selection UI.
2023-11-05 10:01:19 -05:00
arkon
953f5fb025
Lint fixes
2023-11-05 09:14:57 -05:00
arkon
1d144e6767
Restrict line length with ktlint
2023-11-04 23:28:41 -04:00
arkon
aca36f9625
Maybe fix foreign key error during some backup restores
2023-11-01 22:52:00 -04:00
arkon
ce7bf396eb
Don't include "app state" preferences in backups
2023-10-29 12:24:02 -04:00
arkon
1aa5222c99
Record time when last automatic backup was created
...
Closes #3474
2023-10-29 12:03:46 -04:00
arkon
ce5e10be95
Clean up chapter restoring logic a bit
2023-10-29 11:43:06 -04:00
arkon
c4ce3dd46f
Update background job preferences once settings are restored
...
Co-authored-by: Jays2Kings <Jays2Kings@users.noreply.github.com >
2023-10-17 22:32:13 -04:00
arkon
81448f5d01
Minor cleanup
2023-10-12 22:43:03 -04:00
arkon
94cba9324c
Remove beta webtoon viewer split page
...
This had a bunch of issues around split pages not showing up properly so things
end up appearing to be missing while reading.
It'd be more worthwhile redoing the reader viewers than trying to get this to work
properly. It'd be better to just enable the split pages on download instead.
Closes #8433
2023-10-08 16:39:45 -04:00
arkon
6dab94a937
Move backup restoring functions from BackupManager to BackupRestorer
2023-10-08 16:11:45 -04:00
arkon
0f42b9f154
Add source preferences to backups
...
Closes #1857
Co-authored-by: jmir1 <jmir1@users.noreply.github.com >
2023-10-08 16:02:03 -04:00
arkon
730f3a6e52
Exclude tracker credentials in backups
2023-10-08 11:07:42 -04:00
arkon
72024aa44a
Add app settings to backups
...
This should be compatible with Aniyomi's implementation.
Related to #1857
Co-authored-by: jmir1 <jmir1@users.noreply.github.com >
2023-10-08 10:41:20 -04:00
arkon
c8e226acb2
Tracker-related cleanup
2023-09-25 23:32:39 -04:00
arkon
6663abebaf
Clean up fetch interval tests a bit
...
Also limit the dates we look at to most recent 10 distinct dates only. Closes #9930
2023-09-17 12:06:17 -04:00
arkon
cc018cee18
Change backup file names
...
We use the application ID now to ensure uniqueness if the same folder is selected
between different app versions/forks. This will make more sense once storage
settings are unified to a single location.
Also changes the file extension while we're at it so people stop accidentally
ungzipping it.
2023-09-07 22:15:50 -04:00
arkon
3f0db60a99
Minor updates
2023-09-03 10:02:04 -04:00
arkon
98d6ce2eaf
Refactor some tracking-related logic
2023-08-27 10:41:58 -04:00
arkon
dde2f42138
Refactor some tracking-related logic
2023-08-26 18:30:17 -04:00
arkon
74f74eef56
Don't run automatic backup or library update jobs if battery is low
2023-08-24 22:25:29 -04:00
Mekanik
8f395d98e7
Make some error messages localizable ( #9811 )
...
* Make error message of 3 exceptions localizable.
* Revert unnecessary file handle exception change.
2023-08-06 09:50:43 -04:00
arkon
81cd765543
More refactoring of expected next update logic
2023-07-30 19:13:16 -04:00