Skip to content

Commit 69b755d

Browse files
authored
Merge pull request #1254 from DimensionDev/bugfix/login_route
fix login route not trigger
2 parents 6038145 + 9a98f09 commit 69b755d

File tree

6 files changed

+9
-2
lines changed

6 files changed

+9
-2
lines changed

.github/workflows/android.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ on:
2020
jobs:
2121
build:
2222
runs-on: [ubuntu-latest]
23-
timeout-minutes: 30
23+
timeout-minutes: 60
2424

2525
steps:
2626
- uses: yumis-coconudge/clean-workspace-action@v1

app/src/main/java/dev/dimension/flare/ui/route/Route.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ internal sealed interface Route : NavKey {
408408
public fun parse(url: String): Route? {
409409
val deeplinkRoute = DeeplinkRoute.parse(url) ?: return null
410410
return when (deeplinkRoute) {
411+
is DeeplinkRoute.Login -> Route.ServiceSelect.Selection
411412
is DeeplinkRoute.Callback -> null
412413
is DeeplinkRoute.Compose.New ->
413414
Route.Compose.New(accountType = deeplinkRoute.accountType)

compose-ui/src/commonMain/kotlin/dev/dimension/flare/ui/route/DeeplinkRoute.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ import io.ktor.http.Url
66
import kotlinx.serialization.Serializable
77

88
public sealed class DeeplinkRoute {
9+
@Serializable
10+
public data object Login : DeeplinkRoute()
11+
912
@Serializable
1013
public sealed class Callback : DeeplinkRoute() {
1114
@Serializable

desktopApp/src/main/kotlin/dev/dimension/flare/ui/route/Route.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ internal sealed interface Route {
243243
public fun parse(url: String): Route? {
244244
val deeplinkRoute = DeeplinkRoute.parse(url) ?: return null
245245
return when (deeplinkRoute) {
246+
is DeeplinkRoute.Login -> ServiceSelect
246247
is DeeplinkRoute.Callback -> null
247248
is DeeplinkRoute.Compose.New -> Compose.New(deeplinkRoute.accountType)
248249
is DeeplinkRoute.Compose.Quote ->

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
org.gradle.jvmargs=-Xmx16g -Dfile.encoding=UTF-8
1+
org.gradle.jvmargs=-Xmx8g -Dfile.encoding=UTF-8
22
android.useAndroidX=true
33
kotlin.code.style=official
44
android.nonTransitiveRClass=true

iosApp/flare/UI/Route/Route.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ enum Route: Hashable {
142142
return Route.search(search.accountType, search.query)
143143
case .status(let status):
144144
return fromStatus(status)
145+
case .login:
146+
return Route.serviceSelect
145147
}
146148
} else {
147149
return nil

0 commit comments

Comments
 (0)