lwouis / alt-tab-macos

Windows alt-tab on macOS
https://alt-tab-macos.netlify.app
GNU General Public License v3.0
11.01k stars 330 forks source link

Migrate to SwiftPM #3859

Open adamnemecek opened 4 hours ago

adamnemecek commented 4 hours ago

Is there interest in migrating the project to SwiftPM? If yes, I'm willing to fix it.

lwouis commented 3 hours ago

Hi,

I'm not familiar with SPM. I haven't used it yet. Do you see practical benefits to switching from cocoapods to SPM?

One thing to consider is that we don't update dependencies often, and we try hard not to add new ones. This is to support our goal for the app to be as performant and lightweight as possible. Another thing to consider is that we commit dependency on git, so cocoapods is not used for people git clone'ing the project. It's only used to download new dependencies on rare occasion.

What do you think? Still worth a shot? Maybe it bundles dependencies in a way which improves performance?

I worry a bit about some of our dependencies which use a fork of popular repos, so we could use our patches. That may be tricky to move to SPM.

Thank you 🙇

adamnemecek commented 3 hours ago

Do you see practical benefits to switching from cocoapods to SPM?

I do not remember a single time when I cloned a repo using cocoapods and managed to get it to build on the first try or even within like 10 minutes. With SPM that is a pretty common experience. But I did not realize that you do not use cocoapods to pull in the dependencies.

None of the things that you mention should be a show stopper tho. But the whole build process would be simple with SPM.