This repository has been archived by the owner on Sep 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Removing exoplayer from feeds and new post screen. It's kinda buggy and can cause performance issues. - Adding play button to videos in feeds - Setting up custom exceptions for network call exceptions --------- Co-authored-by: John Oberhauser <j.git-global@obez.io>
- Loading branch information
1 parent
4e18b23
commit 4dd8cfe
Showing
12 changed files
with
93 additions
and
55 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
core/common/src/main/kotlin/social/firefly/common/LoadState.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
package social.firefly.common | ||
|
||
sealed class LoadState { | ||
object LOADING : social.firefly.common.LoadState() | ||
data object LOADING : LoadState() | ||
|
||
object LOADED : social.firefly.common.LoadState() | ||
data object LOADED : LoadState() | ||
|
||
object ERROR : social.firefly.common.LoadState() | ||
data object ERROR : LoadState() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="32dp" | ||
android:height="32dp" | ||
android:viewportWidth="256" | ||
android:viewportHeight="256"> | ||
<path | ||
android:pathData="M128,24A104,104 0,1 0,232 128,104.11 104.11,0 0,0 128,24ZM128,216a88,88 0,1 1,88 -88A88.1,88.1 0,0 1,128 216ZM176.24,121.22 L112.24,81.22A8,8 0,0 0,100 88v80a8,8 0,0 0,12.24 6.78l64,-40a8,8 0,0 0,0 -13.56ZM116,153.57L116,102.43L156.91,128Z" | ||
android:fillColor="#000000"/> | ||
</vector> |
7 changes: 7 additions & 0 deletions
7
core/model/src/main/kotlin/social/firefly/core/model/exceptions/HttpException.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package social.firefly.core.model.exceptions | ||
|
||
class HttpException( | ||
val code: Int, | ||
val errorMessage: String, | ||
override val cause: Throwable, | ||
) : IllegalStateException() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
...mastodon/src/main/kotlin/social/firefly/core/network/mastodon/exceptions/HttpException.kt
This file was deleted.
Oops, something went wrong.
15 changes: 5 additions & 10 deletions
15
...n/src/main/kotlin/social/firefly/core/network/mastodon/model/responseBody/NetworkError.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,10 @@ | ||
package social.firefly.core.network.mastodon.model.responseBody | ||
|
||
/** | ||
* Represents an API error. | ||
*/ | ||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class NetworkError( | ||
/** | ||
* The error message. | ||
*/ | ||
@SerialName("error") | ||
val error: String, | ||
/** | ||
* A longer description of the error. | ||
*/ | ||
val errorDescription: String? = null, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters