Swiftystorekit: Swift 5 Support w/ Cocoapods

Created on 26 Mar 2019  路  6Comments  路  Source: bizz84/SwiftyStoreKit

Expected Results

No warning to convert SwiftyStoreKit.framework to Swift 5

Actual Results

Xcode created warnings to convert SwiftyStoreKit.framework to Swift 5

Steps to Reproduce

Build the cocoapod in Xcode 10.2

Most helpful comment

And warning:

'public' modifier is redundant for property declared in a public extension
Replace 'public ' with ''

in file SKProduct+LocalizedPrice.swift

All 6 comments

Warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Payment' to 'Hashable' by implementing 'hash(into:)' instead

And warning:

'public' modifier is redundant for property declared in a public extension
Replace 'public ' with ''

in file SKProduct+LocalizedPrice.swift

any plan convert it to swift5 ?

According to the swift converter (apart from the deprecations) you just need to update line 50 of PaymentsController.swift (and of course the Podspec) to move to swift 5:

return payments.firstIndex(of: payment)

I'm keen to stop having the swift runtime added to all my downloads.

Swift 5 is now supported as of version 0.15.0.

See #457.

Thank you!

Was this page helpful?
0 / 5 - 0 ratings