Note that since Accio is using Carthage for building, but has some additional features like improved caching,
it should be considered as recommendable as Carthage is. Also it is designed towards SwiftPM.
We still only show `pod install` instructions because they are the most popular tool.
But I wasted 2 hours this morning because CocoaPods don’t care about their DX so I’m done recommending it any capacity.
[ci skip]
Strictly I’d feel better to test all configurations, but PromiseKit only uses Foundation, so the chance that for some reason there is an API break or worse some kind of runtime issue is pretty low and I feel that we have to be kinder to Travis’s free infrastructure.
Tag 6.0.2
This because `Promise(value:)` is selected for PMK-4’s pending initializer due to trailing closure syntax and the fact that `T` could be anything. I guess this isn’t a Swift bug, but geez.
This is a real problem for people migrating to 5 from 4, such that I have decided 5 must be deprecated.
The severity is due to Swift giving a very misleading error diagnostic when it uses `Promise(value:)`, because as you can guess you end up with:
Promise<(T->Void, Error->Void)>
As your inferred type.
Because we no longer have ambiguity between `Promise { seal in` and `Promise(value:` I have removed the `.pending` parameter for that usage which will also aid migration.
In some cases this leads to less nice code, but mostly it’s fine due to being able to do `.value(1)` where `Promise` can be inferred. The trade off is worth it though as PromiseKit should be delightful to use and as it stands, it is a pain due to how Swift is.
Removes `swift_version` from (modern) our `Podfile` suggestions.
Seemingly this is not documented or encouraged anymore by team CocoaPods. However it for sure was needed during the Xcode 7 period when Swift varied substantially between v2s.
Refs #707; Refs #708.
[ci skip]