RevenueCat / purchases-hybrid-common

Common files for the Hybrid SDKs
MIT License
21 stars 10 forks source link

Syncs version in `Package.swift` and `Package.resolved` with other iOS version files #969

Closed JayShortway closed 1 week ago

JayShortway commented 1 week ago

As the title says.

What

The Package.swift and Package.resolved files were stuck at 5.3.3 of purchases-ios, while the current dependency version is actually 5.8.0. Other version files such as .podspec correctly contain 5.8.0.

How

When SPM support was merged (https://github.com/RevenueCat/purchases-hybrid-common/pull/922), it contained 5.3.3, but it was merged after the CI job had already updated the dependency to 5.3.4 in the existing iOS version files. (See PurchasesHybridCommon.podspec at that point in time.)

This meant the Package.swift and Package.resolved files were out-of-sync from the start. Subsequent CI jobs therefore didn't update them, because they didn't contain the expected version (5.3.4).

Fix

This PR syncs the Package.swift and Package.resolved files back up with the other version files. I confirmed locally that they do get properly updated after this change.

We should really make sure to merge this before the next bump is merged. 😅