-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UI Optimisation in appllication catalog (#726)
**Background** Now we have some unstable compose function **Changes** * Run compose metrics * Fix Stable and Immutable value **Test plan** Try use catalog
- Loading branch information
1 parent
bd6d968
commit 1a9c2bb
Showing
19 changed files
with
79 additions
and
37 deletions.
There are no files selected for viewing
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
2 changes: 2 additions & 0 deletions
2
...mbar/api/src/main/java/com/flipperdevices/bottombar/api/BottomNavigationHandleDeeplink.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
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
2 changes: 2 additions & 0 deletions
2
...ub/catalogtab/api/src/main/java/com/flipperdevices/faphub/catalogtab/api/CatalogTabApi.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
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
26 changes: 26 additions & 0 deletions
26
...ub/errors/api/src/main/java/com/flipperdevices/faphub/errors/api/throwable/FapHubError.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,26 @@ | ||
package com.flipperdevices.faphub.errors.api.throwable | ||
|
||
import io.ktor.client.plugins.ClientRequestException | ||
import io.ktor.client.plugins.ServerResponseException | ||
import io.ktor.serialization.JsonConvertException | ||
import java.net.UnknownHostException | ||
|
||
enum class FapHubError { | ||
NO_NETWORK, | ||
WRONG_REQUEST, | ||
FLIPPER_NOT_CONNECTED, | ||
NO_SERVER, | ||
GENERAL, | ||
FIRMWARE_NOT_SUPPORTED | ||
} | ||
|
||
fun Throwable.toFapHubError(): FapHubError { | ||
return when (this) { | ||
is UnknownHostException -> FapHubError.NO_NETWORK | ||
is FirmwareNotSupported -> FapHubError.FIRMWARE_NOT_SUPPORTED | ||
is JsonConvertException, is ClientRequestException -> FapHubError.WRONG_REQUEST | ||
is FlipperNotConnected -> FapHubError.FLIPPER_NOT_CONNECTED | ||
is ServerResponseException -> FapHubError.NO_SERVER | ||
else -> FapHubError.GENERAL | ||
} | ||
} |
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
2 changes: 2 additions & 0 deletions
2
...i/src/main/java/com/flipperdevices/faphub/installation/button/api/FapInstallationUIApi.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
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
2 changes: 2 additions & 0 deletions
2
...talledtab/api/src/main/java/com/flipperdevices/faphub/installedtab/api/FapInstalledApi.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
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
2 changes: 2 additions & 0 deletions
2
...s/faphub/maincard/api/src/main/java/com/flipperdevices/faphub/maincard/api/MainCardApi.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
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
2 changes: 2 additions & 0 deletions
2
...tton/api/src/main/kotlin/com/flipperdevices/faphub/uninstallbutton/api/FapUninstallApi.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