-
-
Notifications
You must be signed in to change notification settings - Fork 37
Updated store factories in samples #129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Warning Rate Limit Exceeded@arkivanov has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 6 minutes and 23 seconds before requesting another review. How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. WalkthroughThe update streamlines the creation and management of stores in both the coroutines and reaktive modules of a Kotlin project. It refactors store factories into extension functions, updates intents to data classes for enhanced functionality, and optimizes the instantiation of stores. These changes aim to improve code readability, maintainability, and the overall structure of the project. Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
0928491
to
90c06e8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (27)
- sample/coroutines/shared/build.gradle.kts (1 hunks)
- sample/coroutines/shared/src/commonMain/kotlin/com/arkivanov/mvikotlin/sample/coroutines/shared/details/DetailsController.kt (2 hunks)
- sample/coroutines/shared/src/commonMain/kotlin/com/arkivanov/mvikotlin/sample/coroutines/shared/details/store/DetailsStore.kt (1 hunks)
- sample/coroutines/shared/src/commonMain/kotlin/com/arkivanov/mvikotlin/sample/coroutines/shared/details/store/DetailsStoreFactory.kt (2 hunks)
- sample/coroutines/shared/src/commonMain/kotlin/com/arkivanov/mvikotlin/sample/coroutines/shared/main/MainController.kt (2 hunks)
- sample/coroutines/shared/src/commonMain/kotlin/com/arkivanov/mvikotlin/sample/coroutines/shared/main/Mappers.kt (1 hunks)
- sample/coroutines/shared/src/commonMain/kotlin/com/arkivanov/mvikotlin/sample/coroutines/shared/main/store/add/AddStore.kt (1 hunks)
- sample/coroutines/shared/src/commonMain/kotlin/com/arkivanov/mvikotlin/sample/coroutines/shared/main/store/add/AddStoreFactory.kt (1 hunks)
- sample/coroutines/shared/src/commonMain/kotlin/com/arkivanov/mvikotlin/sample/coroutines/shared/main/store/list/ListStore.kt (1 hunks)
- sample/coroutines/shared/src/commonMain/kotlin/com/arkivanov/mvikotlin/sample/coroutines/shared/main/store/list/ListStoreFactory.kt (1 hunks)
- sample/coroutines/shared/src/commonTest/kotlin/com/arkivanov/mvikotlin/sample/coroutines/shared/details/store/DetailsStoreTest.kt (1 hunks)
- sample/coroutines/shared/src/commonTest/kotlin/com/arkivanov/mvikotlin/sample/coroutines/shared/main/store/AddStoreTest.kt (2 hunks)
- sample/coroutines/shared/src/commonTest/kotlin/com/arkivanov/mvikotlin/sample/coroutines/shared/main/store/ListStoreTest.kt (2 hunks)
- sample/coroutines/shared/src/darwinMain/kotlin/com/arkivanov/mvikotlin/sample/coroutines/shared/DefaultDispatchers.kt (1 hunks)
- sample/coroutines/shared/src/jsMain/kotlin/com/arkivanov/mvikotlin/sample/coroutines/shared/DefaultDispatchers.kt (1 hunks)
- sample/reaktive/shared/build.gradle.kts (1 hunks)
- sample/reaktive/shared/src/commonMain/kotlin/com/arkivanov/mvikotlin/sample/reaktive/shared/details/DetailsController.kt (2 hunks)
- sample/reaktive/shared/src/commonMain/kotlin/com/arkivanov/mvikotlin/sample/reaktive/shared/details/store/DetailsStore.kt (1 hunks)
- sample/reaktive/shared/src/commonMain/kotlin/com/arkivanov/mvikotlin/sample/reaktive/shared/details/store/DetailsStoreFactory.kt (2 hunks)
- sample/reaktive/shared/src/commonMain/kotlin/com/arkivanov/mvikotlin/sample/reaktive/shared/main/MainController.kt (2 hunks)
- sample/reaktive/shared/src/commonMain/kotlin/com/arkivanov/mvikotlin/sample/reaktive/shared/main/Mappers.kt (1 hunks)
- sample/reaktive/shared/src/commonMain/kotlin/com/arkivanov/mvikotlin/sample/reaktive/shared/main/store/add/AddStore.kt (1 hunks)
- sample/reaktive/shared/src/commonMain/kotlin/com/arkivanov/mvikotlin/sample/reaktive/shared/main/store/add/AddStoreFactory.kt (1 hunks)
- sample/reaktive/shared/src/commonMain/kotlin/com/arkivanov/mvikotlin/sample/reaktive/shared/main/store/list/ListStore.kt (1 hunks)
- sample/reaktive/shared/src/commonMain/kotlin/com/arkivanov/mvikotlin/sample/reaktive/shared/main/store/list/ListStoreFactory.kt (1 hunks)
- sample/reaktive/shared/src/commonTest/kotlin/com/arkivanov/mvikotlin/sample/reaktive/shared/main/store/AddStoreTest.kt (1 hunks)
- sample/reaktive/shared/src/commonTest/kotlin/com/arkivanov/mvikotlin/sample/reaktive/shared/main/store/ListStoreTest.kt (1 hunks)
Files skipped from review as they are similar to previous changes (25)
- sample/coroutines/shared/src/commonMain/kotlin/com/arkivanov/mvikotlin/sample/coroutines/shared/details/DetailsController.kt
- sample/coroutines/shared/src/commonMain/kotlin/com/arkivanov/mvikotlin/sample/coroutines/shared/details/store/DetailsStore.kt
- sample/coroutines/shared/src/commonMain/kotlin/com/arkivanov/mvikotlin/sample/coroutines/shared/details/store/DetailsStoreFactory.kt
- sample/coroutines/shared/src/commonMain/kotlin/com/arkivanov/mvikotlin/sample/coroutines/shared/main/MainController.kt
- sample/coroutines/shared/src/commonMain/kotlin/com/arkivanov/mvikotlin/sample/coroutines/shared/main/Mappers.kt
- sample/coroutines/shared/src/commonMain/kotlin/com/arkivanov/mvikotlin/sample/coroutines/shared/main/store/add/AddStore.kt
- sample/coroutines/shared/src/commonMain/kotlin/com/arkivanov/mvikotlin/sample/coroutines/shared/main/store/add/AddStoreFactory.kt
- sample/coroutines/shared/src/commonMain/kotlin/com/arkivanov/mvikotlin/sample/coroutines/shared/main/store/list/ListStore.kt
- sample/coroutines/shared/src/commonMain/kotlin/com/arkivanov/mvikotlin/sample/coroutines/shared/main/store/list/ListStoreFactory.kt
- sample/coroutines/shared/src/commonTest/kotlin/com/arkivanov/mvikotlin/sample/coroutines/shared/details/store/DetailsStoreTest.kt
- sample/coroutines/shared/src/commonTest/kotlin/com/arkivanov/mvikotlin/sample/coroutines/shared/main/store/AddStoreTest.kt
- sample/coroutines/shared/src/commonTest/kotlin/com/arkivanov/mvikotlin/sample/coroutines/shared/main/store/ListStoreTest.kt
- sample/coroutines/shared/src/darwinMain/kotlin/com/arkivanov/mvikotlin/sample/coroutines/shared/DefaultDispatchers.kt
- sample/coroutines/shared/src/jsMain/kotlin/com/arkivanov/mvikotlin/sample/coroutines/shared/DefaultDispatchers.kt
- sample/reaktive/shared/src/commonMain/kotlin/com/arkivanov/mvikotlin/sample/reaktive/shared/details/DetailsController.kt
- sample/reaktive/shared/src/commonMain/kotlin/com/arkivanov/mvikotlin/sample/reaktive/shared/details/store/DetailsStore.kt
- sample/reaktive/shared/src/commonMain/kotlin/com/arkivanov/mvikotlin/sample/reaktive/shared/details/store/DetailsStoreFactory.kt
- sample/reaktive/shared/src/commonMain/kotlin/com/arkivanov/mvikotlin/sample/reaktive/shared/main/MainController.kt
- sample/reaktive/shared/src/commonMain/kotlin/com/arkivanov/mvikotlin/sample/reaktive/shared/main/Mappers.kt
- sample/reaktive/shared/src/commonMain/kotlin/com/arkivanov/mvikotlin/sample/reaktive/shared/main/store/add/AddStore.kt
- sample/reaktive/shared/src/commonMain/kotlin/com/arkivanov/mvikotlin/sample/reaktive/shared/main/store/add/AddStoreFactory.kt
- sample/reaktive/shared/src/commonMain/kotlin/com/arkivanov/mvikotlin/sample/reaktive/shared/main/store/list/ListStore.kt
- sample/reaktive/shared/src/commonMain/kotlin/com/arkivanov/mvikotlin/sample/reaktive/shared/main/store/list/ListStoreFactory.kt
- sample/reaktive/shared/src/commonTest/kotlin/com/arkivanov/mvikotlin/sample/reaktive/shared/main/store/AddStoreTest.kt
- sample/reaktive/shared/src/commonTest/kotlin/com/arkivanov/mvikotlin/sample/reaktive/shared/main/store/ListStoreTest.kt
Additional comments: 2
sample/coroutines/shared/build.gradle.kts (1)
- 28-43: The introduction of a conditional check based on the "XCODE_VERSION_MAJOR" environment variable before configuring targets for Kotlin Native is a good practice for ensuring that iOS-specific configurations are only applied when relevant. However, consider documenting this behavior in the build file or a README to clarify the build process for new developers or in environments where Xcode is not installed.
Additionally, ensure that all exported dependencies are necessary and correctly scoped for the iOS framework. Over-exporting can lead to larger binary sizes and potential issues with dependency conflicts or unintended API exposure.
sample/reaktive/shared/build.gradle.kts (1)
- 28-44: Similar to the previous file, the conditional check based on the "XCODE_VERSION_MAJOR" environment variable is a prudent approach to ensure iOS-specific configurations are applied appropriately. It's recommended to document this conditional logic within the build file or project documentation to aid understanding and maintenance.
Review the list of exported dependencies to confirm their necessity for the iOS framework. Minimizing the exports can help reduce the final binary size and mitigate potential issues related to dependency conflicts or unintended API exposure.
90c06e8
to
fe94d9d
Compare
Summary by CodeRabbit
New Features
AddStoreFactory
for adding todo items, enhancing the app's functionality.ListStoreFactory
for managing a list of items, improving user interaction with lists.Refactor
DetailsStore
in both coroutines and reaktive shared modules.ToggleDone
andDelete
intents inDetailsStore
from objects to data classes, allowing for additional data passing.ListStore
andAddStore
instances in main controllers, reducing redundancy.Add
intent inAddStore
to be a data object, facilitating easier data handling.Style
AddStore
andListStore
to reflect new package structures.Tests
Chores
Dispatchers.Main.immediate
for immediate execution.