Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Conversation

@SamuraiKek
Copy link
Contributor

@SamuraiKek SamuraiKek commented Oct 6, 2020

Description

This PR introduces the MVVM pattern with dependency injection for the onboarding flow. It also introduces the code skeleton for running instrumentation tests for each of the fragments in the onboarding flow.

How to test

Run the app and click around the onboarding flow. No behaviour changes should be noticeable. Make sure you delete the app's data before running if you've already been using the app, otherwise the onboarding flow won't show up.

@ralfgehrer ralfgehrer added this to the 1.6.0 milestone Oct 6, 2020
@harambasicluka
Copy link
Contributor

Please remove the checklist & add a milestone :)

@SamuraiKek
Copy link
Contributor Author

Please remove the checklist & add a milestone :)

Yep, I will once I remove this PR from draft.

@d4rken d4rken added the maintainers Tag pull requests created by maintainers label Oct 7, 2020
@SamuraiKek SamuraiKek added the enhancement Improvement of an existing feature label Oct 9, 2020
@SamuraiKek SamuraiKek marked this pull request as ready for review October 9, 2020 08:04
@SamuraiKek SamuraiKek requested a review from a team October 9, 2020 08:04
@d4rken d4rken self-requested a review October 12, 2020 17:32
Copy link
Member

@d4rken d4rken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly good. A bunch of small optimizations. I tried to explain but if you are still unclear about the why, please ask.

@d4rken d4rken requested a review from a team October 13, 2020 15:44
Copy link
Member

@d4rken d4rken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

d4rken
d4rken previously approved these changes Oct 13, 2020
@d4rken d4rken requested a review from a team October 13, 2020 16:03
kolyaopahle
kolyaopahle previously approved these changes Oct 14, 2020
Copy link
Contributor

@kolyaopahle kolyaopahle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one very minor nitpick otherwise lgtm

abstract class OnboardingTracingFragmentTestModule {
@ContributesAndroidInjector
abstract fun onboardingTracingFragment(): OnboardingTracingFragment
} No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor nitpick: Some files are missing new lines

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I'll add them

abstract class OnboardingTestFragmentModule {
@ContributesAndroidInjector
abstract fun onboardingTestFragment(): OnboardingTestFragment
} No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor nitpick: Some files are missing new lines

abstract class OnboardingPrivacyTestModule {
@ContributesAndroidInjector
abstract fun onboardingPrivacyFragment(): OnboardingPrivacyFragment
} No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor nitpick: Some files are missing new lines

abstract class OnboardingNotificationsTestModule {
@ContributesAndroidInjector
abstract fun onboardingNotificationsFragment(): OnboardingNotificationsFragment
} No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor nitpick: Some files are missing new lines

@SamuraiKek SamuraiKek dismissed stale reviews from kolyaopahle and d4rken via 2d83150 October 14, 2020 11:49
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

Copy link
Contributor

@Oliver-Zimmerman Oliver-Zimmerman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good to me and the onboarding flow was completed successfully when I tested it. I like how you handled navigation with the OnboardingNavigationEvents. I may adopt this in my Submission flow refactor.

@SamuraiKek SamuraiKek merged commit 4a2401d into release/1.6.x Oct 14, 2020
@SamuraiKek SamuraiKek deleted the feature/onboarding-flow-refactor branch October 14, 2020 12:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement Improvement of an existing feature maintainers Tag pull requests created by maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants