infinum / Japx

Lightweight parser for the complex JSON:API (http://jsonapi.org/) structure.
MIT License
153 stars 35 forks source link

SPM - import Japx without the rest of the dependencies #54

Closed johnldeguzman closed 2 years ago

johnldeguzman commented 2 years ago

Expected Behavior

Easily import japx and japxCore without having to import Moya, Alamofire, etc.

Actual Behavior

SPM downloads the whole package and it's dependencies causing dependency resolution issues despite not wanting to use the other targets.

i.e. Want to use japx and japxcore but not japxrxalamofire but still imports all dependencies causing existing alamofire to have dependency resolution issues

Steps to Reproduce the Problem

1.

.package(
    url: "https://github.com/infinum/Japx",
    .exact("4.0.0")
)

Specifications

EmDee commented 2 years ago

For anyone that stumbles over this. As of today (May 12th 2022), this is a shortcoming of SPM: https://stackoverflow.com/questions/68408989/swift-package-manager-target-based-dependency