Replies: 1 comment 2 replies
-
Past context: I am curious why do you feel the need for moving to SPM right now, I see the benefits you listed but I also have some mixed experiences with SPM in other projects that are actually way simpler in terms of structure compared to Home Assistant. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Proposal to migrate the Home Assistant iOS project from CocoaPods to Swift Package Manager (SPM) for dependency management.
Reason
With CocoaPods moving to maintenance mode, I believe it’s a good time to consider migrating this project to SPM.
Benefits of Migrating to SPM
LocalPackage
that are tracked with the project, incentivizing modular architecture.Proposed Plan
Podfile
to ensure compatibility with SPM.README
and any developer documentation to reflect the changes.Implementation
I am interested in leading this migration and would be happy to volunteer for the implementation. I have experience with Swift Package Manager and have already managed to get the project building with SPM. However, completing the pre-migration tasks is necessary before proceeding with the full transition.
If there is interest in proceeding with this migration, we can begin tackling the smaller pre-migration steps outlined below. These incremental changes will help pave the way for a smooth transition to SPM.
That said, I don’t want to begin this project if there is no interest in migrating away from CocoaPods. I’m looking forward to hearing feedback from the community and maintainers to determine if this is the right direction for the project.
Pre-Migration Plan:
Communicator
dependency which includesPackage.swift
queue
can be passed into theobserve
function without exposing thestore
Package.Swift
filePackage.Swift
but we can just use the fork from this PRCPDAcknowledgements
needs to replaced (This could be done in the same PR but probably better to do prior.Questions for Discussion
Looking forward to hearing your thoughts and feedback on this proposal!
Beta Was this translation helpful? Give feedback.
All reactions