-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Settings モジュールを Compose Multiplatform 化
- Loading branch information
1 parent
2e9b2a4
commit 525fb38
Showing
18 changed files
with
90 additions
and
85 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
7 changes: 0 additions & 7 deletions
7
feature/settings/src/androidMain/kotlin/club/nito/feature/settings/Platform.android.kt
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
feature/settings/src/androidMain/kotlin/club/nito/feature/settings/SettingsEvent.kt
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
feature/settings/src/androidMain/kotlin/club/nito/feature/settings/SettingsIntent.kt
This file was deleted.
Oops, something went wrong.
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
9 changes: 0 additions & 9 deletions
9
feature/settings/src/commonMain/kotlin/club/nito/feature/settings/Greeting.kt
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
feature/settings/src/commonMain/kotlin/club/nito/feature/settings/Platform.kt
This file was deleted.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
feature/settings/src/commonMain/kotlin/club/nito/feature/settings/SettingsNavigation.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,21 @@ | ||
package club.nito.feature.settings | ||
|
||
import moe.tlaster.precompose.navigation.NavOptions | ||
import moe.tlaster.precompose.navigation.Navigator | ||
import moe.tlaster.precompose.navigation.RouteBuilder | ||
|
||
const val settingsNavigationRoute = "settings_route" | ||
|
||
fun Navigator.navigateToSettings(navOptions: NavOptions? = null) { | ||
this.navigate(settingsNavigationRoute, navOptions) | ||
} | ||
|
||
fun RouteBuilder.settingsScreen( | ||
onSignedOut: () -> Unit = {}, | ||
) { | ||
scene( | ||
route = settingsNavigationRoute, | ||
) { | ||
SettingsRoute(onSignedOut = onSignedOut) | ||
} | ||
} |
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
5 changes: 5 additions & 0 deletions
5
feature/settings/src/commonMain/kotlin/club/nito/feature/settings/SettingsScreenEvent.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,5 @@ | ||
package club.nito.feature.settings | ||
|
||
sealed class SettingsScreenEvent { | ||
data object SignedOut : SettingsScreenEvent() | ||
} |
9 changes: 9 additions & 0 deletions
9
feature/settings/src/commonMain/kotlin/club/nito/feature/settings/SettingsScreenIntent.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,9 @@ | ||
package club.nito.feature.settings | ||
|
||
sealed class SettingsScreenIntent { | ||
data object ClickShowModifyPasswordDialog : SettingsScreenIntent() | ||
data class ChangeNewPasswordValue(val newValue: String) : SettingsScreenIntent() | ||
data object ClickModifyPassword : SettingsScreenIntent() | ||
data object ClickDismissModifyPasswordDialog : SettingsScreenIntent() | ||
data object ClickSignOut : SettingsScreenIntent() | ||
} |
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
File renamed without changes.
File renamed without changes.
16 changes: 16 additions & 0 deletions
16
...ure/settings/src/commonMain/kotlin/club/nito/feature/settings/di/SettingsFeatureModule.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,16 @@ | ||
package club.nito.feature.settings.di | ||
|
||
import club.nito.feature.settings.SettingsScreenStateMachine | ||
import org.koin.core.module.Module | ||
import org.koin.dsl.module | ||
|
||
val settingsFeatureModule: Module = module { | ||
factory { | ||
SettingsScreenStateMachine( | ||
observeAuthStatus = get(), | ||
modifyPassword = get(), | ||
signOut = get(), | ||
userMessageStateHolder = get(), | ||
) | ||
} | ||
} |
Empty file.
9 changes: 0 additions & 9 deletions
9
feature/settings/src/iosMain/kotlin/club/nito/feature/settings/Platform.ios.kt
This file was deleted.
Oops, something went wrong.