Added custom path ability#188
Conversation
|
I'm not a maintainer of the project, but the diff looks good to me (and we're interested in getting this change as well). A possible couple improvements for consideration:
instead define it as where
|
|
@marmelroy, any chance of landing this soon? We'd love to be able to adopt this project but require this addition. |
| */ | ||
| public init () { | ||
| territories = populateTerritories() | ||
| public init (metadataPath: String? = nil) { |
There was a problem hiding this comment.
I recommend that the metadataPath is a file URL not a String. A String can be anything. You can validate that the URL is a fileURL. The code doesn't change much but using a URL here would make the intention more clear and probably reduce some user bugs.
|
Thanks all and sorry for the delay with this. I think this is a great improvement and will add it to the next release. |
Allows the option to specify a custom bundle path as per git issue #131. Supports dependencies using Swift Package Manager since the package manager does not have the ability to copy over dependency resources.