Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Separate navigation routes and args issue #863 #931

Merged
merged 5 commits into from
Nov 21, 2023
Merged

Separate navigation routes and args issue #863 #931

merged 5 commits into from
Nov 21, 2023

Conversation

sahilsk3333
Copy link
Contributor

@sahilsk3333 sahilsk3333 commented Nov 16, 2023

Separate navigation routes and args issue #863

@sahilsk3333 sahilsk3333 requested a review from a team as a code owner November 16, 2023 13:02
Copy link
Contributor

@arriolac arriolac left a comment

Choose a reason for hiding this comment

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

Thanks! Just one small suggestion on the file's location. Other than that, LGTM.

For reference for other folks reading this PR, you can also reference now NiA structures routes/screens. For example: https://github.com/android/nowinandroid/blob/main/feature/bookmarks/src/main/kotlin/com/google/samples/apps/nowinandroid/feature/bookmarks/BookmarksScreen.kt#L80

import androidx.navigation.NavType
import androidx.navigation.navArgument

sealed class Screen(
Copy link
Contributor

Choose a reason for hiding this comment

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

Rather than putting this under the utilities package, I recommend adding this in compose package.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, I've addressed the feedback in commit 'Moved Screen class to compose package'. Could you take a look, @arriolac ?

Commit Link

@arriolac arriolac merged commit 5fb12f0 into android:main Nov 21, 2023
2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants