-
Notifications
You must be signed in to change notification settings - Fork 23
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
[#352] [Sample] 1/2: Setup the nav graph and navigation logic #367
[#352] [Sample] 1/2: Setup the nav graph and navigation logic #367
Conversation
Kover report for template-xml:🧛 Template - XML Unit Tests Code Coverage:
|
File | Coverage |
---|---|
BaseViewModel.kt |
0.00% |
MainActivity.kt |
0.00% |
MainViewModel.kt |
0.00% |
Modified Files Not Found In Coverage Report:
AppBar.kt
AppDestination.kt
AppNavigation.kt
Configurations.kt
HomeComposeScreen.kt
HomeComposeViewModel.kt
Item.kt
ItemList.kt
SecondScreen.kt
Theme.kt
Versions.kt
build.gradle.kts
build.gradle.kts
detekt-config.yml
detekt-config.yml
Codebase cunningly covered by count Shroud 🧛
Kover report for template-compose:
🧛 Template - Compose Unit Tests Code Coverage: 13.05%
Coverage of Modified Files:
File | Coverage |
---|---|
BaseViewModel.kt |
0.00% |
MainActivity.kt |
0.00% |
MainViewModel.kt |
0.00% |
Theme.kt |
0.00% |
Modified Files Not Found In Coverage Report:
AppBar.kt
AppDestination.kt
AppNavigation.kt
Configurations.kt
HomeComposeScreen.kt
HomeComposeViewModel.kt
Item.kt
ItemList.kt
SecondScreen.kt
Versions.kt
build.gradle.kts
build.gradle.kts
detekt-config.yml
detekt-config.yml
Codebase cunningly covered by count Shroud 🧛
Generated by 🚫 Danger
6ad224d
to
ea451e9
Compare
...-compose/app/src/main/java/co/nimblehq/sample/compose/ui/screens/home/HomeComposeFragment.kt
Outdated
Show resolved
Hide resolved
ea451e9
to
a6143ba
Compare
sample-compose/app/src/main/java/co/nimblehq/sample/compose/ui/AppDestination.kt
Outdated
Show resolved
Hide resolved
sample-compose/app/src/main/java/co/nimblehq/sample/compose/ui/AppNavigation.kt
Outdated
Show resolved
Hide resolved
...le-compose/app/src/main/java/co/nimblehq/sample/compose/ui/screens/home/HomeComposeScreen.kt
Outdated
Show resolved
Hide resolved
...le-compose/app/src/main/java/co/nimblehq/sample/compose/ui/screens/home/HomeComposeScreen.kt
Outdated
Show resolved
Hide resolved
...le-compose/app/src/main/java/co/nimblehq/sample/compose/ui/screens/home/HomeComposeScreen.kt
Show resolved
Hide resolved
...le-compose/app/src/main/java/co/nimblehq/sample/compose/ui/screens/home/HomeComposeScreen.kt
Show resolved
Hide resolved
...le-compose/app/src/main/java/co/nimblehq/sample/compose/ui/screens/home/HomeComposeScreen.kt
Show resolved
Hide resolved
292e315
to
d709212
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.
LGTM, strong implementation with the nav graph set up for Jetpack Compose @luongvo 👏
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.
LGTM Now🚀
d709212
to
519a711
Compare
...le-compose/app/src/main/java/co/nimblehq/sample/compose/ui/screens/home/HomeComposeScreen.kt
Show resolved
Hide resolved
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.
@luongvo Cool! 🥇
sample-compose/app/src/main/java/co/nimblehq/sample/compose/ui/AppDestination.kt
Outdated
Show resolved
Hide resolved
sample-compose/app/src/main/java/co/nimblehq/sample/compose/ui/AppNavigation.kt
Outdated
Show resolved
Hide resolved
...le-compose/app/src/main/java/co/nimblehq/sample/compose/ui/screens/home/HomeComposeScreen.kt
Show resolved
Hide resolved
sample-compose/app/src/main/java/co/nimblehq/sample/compose/ui/screens/second/SecondScreen.kt
Show resolved
Hide resolved
sample-compose/app/src/main/java/co/nimblehq/sample/compose/ui/AppDestination.kt
Outdated
Show resolved
Hide resolved
sample-compose/app/src/main/java/co/nimblehq/sample/compose/ui/AppDestination.kt
Show resolved
Hide resolved
sample-compose/app/src/main/java/co/nimblehq/sample/compose/ui/AppDestination.kt
Show resolved
Hide resolved
sample-compose/app/src/main/java/co/nimblehq/sample/compose/ui/AppDestination.kt
Outdated
Show resolved
Hide resolved
@luongvo Would you mind updating the |
@lydiasama I think it's out of this PR's scope and needs to verify & vote on. Can we go through an RFC and contribute to improve it later cc @Tuubz? |
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.
Except for the detekt rule updating.
#352
What happened 👀
hiltViewModel()
. This solves the last known issue [#19] Integrate coin info detail jetpack-compose-crypto#45 (review) 👏 .NavController
to composable, pass thenavigator
callback withAppDestination
event instead. Thisnavigator
callback helps us to send the navigation command from our composable & ViewModel to the NavGraph for navigating.Insight 📝
Following what we introduced in https://docs.google.com/presentation/d/1xJYi25WrYOdMxigM0LTCIVX5zLozccCFGvq_ulyeTd8/edit#slide=id.p, we will have
AppDestination
class.AppDestination
is designed to provide theroute
andarguments
config for each composable screen. It's also a navigation command which contains a built destination for navigating.Proof Of Work 📹
The existing navigation from the
Home
to theSecond
screen should work properly as it is.