[Ms-33] new dialogs api
This pull request includes significant changes to the account
and feature/dialogs
components, as well as some updates to dependencies and version numbers. The changes mainly involve the addition of a new feature for dialogs, refactoring of the account host components, and updates to project dependencies.
Refactoring and New Components:
-
account/src/commonMain/kotlin/ru/mystreet/account/component/AccountHost.kt
: Removed theAccountHost
interface and its nestedChild
interface. -
account/src/commonMain/kotlin/ru/mystreet/account/component/AccountHostComponent.kt
: RefactoredAccountHostComponent
to be an interface extendingModalDialogComponent
and moved theChild
interface here. -
account/src/commonMain/kotlin/ru/mystreet/account/component/DefaultAccountHostComponent.kt
: Added a newDefaultAccountHostComponent
class implementingAccountHostComponent
andModalDialogComponent
.
Dialog Feature Implementation:
-
feature/dialogs/build.gradle.kts
: Added a new Gradle build script for thedialogs
feature. -
feature/dialogs/src/commonMain/kotlin/ru/mystreet/app/feature/dialogs/Module.kt
: Added a new Koin module for thedialogs
feature with factory bindings forDialogConfirmStore
andDialogCustomStore
. -
feature/dialogs/src/commonMain/kotlin/ru/mystreet/app/feature/dialogs/component/modal/DefaultModalDialogComponent.kt
: Added a newDefaultModalDialogComponent
class implementingModalDialogComponent
.
Dependency and Version Updates:
-
buildSrc/src/main/java/LocalDependencies.kt
: Added a new functionprojectFeatureDialogs
to include thedialogs
feature dependency. -
buildSrc/src/main/java/Versions.kt
: Updated versions foressenty
anddecompose
libraries.
Localization:
- Added localization files for the
dialogs
feature in English, Portuguese, and Russian. 1(diffhunk://#diff-c11dc588fdaa55196068cd51a688d126b8350c14909bbf1be18f3c8363b557d0R1-R6) 2(diffhunk://#diff-4059cdd632bd61d18178e1b7b372c7414929091753dd2f4e1e487d4e05190ae2R1-R6) 3(diffhunk://#diff-ccbcf1a019482cd62f3f092c9a27d5e3b8f131d1b00a63667120731a27a29baaR1-R6)
These changes collectively enhance the modularity and functionality of the project by introducing a new dialogs feature and refactoring the account host components to better integrate with this new feature.