Skip to content
This repository was archived by the owner on Sep 30, 2025. It is now read-only.

Commit 434f667

Browse files
committed
demo: fix usage of deprecated APIs
1 parent 38c93ad commit 434f667

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

demo/AppDelegate.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
5656
return YES;
5757
}
5858

59-
- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url
59+
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options
6060
{
6161
NSURLComponents *components = [NSURLComponents componentsWithURL:url resolvingAgainstBaseURL:NO];
6262
if ([components.scheme isEqualToString:@"sptdataloaderdemo"] && [components.host isEqualToString:@"login"]) {

demo/ViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ - (IBAction)logInButtonTouchedUpInside:(id)sender
4141
accountsComponents.queryItems = @[ responseTypeQueryItem, clientIDQueryItem, scopeQueryItem, redirectURIQueryItem, stateQueryItem ];
4242

4343
NSURL *URL = accountsComponents.URL;
44-
[[UIApplication sharedApplication] openURL:URL];
44+
[[UIApplication sharedApplication] openURL:URL options:@{} completionHandler:nil];
4545
}
4646

4747
@end

0 commit comments

Comments
 (0)