-
Notifications
You must be signed in to change notification settings - Fork 313
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 Xcode 14 warnings. #4146
Fix Xcode 14 warnings. #4146
Conversation
mobileEventsManager.sendTurnstileEvent() | ||
|
||
DispatchQueue.global().async { [weak self] in | ||
guard let self = self else { return } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes:
/Users/distiller/project/Sources/MapboxMobileEvents/MMELocationManager.m:60: warning run: This method can cause UI unresponsiveness if invoked on the main thread. Instead, consider waiting for the `-locationManagerDidChangeAuthorization:` callback and checking `authorizationStatus` first.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it safe to be called from the background thread?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so, but fix on MapboxMobileEvents will be needed. I've added ticket on their side in mapbox/mapbox-events-ios#348. Will all temporary comment as well.
@@ -0,0 +1,13 @@ | |||
{ | |||
"images" : [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needed to fix build error when running NavigationViewExample
.
Description
PR fixes Xcode 14 related warnings.