Skip to content

Make the PlaceAutocomplete initializer and its respective children artifacts public #444

Description

@RafaelPena31

When implementing the MapboxSearch SDK, when creating tests for my ViewModel, I encountered the challenge of creating stubs for the classes exposed in the SDK, such as PlaceAutocomplete.Suggestion and PlaceAutocomplete.Result.

It's not possible to create stubs because the constructors of these classes are internal and not public.

I can create stubs if I make the library import @testable, but this makes the build for testing very slow.

The solution could be something simple, just adding public to the constructors of these classes/structs/enums. Or, exposing stub methods through a test artifact in the SDK for us to use.

Would that be possible?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions