needle icon indicating copy to clipboard operation
needle copied to clipboard

Namespace registerProviderFactories for multiple Needle Integrations

Open kamranpirwani opened this issue 5 years ago • 0 comments

We have separate components in our main target and test target and want to integrate Needle into these separately. However, because registerProviderFactories is not name-spaced inside of the containing class, we are unable to use it across test targets when the test target depends on the main target. I wasn't able to find an open source version of the generator or we would have made changes ourself, but what would be the best way to namespace this function inside of the class -- is this something you could add support for?

Something like NeedleGenerated.registerProviderFactories() vs registerProviderFactories

This primarily becomes an issue as we don't want to include our test dependencies into a NeedleGenerated file in our main target, or if we had components with different functionality across the targets

kamranpirwani avatar Feb 27 '20 10:02 kamranpirwani