shinydevelopment / SimulatorStatusMagic

Clean up your status bar for taking screenshots on the iOS simulator.
MIT License
2.35k stars 140 forks source link

Added Swift Package Manager support. #100

Closed joshluongo closed 2 years ago

joshluongo commented 2 years ago

I've added a basic Package.swift file to this can be imported using Swift Package Manager.

This is my first attempt at converting an exisiting project in to a SPM Package. It seems to work for me but I could have missed something :)

joshluongo commented 2 years ago

As far as I can tell there's no way to only import swift packages in a debug build, so I'll probably stick to CocoaPods for now, but I see no harm in adding this as an option too.

To my knowledge that is correct, you can't only apply it to debug builds.

I use fastlane so my use case is applying it to the Test Target that generates the screenshots.

daveverwer commented 2 years ago

I wonder if a sentence or two in the README might be useful here, given the subtlety of using it in an SPM-based project. This conversation will get buried now that the PR is closed and as soon as people see a Package.swift file, people will potentially add it as a regular dependency without thinking.

daveverwer commented 2 years ago

Oh and it can also have a home here now, too! 🚀

chrisvasselli commented 2 years ago

@daveverwer good call. https://github.com/shinydevelopment/SimulatorStatusMagic/pull/101