Automattic / Gravatar-SDK-iOS

Gravatar SDK is a Swift library that allows you to integrate Gravatar features into your own iOS applications.
https://gravatar.com
Mozilla Public License 2.0
41 stars 5 forks source link

Adjust `TestHelper` access, drop use of `@testable import` #335

Closed andrewdmontgomery closed 3 months ago

andrewdmontgomery commented 3 months ago

Closes #

Description

Since the TestHelper target is not listed as a Product in the Package.swift, it is not available for use by third parties who integrate our SDK.

Instead of using @testable, let's set the access levels in the TestHelper module such that they reflect our usage of the module from the GravatarTests and GravatarUITests modules.

Testing Steps

andrewdmontgomery commented 3 months ago

I wasn't here when this was created. So I don't know the history. I'll bet there was a reason to @testable import for this originally.

This seems to work well now, though. Is there a reason to continue to use the @testable import still?

pinarol commented 3 months ago

Is there a reason to continue to use the @testable import still?

Nope I don't think there is.