I'd like to work towards adding support for parsing other file resources that need to be accessed from the bundle, usually with Bundle.main.url(forResource:withExtension:) and the like.
Looking through the issues it seems this is a desired functionality, but not much work has been towards achieving it
My thoughts on the implementation:
resourcesinputs and filter are the best way to specify files or file types to includeResource)false)Thoughts on template:
ResourceResourceFileResourceFile can expose two computed propertiesurl for url(forResource:withPath:)</li>
<li><code>md5-0fd634b37105e2b76d4a20161746fec8</code> forpath(forResource:ofType:)Need input on:
Thoughts? Ideas? Did I miss anything?
Hi @mgray88!
I think you've got topics things covered.
Awesome. Real life got in the way since I last worked on this, but I would like to see it through. I've got a start at https://github.com/mgray88/SwiftGen/tree/feature/file-resources
If you're able, let me know what you think. I remember I was working on getting the tests set up before I went any further and ran into an issue where Swiftlint was linting my test files and complaining about the comment header. Which was just copied from the existing test files
You can always open a draft PR and we can discuss some technicalities in there
Hey @mgray88, are you still working on this? I actually had the same need and this looks like exactly what I was looking for.
@pfandrade I haven't been able to in a while. Thankfully my company is hiring an Android dev which will halve my workload. I was hoping to start back on it in a few weeks.
I'll start a PR with what I have if you'd like to help out. It's pretty far behind stable so I don't know how much of it is out of date
Hey, awesome! If I'm able to free up some time, I'll try to help out.
Is this done, or are there more pieces beyond the current files parser support?
@darknoon The feature as envisioned is complete in the PR that was merged into develop
@djbe Any news on an upcoming release?