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

Generated code isn't internal #576

Closed
ghasemdev opened this issue Feb 2, 2024 · 1 comment
Closed

Generated code isn't internal #576

ghasemdev opened this issue Feb 2, 2024 · 1 comment

Comments

@ghasemdev
Copy link

Hello, one of the issues with using the single-module or multi-module approach is that the generated codes cannot be configured for access levels. I need all generated items to be internal.

ksp {
   arg("compose-destinations.isInternal", "true")
}

or

@Destination
@Composable
internal fun ProfileScreen() {
    //...
}

internal object ProfileScreenDestination : TypedDestination<ProfileScreenNavArgs> {
    //...
}
@ghasemdev ghasemdev changed the title Generated Code isn't internal Generated code isn't internal Feb 2, 2024
@raamcosta
Copy link
Owner

Hi!
There is a compose-destinations.useComposableVisibility which you can use on v1 to achieve this. However, on v2, things will change a bit and you'll be able to control visibility on a per destination basis. (check that here: https://composedestinations.rafaelcosta.xyz/migrating-to-v2#7-if-you-have-set-compose-destinationsusecomposablevisibility-on-gradle-ksp-config)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants