-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shared show notification onboarding screen on user login (#664)
Co-authored-by: Ivan Magda <[email protected]>
- Loading branch information
1 parent
f93d321
commit 943ba27
Showing
36 changed files
with
477 additions
and
49 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
7 changes: 7 additions & 0 deletions
7
...rskill/app/notifications_onboarding/injection/PlatformNotificationsOnboardingComponent.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,7 @@ | ||
package org.hyperskill.app.notifications_onboarding.injection | ||
|
||
import org.hyperskill.app.core.injection.ReduxViewModelFactory | ||
|
||
interface PlatformNotificationsOnboardingComponent { | ||
val reduxViewModelFactory: ReduxViewModelFactory | ||
} |
20 changes: 20 additions & 0 deletions
20
...ll/app/notifications_onboarding/injection/PlatformNotificationsOnboardingComponentImpl.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,20 @@ | ||
package org.hyperskill.app.notifications_onboarding.injection | ||
|
||
import org.hyperskill.app.core.injection.ReduxViewModelFactory | ||
import org.hyperskill.app.notifications_onboarding.presentation.NotificationOnboardingViewModel | ||
import ru.nobird.app.presentation.redux.container.wrapWithViewContainer | ||
|
||
class PlatformNotificationsOnboardingComponentImpl( | ||
private val notificationsOnboardingComponent: NotificationsOnboardingComponent | ||
) : PlatformNotificationsOnboardingComponent { | ||
override val reduxViewModelFactory: ReduxViewModelFactory | ||
get() = ReduxViewModelFactory( | ||
mapOf( | ||
NotificationOnboardingViewModel::class.java to { | ||
NotificationOnboardingViewModel( | ||
notificationsOnboardingComponent.notificationsOnboardingFeature.wrapWithViewContainer() | ||
) | ||
} | ||
) | ||
) | ||
} |
11 changes: 11 additions & 0 deletions
11
...g/hyperskill/app/notifications_onboarding/presentation/NotificationOnboardingViewModel.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,11 @@ | ||
package org.hyperskill.app.notifications_onboarding.presentation | ||
|
||
import org.hyperskill.app.notifications_onboarding.presentation.NotificationsOnboardingFeature.Action.ViewAction | ||
import org.hyperskill.app.notifications_onboarding.presentation.NotificationsOnboardingFeature.Message | ||
import org.hyperskill.app.notifications_onboarding.presentation.NotificationsOnboardingFeature.State | ||
import ru.nobird.android.view.redux.viewmodel.ReduxViewModel | ||
import ru.nobird.app.presentation.redux.container.ReduxViewContainer | ||
|
||
class NotificationOnboardingViewModel( | ||
reduxViewContainer: ReduxViewContainer<State, Message, ViewAction> | ||
) : ReduxViewModel<State, Message, ViewAction>(reduxViewContainer) |
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
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
Oops, something went wrong.