Git Product home page Git Product logo

Comments (8)

zwaldowski avatar zwaldowski commented on June 3, 2024

Deferred supports the range of Swift versions our clients are using. The final release of Deferred 4.0 will be specifically compatible with Swift 4.1, 4.2, and 5.0 compilers by using syntax that is common to all 3. Swift has supported multiple dialects in this way since Swift 4.

Compiling Deferred 4.0 using a Swift 5 compiler nets all the benefits of Swift 5, including use of the stable ABI. Likewise, compiling Deferred 4.0 against the planned Swift 5.1 will grant module stability and allow shipping binary releases of Deferred — still with no code changes needed.

After cutting the 4.0 release, we will likely move on master to drop Swift 4.1, but certainly won't be dropping Swift 4.2 until Swift 5.0 has gone stable.

For its part, CocoaPods does not allow us to express this range of support without a feature that has only just now entered beta: CocoaPods/CocoaPods#8191.

from deferred.

piercifani avatar piercifani commented on June 3, 2024

Agreed, CocoaPods support is behind.

But this is what I was referring to: shouldn't the preferred Swift version (set via the podspec) be set to at least 4.2?

from deferred.

zwaldowski avatar zwaldowski commented on June 3, 2024

We are choosing to support Swift 4.1, so no.

from deferred.

piercifani avatar piercifani commented on June 3, 2024

Hey, I'm trying out the 4.0 final release and it looks like when building using Xcode 10.2 and setting the Swift version to 5 it's not compiling due to some outdated annotations:

image

I have seen that the CI has passed on Swift 5 with Linux so I don't know if there's an extra flag I should set to benefit from Swift 5 here.

As always: thank you!

from deferred.

zwaldowski avatar zwaldowski commented on June 3, 2024

Changing the version is not necessary to benefit from the Swift 5 compiler.

The next point release of Deferred will adjust the language version appropriately.

from deferred.

piercifani avatar piercifani commented on June 3, 2024

Would this mean that the final App that links Deferred would reduce in size due to using the built-in Swift libraries when available (iOS 12.2+)?

from deferred.

zwaldowski avatar zwaldowski commented on June 3, 2024

Yes.

from deferred.

piercifani avatar piercifani commented on June 3, 2024

Ok! Thanks!

from deferred.

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.