Multi-modules project : how to avoid public visibility for @Preview?
See original GitHub issueThe documentation states that
The root module is the main module of your app that has a dependency on all other modules in the app. This is relevant because we generate the Showkase related classes in the package of the root module and we need to be able to access the UI elements across all the sub modules. This is only possible from the root module as it typically has a dependency on all the sub-modules.
-
Does it mean that we can only have one
@ShowkaseRootModule
per project? -
Setting all the composables to render with a public visibility adds unnecessary items to the auto-completion list. Do you have an idea to help mitigate this?
Many thanks!
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:5
Top Results From Across the Web
Navigation best practices for multi-module projects
With this code in place, NavigationUI navigates to the appropriate library graph when the user clicks on a bottom navigation item. Keep in...
Read more >Jetpack Compose does not compile in a multi-module project
I never managed to compile a multi-module project with any of the compose developer preview versions, I asked a lot in the official...
Read more >Managing visibility of your projects - GitHub Docs
Visibility of user projects can be managed by the owner of the project and collaborators with admin permissions. About project visibility. Projects can...
Read more >Modularization - Lessons learned - Jeroen Mols
That way the layout previews will be shown in the correct theme by default! Layout preview shows correct theme when application theme attribute ......
Read more >Easy modularity: Keeping your Gradle build scripts clean and ...
... scripts clean and eliminating duplication in your multi-module projects ... Apply only what you need and no more: plugins are not free....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks @iamutkarshtiwari , that would be an alternative. We ended up excluding our Previews from the IDE autocompletion-list.
Regarding my first question, does anyone have a clue? maybe @vinaygaba ? Having multiple ShowkaseRoot would help isolate previews and keep them internal
ShowkaseRootModule
are essentially meant to represent a collection previews based on the dependencies of the module where its declared. So in theory, it’s possible to have multipleShowkaseRootModule
in a project.