-
-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds new swift-package for use in Native projects. #285
Conversation
Any way you can contribute the code of the package so it can be stored in this repository, rather than having the documentation point to yours? |
Unfortunately I don't believe there is a way. The way XCode pulls it in is via the .git url as if it was cloned. The file structure is very important for it. If any one pice is out of place, then it won't work. It looks specifically for the Package.swift file to know what the structure for it is, which is at the root. |
I don't see a problem in adding this file in this repo here at root level 👍 In contrast, I would be a bit hesitant when it comes to including a submodule inside this repo. |
Perhaps you could add all of the files from your repository to the root of this one? Looks like we would just need the following files:
And then we could integrate As for excluding files so this entire repository isn't cloned whenever you install via Swift Package Manager, it appears there's a mechanism for that. I hesitate to create a separate repository for this (even in the |
In my opinion, this doesn't sound like a bad idea. As far as I know, you can trigger other workflows within a GitHub organization. Although I don't think anything speaks against adding it to this repo here (besides polluting the root 😄). |
Well, if we add it to the top, then we have to add all of it to the top level. I'd strongly recommend against that. An alternative would be to provide a binary on your repo that can be used but then that kills the "Open Source" side of it. Unfortunately it's no simple answer and this is the solution I could come up with. I'm already working towards automating the Swift Package from within the separate repo, to always stay in sync with this repo. |
I trust your judgement. Do you mind creating a PR with your repository's code in this repository instead? It would be great if you could create a GitHub Actions script that triggers your script every time the main icons are updated. If not, I'm sure we can handle it a different time. And then if you could update this PR to include the link to the new repo. |
Could the source of truth not be kept in (this) the main repo, and mirrored to the swift package for releases? (Edit: keep the swift-related code in a subfolder here, and copy to the root of the dedicated repo.) |
I would say if we're doing the separate repository route, let's just keep things simple and keep it separated in the other repo, and just keep it in sync with the icons / releases from this one. I'm hoping we can lean on @mkaulfers a bit here to automate that release process so it doesn't become a chore 😄 But, as always, if we find it becomes unsustainable we can always figure out how to move it to this repository later. I'm apt to go ahead and create a separate repository now since the code is already there and we can quickly get SwiftUI support out. |
@DaniFoldi @sammarks @paescuj So if I'm reading correctly, remove the |
@mkaulfers actually:
|
@sammarks okay that works, but why keep the source both in here as well as the other? If Iconoir will be in posession of the source of truth, no need to have it copied in both repos right? I already have a thought for the workflow to update the repository and there already exists a |
I'm not sure what you mean by keeping the source in this repo as well as in the other? If you're talking about the submodule you've added inside the PR, we can get rid of that in this repo as we don't need it. |
Yes that's what I was referring to. I'll get that going here in a few minutes. |
Package has been moved to the iconoir-swift repo.
@sammarks done 👍 There's now a PR up on both repositories, submodule has been extracted, and as soon as they're approved I'll get it listed on Swift Package Index. |
Thank you! |
No description provided.