-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Major refactoring of architecture #4
- Loading branch information
1 parent
ec602e9
commit ba7566a
Showing
32 changed files
with
374 additions
and
263 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
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
25 changes: 19 additions & 6 deletions
25
.../src/main/java/jp/co/soramitsu/oauth/common/navigation/flow/login/api/LoginDestination.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,14 +1,27 @@ | ||
package jp.co.soramitsu.oauth.common.navigation.flow.login.api | ||
|
||
sealed interface LoginDestination { | ||
import jp.co.soramitsu.oauth.core.engines.router.api.SoraCardDestinations | ||
|
||
object TermsAndConditions: LoginDestination | ||
sealed interface LoginDestination: SoraCardDestinations { | ||
|
||
object EnterPhone: LoginDestination | ||
object TermsAndConditions: LoginDestination { | ||
override val route: String = "TERMS_AND_CONDITIONS" | ||
} | ||
|
||
@JvmInline | ||
value class EnterOtp( | ||
object EnterPhone: LoginDestination { | ||
override val route: String = "ENTER_PHONE" | ||
} | ||
|
||
class EnterOtp( | ||
val otpLength: Int | ||
): LoginDestination | ||
): LoginDestination { | ||
override val route: String = "ENTER_OTP" | ||
|
||
companion object: SoraCardDestinations { | ||
override val route: String = "ENTER_OTP" | ||
|
||
const val OTP_LENGTH_KEY = "OTP_LENGTH" | ||
} | ||
} | ||
|
||
} |
4 changes: 4 additions & 0 deletions
4
oauth/src/main/java/jp/co/soramitsu/oauth/common/navigation/flow/login/api/LoginFlow.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
Oops, something went wrong.