* Implement Anilist API v2 (closes#1159)
Switches to using the Anilist v2 API.
Login is now done by implicit grant and tokens are good for one year.
Users will need to login again after token expiration.
"clientId" on line 289 of AnilistApi.kt should be changed to Tachiyomi's
own client ID number.
* Code style formatting
Revert to kotlin 1.2.30
Use correct client ID
Rename AnilistApi.login to AnilistApi.createOAuth to reflect changed implementation
Rename json mimetype variable from json to jsonMime for clarity
Don't read response if it's ignored
Remove unused parameters from api requests
* Close netResponse after read
* Refactor remote_id into media_id and library_id
* DB: Refactor RemoteId
Refactor RemoteId into library_id and media_id
Implement function to fetch library_id if user is migrating rom APIv1
* Remove logging interceptor
* Compatability and sql simplification
* Fix score and minor improvements
* Revert changes to Kitsu API
* Added Github link to about.
* Added github link to About page (Fixed)
Fixed based on jogerj's comment in #1389
* Changed Github link to correct URL.
* Balanced brackets
* [SettingsBackupController] Handle ActivityNotFoundException
When using `Intent.ACTION_CREATE_DOCUMENT` on SDK >= Lollipop there is no
guarantee that the ROM supports the built in file picker such as MIUI
* [SettingsBackupController] Add import for ActivityNotFoundException
* Add additional handlers to Android document intents
* Requested review changes
Move `try {`s to top of block
Replace version numbers with `Build.VERSION_CODES.LOLLIPOP`
Break out custom file picker intent to Context extention `Context.getFilePicker`
Rename `val i` to `val intent` to be more clear with variable names
* Add version check to custom file picker after exception
* Global Search
* Cards are now independent of design by use of recycler.
* Added local
* Some attribute fixes + moved onclick to controller.
* Lots of improvements to code
* Reversed some stuff. Thanks API 16
* Code fixes
* Performance improvements
* Moved adapter creation to constructor
* Small changes
* Removed sources settings from settings menu. Added OnChangeListener in catalogue. Made setting icon visible if room.
* bug fix
* Code review part uno
* Code review part uno-2
* Single recycler approach
* Add last source used
* Fix scroll state and some layout issues
* Fix wrong item binding
* Use data class for items
* Calculate item position and count while binding
* Fix background color with slices
* Reuse slices. Fix card background. Flatten constraint layout
* Fix global_search scroll issue
* Store last state with global search
* Minor changes
* Remove catalogue toolbar spinner. Persist catalogue across process restarts
* Save view state of recycler views. Set toolbar title with current query
* Rewrote Backup
* Save automatic backups with datetime
* Minor improvements
* Remove suggested directories for backup and hardcoded strings. Rename JSON -> Backup
* Bugfix
* Fix tests
* Run restore inside a transaction, use external cache dir for log and other minor changes