-
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.
Merge pull request #43 from 2rabs/rt/schedule-feature-compose
✨ Schedule モジュールを Compose Multiplatform 化
- Loading branch information
Showing
17 changed files
with
48 additions
and
108 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
package club.nito.app.di | ||
|
||
import club.nito.feature.schedule.di.scheduleFeatureModule | ||
import club.nito.feature.top.di.topFeatureModule | ||
import org.koin.core.module.Module | ||
|
||
val featureModules: List<Module> = listOf( | ||
topFeatureModule, | ||
scheduleFeatureModule, | ||
) |
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/schedule/src/androidMain/kotlin/club/nito/feature/schedule/Platform.android.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/schedule/src/commonMain/kotlin/club/nito/feature/schedule/Greeting.kt
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
feature/schedule/src/commonMain/kotlin/club/nito/feature/schedule/Platform.kt
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 4 additions & 7 deletions
11
...feature/schedule/ScheduleListViewModel.kt → ...feature/schedule/ScheduleListViewModel.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
19 changes: 19 additions & 0 deletions
19
feature/schedule/src/commonMain/kotlin/club/nito/feature/schedule/ScheduleNavigation.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,19 @@ | ||
package club.nito.feature.schedule | ||
|
||
import moe.tlaster.precompose.navigation.NavOptions | ||
import moe.tlaster.precompose.navigation.Navigator | ||
import moe.tlaster.precompose.navigation.RouteBuilder | ||
|
||
const val scheduleNavigationRoute = "schedule_route" | ||
|
||
fun Navigator.navigateToSchedule(navOptions: NavOptions? = null) { | ||
this.navigate(scheduleNavigationRoute, navOptions) | ||
} | ||
|
||
fun RouteBuilder.scheduleScreen() { | ||
scene( | ||
route = scheduleNavigationRoute, | ||
) { | ||
ScheduleRoute() | ||
} | ||
} |
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
15 changes: 15 additions & 0 deletions
15
...ure/schedule/src/commonMain/kotlin/club/nito/feature/schedule/di/ScheduleFeatureModule.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,15 @@ | ||
package club.nito.feature.schedule.di | ||
|
||
import club.nito.feature.schedule.ScheduleListViewModel | ||
import org.koin.core.module.Module | ||
import org.koin.dsl.module | ||
|
||
val scheduleFeatureModule: Module = module { | ||
factory { | ||
ScheduleListViewModel( | ||
getParticipantScheduleListUseCase = get(), | ||
userMessageStateHolder = get(), | ||
dateTimeFormatter = get(), | ||
) | ||
} | ||
} |
Empty file.
9 changes: 0 additions & 9 deletions
9
feature/schedule/src/iosMain/kotlin/club/nito/feature/schedule/Platform.ios.kt
This file was deleted.
Oops, something went wrong.