This repository was archived by the owner on Feb 22, 2023. It is now read-only.
File tree 3 files changed +13
-7
lines changed
3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change
1
+ ## [ 0.3.5] - 2017-05-8
2
+
3
+ * Workaround for failing dynamic check in Xcode 7/sdk version 9.
4
+
1
5
## [ 0.3.4] - 2017-05-08
2
6
3
7
* Add test.
Original file line number Diff line number Diff line change @@ -35,16 +35,18 @@ - (BOOL)canLaunchURL:(NSString*)urlString {
35
35
}
36
36
37
37
- (void )launchURL : (NSString *)urlString result : (FlutterResult)result {
38
- NSURL * url = [NSURL URLWithString: urlString];
39
- UIApplication* application = [UIApplication sharedApplication ];
40
- if ([application respondsToSelector: @selector (openURL:options:completionHandler: )]) {
41
- // iOS 10 and above
38
+ NSURL * url = [NSURL URLWithString: urlString];
39
+ UIApplication* application = [UIApplication sharedApplication ];
40
+
41
+ // Using ifdef as workaround to support running with Xcode 7.0 and sdk version 9
42
+ // where the dynamic check fails.
43
+ #if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_10_0
42
44
[application openURL: url options: @{} completionHandler: ^(BOOL success) {
43
45
[self sendResult: success result: result url: url];
44
46
}];
45
- } else {
47
+ # else
46
48
[self sendResult: [application openURL: url] result: result url: url];
47
- }
49
+ # endif
48
50
}
49
51
50
52
- (void )sendResult : (BOOL )success result : (FlutterResult)result url : (NSURL *)url {
Original file line number Diff line number Diff line change 1
1
name : url_launcher
2
2
3
- version : 0.3.4
3
+ version : 0.3.5
4
4
description : A Flutter plugin for launching a URL
5
5
author :
Flutter Team <[email protected] >
6
6
homepage : https://github.com/flutter/plugins
You can’t perform that action at this time.
0 commit comments