[ad_1]
I’m lately trying into organising code with swift packages. One of many factor I’m fighting is utilizing a dependency with identical model throughout swift packages.
Suppose I’ve PackageA and PackageB and I need to use 1.0.0 model of DependencyA. Though this could at all times be carried out with specifying the identical model for every bundle(which might be susceptible to consumer error), I need to know if I can create a single reference that I can import in every bundle to specify widespread dependencies.
For instance in cocoapods’ podfile, I can outline checklist of widespread packages and set up them for specified targets. Is one thing like that attainable with swift packages? Alternatively, can I obtain this utilizing surroundings variables, if sure how ought to I proceed?
[ad_2]
