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

[TIMOB-25836] : iOS Using "run-on-main-thread", multiple global event listeners do not work #9908

Merged
merged 9 commits into from May 21, 2018

Conversation

vijaysingh-axway
Copy link
Contributor

@hansemannn
Copy link
Collaborator

Please add unit tests for this. I think the example from JIRA will geko already, together with a finish()

@@ -188,7 +188,7 @@ - (void)fireEvent:(NSArray *)args

DebugLog(@"[DEBUG] Firing app event: %@", type);

NSArray *array = [appListeners objectForKey:type];
NSArray *array = [[appListeners objectForKey:type] copy];
Copy link
Collaborator

Choose a reason for hiding this comment

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

I wonder if we should rather synchronize the appListeners setters, so nothing can be mutated during its write-process.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it will slow the processing. And if there are not more use cases like this, we should avoid.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ok then, taking your word!

@build build added ios and removed needs tests 🚨 labels Mar 8, 2018
@build
Copy link
Contributor

build commented Mar 8, 2018

Messages
📖

💾 Here's the generated SDK zipfile.

Generated by 🚫 dangerJS

Copy link
Collaborator

@hansemannn hansemannn left a comment

Choose a reason for hiding this comment

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

CR approved.

@build build added the ios label Mar 9, 2018
@sgtcoolguy sgtcoolguy modified the milestones: 7.2.0, 7.3.0 May 16, 2018
@hansemannn hansemannn merged commit c850976 into tidev:master May 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants