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

RCOCOA-2334: Move initial subscription logic into Core #8549

Merged
merged 4 commits into from
Apr 22, 2024

Conversation

nirinchev
Copy link
Member

@nirinchev nirinchev commented Apr 15, 2024

Fixes #8548

TODO:

  • Changelog
  • API docs

Squashed commits:
[04969a5] Move initial subscription logic into Core
@nirinchev nirinchev force-pushed the ni/initial-subscriptions-in-core branch from 7e3c7a0 to 58169d8 Compare April 15, 2024 18:13
@nirinchev nirinchev marked this pull request as ready for review April 15, 2024 18:24
RealmSwift/Sync.swift Outdated Show resolved Hide resolved
RealmSwift/Sync.swift Outdated Show resolved Hide resolved
@param callback Callback that will be invoked to update the subscriptions for this Realm file when it's first created or every time it's opened if `rerunOnOpen` is `true`.
@param rerunOnOpen A flag controlling whether to run the subscription callback every time the Realm is opened or only the first time.
*/
- (instancetype)initWithCallback:(RLMFlexibleSyncInitialSubscriptionsBlock)callback rerunOnOpen: (BOOL)rerunOnOpen;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No space after the colon in obj-c.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a bunch of spots with extra spaces between the colon and the argument and not just here.

(I think the historical reason behind this style is that it makes word-wrapping work much better and obj-c is prone to very long message sends that need wrapping).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, sorry, will go over those!

Realm/RLMInitialSubscriptionsConfiguration.h Show resolved Hide resolved
@nirinchev nirinchev requested a review from tgoyne April 16, 2024 13:59
Copy link
Member

@tgoyne tgoyne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good other than the style nit.

@nirinchev nirinchev merged commit 3a9586b into master Apr 22, 2024
3 of 78 checks passed
@nirinchev nirinchev deleted the ni/initial-subscriptions-in-core branch April 22, 2024 14:42
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move initial subscriptions callback from SDK to Core
2 participants