Yuito-app-android/app/src/main/java/com/keylesspalace/tusky/network
Nik Clayton 561eda8482
Remove rxjava from deletestatus API (#3041)
* Remove rxjava from API calls used by AccountListFragment

* Remove rxjava from API calls used by AccountViewModel::changeRelationship()

The affected API functions are also called from

- ReportViewModel.kt
- SearchViewModel.kt
- AccountListFragment.kt
- SFragment.java
- TimelineCases.kt

so they have also been updated.

This change requires bridging from Java code to Kotlin `suspend` functions,
by creating wrappers for the `mute` and `block` functions that can be
called from Java and create a coroutine scope.

I've deliberately made this fairly ugly so that it sticks out and can be
removed later.

* Use "Throwable" type and name

* Delete 46.json

Not sure where this came from.

* Remove rxjava from the deleteStatus call path

* Emit log messages with the correct tag

* Add another log tag, and lint

* Use TAG in log messages now it's present

* Lint

* Move viewModelScope.launch in to changeRelationshop()

* Use onSuccess/onFailure pair instead of fold

* Return Deferred when deleting statuses
2023-01-10 21:20:00 +01:00
..
FilterModel.kt Parse html tags out of status content before applying filters. (#2713) 2022-10-14 20:03:19 +02:00
InstanceSwitchAuthInterceptor.kt add test for InstanceSwitchAuthInterceptor and convert it to Kotlin (#2596) 2022-06-30 21:25:44 +02:00
MastodonApi.kt Remove rxjava from deletestatus API (#3041) 2023-01-10 21:20:00 +01:00
MediaUploadApi.kt Handoff media upload (#2947) 2022-12-29 19:58:23 +01:00
ProgressRequestBody.java Upgrade to AndroidX, move to MaterialComponents theme (#953) 2018-12-17 15:25:35 +01:00