-
Notifications
You must be signed in to change notification settings - Fork 1
[HGNN-10153] xcode 버전업(iOS 18 SDK or later) 대응 #11
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
base: master
Are you sure you want to change the base?
Changes from all commits
5cada50
e37c1c8
ba06c1c
fe94d25
3c76a69
69a8328
3ab2bc6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,7 +46,7 @@ - (void)performActivity { | |
NSURL *chromeURL = [NSURL URLWithString:chromeURLString]; | ||
|
||
// Open the URL with Chrome. | ||
[[UIApplication sharedApplication] openURL:chromeURL]; | ||
[[UIApplication sharedApplication] openURL:chromeURL options:@{} completionHandler:nil]; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
} | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,8 +25,9 @@ - (BOOL)canPerformWithActivityItems:(NSArray *)activityItems { | |
} | ||
|
||
- (void)performActivity { | ||
BOOL completed = [[UIApplication sharedApplication] openURL:self.URLToOpen]; | ||
[self activityDidFinish:completed]; | ||
[[UIApplication sharedApplication] openURL:self.URLToOpen options:@{} completionHandler:^(BOOL success) { | ||
[self activityDidFinish:success]; | ||
}]; | ||
Comment on lines
+28
to
+30
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
} | ||
|
||
@end |
This file was deleted.
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.
With the introduction of
openURL:options:completionHandler:
, is theNSNotificationCenter
fallback still necessary? It might be redundant, or it might be handling a specific edge case. Consider adding a comment explaining why this fallback is still needed, or removing it if it's no longer required. It's not clear what the purpose of posting the notification is, since the app is already attempting to open the URL. Perhaps it's to notify other parts of the app that the URL is being opened, but this should be clarified.