Skip to content

Internal visibility not respected: Internal Previews returned even though executes in a different module #20

Description

@takahirom

We are experiencing an issue where we encounter classes that we do not intend to see.
Consider a scenario with modules such as feature/a, feature/b, and core/designsystem. The designsystem module contains some previews.
When we aim to conduct Preview screenshot testing within a module for rapid updates, the previews from designsystem are captured multiple times.
Therefore, my proposal is to support the internal modifier of Kotlin for Preview functions.
If a Preview function is marked as internal, it should not be accessible from other modules.
However, currently, we are uncertain how to determine if a function belongs to the same module.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions