Code Monkey home page Code Monkey logo

Comments (9)

dsrees avatar dsrees commented on July 16, 2024 2

@thehavre @JetForMe version 5.0.0 has removed RxSwift and Starscream as dependencies. These extensions will be available in separate repositories

from swiftphoenixclient.

dsrees avatar dsrees commented on July 16, 2024 1

This is definitely the intention of how the project is set up. If it's not working this way then I may have a configuration issue in the Package.swift file

from swiftphoenixclient.

thehavre avatar thehavre commented on July 16, 2024 1

So, SwiftPhoenixClient still depends on RxSwift and Starscream, and so still pulls them down. May I suggest breaking out the Rx and Starscream support into separate packages that can be included independently?

It would be perfect and right way to solve any related issue. Updating Rx version was like a half-measurement to solve a consequences :(

from swiftphoenixclient.

dsrees avatar dsrees commented on July 16, 2024

@thehavre could you please change your Package.swift to use the fix-package-targets branch and verify it is working for you? Thanks

from swiftphoenixclient.

thehavre avatar thehavre commented on July 16, 2024

@dsrees unfortunately, it won't work , cause you have declared Rx and Starscream dependencies in one unified Package.swift

dependencies: [
        // Dependencies declare other packages that this package depends on.
        .package(url: "https://github.com/ReactiveX/RxSwift.git", .upToNextMajor(from: "5.0.0")),
        .package(url: "https://github.com/daltoniam/Starscream.git", .upToNextMinor(from: "3.1.0")),
    ]

It means that you have declared your Product SwiftPhoenixClient with required Product dependencies. My issue arrises when I try to add SwiftPhoenixClient to the Project (not target). Xcode tries to resolve all Project's Packages and finds that it has explicit Package with RxSwift Product dependency and also it has SwiftPhoenixClient Product with dependencies where RxSwift version conflicts with already explicitly added RxSwift dependency.

That's why initially I've asked you to divide Rx and Starscream functionality to separate Packages (not targets), where each package depends on SwiftPhoenixClient package. Unfortunately, targets separation in the product can't resolve this issue :(

I don't know if it's possible to do so to not break existing users support, but if it is, it would be great to do so :)

from swiftphoenixclient.

dsrees avatar dsrees commented on July 16, 2024

Hmm.. I was using Moya as an example here, assuming that if you used SPM to use Moya, they wouldn't pull non-used dependencies

I need to update to RxSwift 6.0 anyways so would that solve your problem for now until something else if figured out?

from swiftphoenixclient.

thehavre avatar thehavre commented on July 16, 2024

Yeah, updating RxSwift works for me. Thanks 🙃

from swiftphoenixclient.

dsrees avatar dsrees commented on July 16, 2024

4.0.0 is released which includes RxSwift 6.x

from swiftphoenixclient.

JetForMe avatar JetForMe commented on July 16, 2024

So, SwiftPhoenixClient still depends on RxSwift and Starscream, and so still pulls them down. May I suggest breaking out the Rx and Starscream support into separate packages that can be included independently?

from swiftphoenixclient.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.