Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix regressions with CloudKit synchronization #1029

Merged
merged 3 commits into from
Dec 20, 2024
Merged

Conversation

keeshux
Copy link
Member

@keeshux keeshux commented Dec 20, 2024

The remote container is shared by ProfileManager and
PreferencesManager, but it must be the same for CloudKit sync
to work properly.

Externalize the logic of onEligibleFeatures() so that the
AppContext singleton can update the managers (and their
repositories) with the new remote store.

Now that the remote profile repository is reloaded every time that
eligible features change, the .removeDuplicates() may also be
restored. Just add a .dropFirst() to skip the initially empty
value of eligible features. Even when features are eventually empty,
a value is always emitted after IAPManager.reloadReceipt()

Lastly, enable Core Data lightweight migration.

Regressions from #1017

The remote container is shared by ProfileManager and
PreferencesManager, but it must be the same for CloudKit sync
to work properly.

Externalize the logic of onEligibleFeatures() so that the
AppContext singleton can update the managers (and their
repositories) with the new remote store.

Now that the remote profile repository is reloaded every time that
eligible features change, the .removeDuplicates() may also be
restored. Just add a .dropFirst() to skip the initially empty
value of eligible features.
@keeshux keeshux self-assigned this Dec 20, 2024
@keeshux keeshux added the regression Used to work but doesn't anymore label Dec 20, 2024
@keeshux keeshux added this to the 3.0.0 / 7. Release milestone Dec 20, 2024
@keeshux keeshux merged commit f8e623e into master Dec 20, 2024
1 check passed
@keeshux keeshux deleted the bugfix/cloudkit-sync branch December 20, 2024 09:05
keeshux added a commit that referenced this pull request Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression Used to work but doesn't anymore
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant