Skip to content

fix: fixing issue with iOS black screen where message queue constructor would get stripped out [MTT-2663] #592

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

Merged
merged 1 commit into from
Apr 6, 2022

Conversation

SamuelBellomo
Copy link
Contributor

Description

Instead of trying to dynamically spawn message queues using reflection, we're now instantiating them manually in application controller. This way, they won't get stripped out by IL2CPP's code stripping (which can't be deactivated).
Another solution could have been to use ref types for messages instead of value types, since those won't get stripped in generic types. However this creates allocations each time we're sending a message internally which is no bueno.

Issue Number(s)

MTT-2663

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • JIRA ticket ID is in the PR title or at least one commit message
  • Include the ticket ID number within the body message of the PR to create a hyperlink

Instead of trying to dynamically spawn message queues using reflection, we're now instantiating them manually in application controller. This way, they won't get stripped out by IL2CPP's code stripping (which can't be deactivated).
Another solution could have been to use ref types for messages instead of value types, since those won't get stripped in generic types. However this creates allocations each time we're sending a message internally.
@SamuelBellomo SamuelBellomo added 0-URGENT Blocker for a release and needs to be merged ASAP 1-Needs Review PR needs attention from the assignee and reviewers labels Apr 5, 2022
@pdeschain pdeschain added the 2-One More Review One review in, one to go label Apr 6, 2022
@LPLafontaineB LPLafontaineB added 3-Good to Merge and removed 1-Needs Review PR needs attention from the assignee and reviewers 2-One More Review One review in, one to go labels Apr 6, 2022
@SamuelBellomo SamuelBellomo merged commit d914988 into develop Apr 6, 2022
@SamuelBellomo SamuelBellomo deleted the sam/fix/fixing-DI-issue-with-iOS branch April 6, 2022 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0-URGENT Blocker for a release and needs to be merged ASAP 3-Good to Merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants