Commit graph

79 commits

Author SHA1 Message Date
Ivan Iskandar
2e127dff1f
Replace Timber with Square Logcat and make logging configurable (#6062)
* Replace Timber with Square Logcat

* Configurable logger
2021-10-07 22:12:55 -04:00
arkon
f754b081ce Use data class to parse extensions list 2021-09-25 14:57:54 -04:00
Ivan Iskandar
b284384f0a
Implement new extension install methods (#5904)
* Implement new extension install methods

* Fixes

* Resolve feedback

* Keep pending status when waiting to install

* Cancellable installation

* Remove auto error now that we have cancellable job
2021-09-25 14:31:52 -04:00
arkon
a2cf210a52 Unify NSFW flagging for sources/extensions
Since multisource extensions are no longer a thing, we now simply rely on the flag at the extension level, i.e. the per-Source/SourceFactory `@Nsfw` annotation is no longer checked.
We'll have to remove all of the annotation usages from the existing sources, which will also effectively break the setting for older versions of the app.
2021-09-13 17:49:58 -04:00
arkon
ec4e631760 Clean up some companion object usages 2021-09-05 14:34:29 -04:00
Taco
12a9d0575d
Use more Compat utilities (#5786)
* Use ActivityCompat.recreate

* Use more KTX extensions

* Use PackageInfoCompat.getLongVersionCode

* Remove unnecessary compat usages
2021-08-27 16:33:12 -04:00
arkon
8aa11951bf Do background app/extension checks less frequently
Since the in-app checks occur at least once a day anyway.
2021-08-13 18:24:21 -04:00
arkon
4acc7cee3d Revert jsDelivr CDN fallback
It doesn't work unless you provide actual semver versions, but we don't do that.
2021-07-20 17:23:55 -04:00
arkon
24bb2f02dc Use jsDelivr as fallback when GitHub can't be reached for extensions list (closes #5517) 2021-07-10 11:35:43 -04:00
arkon
07de367476 Revert "Set background job expedited policies"
This reverts commit c69420373a.

Caused crashes in TachiyomiSY for some reason. Will have to redo this once we target Android 12.
2021-06-09 17:11:23 -04:00
arkon
c69420373a Set background job expedited policies 2021-06-02 22:58:03 -04:00
arkon
b092e98ac9 Include extension loading errors in error logs 2021-04-19 10:18:32 -04:00
arkon
1b921f9845 Make extension load error logs less verbose 2021-04-03 10:27:40 -04:00
arkon
a398c3fb81 Handle link for multisource extension commits (closes #4432) 2021-02-11 17:35:15 -05:00
arkon
2ffbee3db2 Avoid using global scope where appropriate
Also fixes the crash in tracking when an exception is thrown during a refresh.
2021-01-08 18:05:51 -05:00
arkon
c620c924f9 Revert "Use flows instead of relays for extensions loading"
This reverts commit 07e76f35fa.
2021-01-07 19:06:34 -05:00
arkon
95ce0e39ef Fix malformed extension URLs 2021-01-04 12:14:02 -05:00
arkon
07e76f35fa Use flows instead of relays for extensions loading 2021-01-04 11:09:31 -05:00
arkon
8f98055e9e Refactor response parsing helper function 2020-12-27 10:22:24 -05:00
arkon
61a594493c Remove usage of Retrofit for update check and extensions list 2020-12-26 16:59:24 -05:00
arkon
28a23452f2 Update extensions repo URL 2020-12-15 15:48:06 -05:00
arkon
5b09461ccf Break out NSFW hiding/labeling into separate settings 2020-12-12 17:20:54 -05:00
arkon
1a439ecece Remove source overwrite logic since built-in sources no longer exist 2020-12-12 16:15:18 -05:00
arkon
59859e124f Update to Kotlin 1.4.21 and kotlinter 3.3.0 2020-12-08 22:31:48 -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
b39191ff50 Fix annotations package name 2020-11-29 17:08:20 -05:00
arkon
6664dfb048 Use regular minified extensions JSON instead of explicitly handling gzip encoding
Turns out GitHub *does* do gzip encoding by default, it just doesn't show up in the header logs for some reason...
2020-11-29 16:01:16 -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
7a476abb53 Migrate to kotlinx.serialization for extensions and update fetching 2020-10-11 14:53:02 -04:00
arkon
76f6fe4601 Use Kolinter Gradle plugin for linting instead of ktlint directly 2020-09-13 18:48:20 -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
8db34eb3dd Allow annotating SourceFactory with @Nsfw to block all sources within it 2020-08-10 11:54:31 -04:00
arkon
b6a1e89535 Minor cleanup 2020-08-09 12:05:04 -04:00
arkon
421dfb4a2d Allow partially loading extensions with individually marked NSFW sources 2020-08-08 19:06:52 -04:00
arkon
abaca6e676 Option to hide NSFW extensions (closes #1312) 2020-08-08 16:27:55 -04:00
arkon
4f02872a84 Minor cleanup 2020-08-03 23:03:31 -04:00
arkon
912687ac78 Adjust download badge color again 2020-08-02 23:03:24 -04:00
arkon
40a9595012 Request gzipped version of extensions repo 2020-08-02 22:55:42 -04:00
arkon
ec56c27071 More core-ktx usages 2020-07-31 10:29:32 -04:00
arkon
2dc47352f8 Add operator functions for handling set preferences 2020-07-25 18:07:10 -04:00
arkon
d875d5ef74 Better distinguish between obsolete and unofficial extensions 2020-05-13 22:47:44 -04:00
arkon
3f63b320c4 Linting fixes 2020-04-25 14:24:45 -04:00
arkon
fbf13efe74 Bump minimum extension lib and WebView versions 2020-04-18 14:51:20 -04:00
TacoTheDank
415df2357c
JDK8, lint fixing (#2888)
* Use Kotlin JDK8

* Satisfy a ton of lints

* Run res/layout files (and manifest) through reformatter
2020-04-18 14:47:22 -04:00
arkon
401210da44 More FlowPreferences migrations 2020-04-17 18:30:05 -04:00
MCAxiaz
a1df78517f
use explicit file url instead of download manager's content url (#2859) 2020-04-10 18:11:24 -04:00
arkon
022c0746c0 Show error toast when extensions list fails to load 2020-04-03 22:54:52 -04:00
arkon
06c3f57f62 Cache source package icons 2020-04-03 21:39:55 -04:00
Jay
f115fe47fe Using extension icon instead of letter for catalogues (closes #2261) 2020-04-01 23:03:20 -04:00