Peter-Schorn / SpotifyAPI

A Swift library for the Spotify web API. Supports all endpoints.
https://peter-schorn.github.io/SpotifyAPI/documentation/spotifywebapi
MIT License
265 stars 32 forks source link

remove SpotifyExampleContent from Package.swift #46

Closed gregggreg closed 4 months ago

gregggreg commented 1 year ago

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.

Peter-Schorn commented 1 year ago

And what about people who use the example content? You should move it to a new library.

gregggreg commented 1 year ago

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.

Peter-Schorn commented 1 year ago

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.

Peter-Schorn commented 4 months ago

Implemented in version 3.0.0.