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 ditto instance retain cycle in PresenceViewer #167

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

magicwave
Copy link
Contributor

Working from Konstantine's fix in monorepo version, modified for current DittoSwiftTools version (from main branch fbf428d).

@magicwave magicwave requested a review from a team as a code owner December 20, 2024 04:08
Copy link
Member

@bplattenburg bplattenburg left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@magicwave
Copy link
Contributor Author

@bplattenburg I'd would love to see this fix in a release, for a package version to be free from the crash issue it created for the builder app. At the same time, there is support for MacOS in the PresenceViewer module code. I built to the "My Mac (built for iPad)" simulator to test that code and it worked without crashing, however I'm not sure if that's sufficient testing to be confident of a release. Should we just merge it and see, or are there tests that should/would validate stability for intended supported platforms?

Copy link
Collaborator

@okdistribute okdistribute left a comment

Choose a reason for hiding this comment

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

This was already approved and merged to the monorepo but never made it here, so seems safe to merge.

We need to get this on the DittoPresenceViewer repo, looks like the source of truth is moving there

@magicwave
Copy link
Contributor Author

magicwave commented Dec 20, 2024

This was already approved and merged to the monorepo but never made it here, so seems safe to merge.
We need to get this on the DittoPresenceViewer repo, looks like the source of truth is moving there
@okdistribute this is not a copy/paste of @konstantinbe's fix, which did not work out of the box. Thus, caution. Also, there is this Slack discussion which may relate to your comment.

@bplattenburg
Copy link
Member

bplattenburg commented Dec 20, 2024

@magicwave for the purposes of this repo, I think we can validate on iOS & tvOS, but we have currently deemed true mac support to be too much effort given no known customer usage. In the broken out presence viewer, it may be a much smaller lift to support mac - I'll test it out there.

"My Mac (built for iPad)" should be Mac Catalyst, which I thought we supported here but the current state of Package.swift seems to say otherwise 🤔

I'll give this a quick sanity check locally, and if all is well will merge & release a new version (likely 7.0.1)

@bplattenburg
Copy link
Member

All works properly as far as I can tell, merging & releasing now

@bplattenburg bplattenburg merged commit 70b923a into main Dec 20, 2024
@bplattenburg bplattenburg deleted the et/fix_presenceView_ditto-retain-cycle branch December 20, 2024 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants