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 Xcode 14 warnings. #4146

Merged
merged 3 commits into from
Sep 13, 2022
Merged

Fix Xcode 14 warnings. #4146

merged 3 commits into from
Sep 13, 2022

Conversation

MaximAlien
Copy link
Contributor

Description

PR fixes Xcode 14 related warnings.

mobileEventsManager.sendTurnstileEvent()

DispatchQueue.global().async { [weak self] in
guard let self = self else { return }
Copy link
Contributor Author

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.

Copy link
Contributor

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?

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 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.

@MaximAlien MaximAlien requested a review from a team September 12, 2022 21:31
@@ -0,0 +1,13 @@
{
"images" : [
Copy link
Contributor Author

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.

@MaximAlien MaximAlien self-assigned this Sep 12, 2022
@MaximAlien MaximAlien merged commit 1ceff2a into main Sep 13, 2022
@MaximAlien MaximAlien deleted the maxim/fix-xcode-14-warnings branch September 13, 2022 20:25
@MaximAlien MaximAlien added this to the v2.8 milestone Sep 13, 2022
ShanMa1991 pushed a commit that referenced this pull request Sep 15, 2022
ShanMa1991 pushed a commit that referenced this pull request Sep 15, 2022
ShanMa1991 pushed a commit that referenced this pull request Sep 15, 2022
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.

2 participants