Closed gregggreg closed 6 months ago
And what about people who use the example content? You should move it to a new library.
Good point. Creating a new library without it is probably a better option. I'm curious who is actually using the example content in a shipping app though? Seems like it is more useful for unit tests, but perhaps I am misunderstanding its use.
SpotifyExampleContent
is not intended to be used in shipping apps (although there may be limited use cases for this). It is primarily intended for previews and unit tests. In order for this target to be imported into another project to be used in previews, it must be included in a library. So, you can create another library, also called SpotifyExampleContent
, that includes this target.
Implemented in version 3.0.0
.
If you include SpotifyAPI using Swift Package Manager, it includes the SpotifyExampleContent in your resulting app, adding several megabytes of unused content into your app.