Skip to content
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

make codegen always use 'experimental' navigation #750

Merged
merged 3 commits into from
Apr 30, 2024

Conversation

gabrielittner
Copy link
Member

In preparation of removing AndroidX navigation the codegen will now always use Khonshu's own navigation implementation. The generated code will be as if experimentalNavigation is true (the option has been removed), but without the ability to decide between androidx and experimental at runtime.

@gabrielittner gabrielittner requested review from a team and befrvnk and removed request for a team April 29, 2024 07:57
addStatement("%M(", androidxNavHost)
}
}
.addStatement("%M(", experimentalNavHost)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
.addStatement("%M(", experimentalNavHost)
.addStatement("%M(", navHost)

What do you say about renaming this to navHost to prevent confusion?

Copy link
Member Author

Choose a reason for hiding this comment

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

Makes sense 👍 f09d3e2

Copy link
Contributor

@befrvnk befrvnk left a comment

Choose a reason for hiding this comment

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

LGTM

@gabrielittner gabrielittner enabled auto-merge (squash) April 30, 2024 07:05
@gabrielittner gabrielittner merged commit c609f7b into main Apr 30, 2024
4 checks passed
@gabrielittner gabrielittner deleted the codegen-experimental branch April 30, 2024 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants