Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 76ea8c8

Browse files
authored
[url_launcher_ios] Update minimum Flutter version to 3.3 and iOS 11 (#7110)
* [url_launcher_ios] Update minimum Flutter version to 3.3 and iOS 11 * super
1 parent 55f2573 commit 76ea8c8

File tree

19 files changed

+55
-51
lines changed

19 files changed

+55
-51
lines changed

packages/url_launcher/url_launcher/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
## NEXT
1+
## 6.1.9
22

33
* Updates minimum Flutter version to 3.0.
4+
* Updates iOS minimum version in README.
45

56
## 6.1.8
67

packages/url_launcher/url_launcher/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
A Flutter plugin for launching a URL.
88

9-
| | Android | iOS | Linux | macOS | Web | Windows |
10-
|-------------|---------|------|-------|--------|-----|-------------|
11-
| **Support** | SDK 16+ | 9.0+ | Any | 10.11+ | Any | Windows 10+ |
9+
| | Android | iOS | Linux | macOS | Web | Windows |
10+
|-------------|---------|-------|-------|--------|-----|-------------|
11+
| **Support** | SDK 16+ | 11.0+ | Any | 10.11+ | Any | Windows 10+ |
1212

1313
## Usage
1414

packages/url_launcher/url_launcher/example/ios/Flutter/AppFrameworkInfo.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@
2525
<string>arm64</string>
2626
</array>
2727
<key>MinimumOSVersion</key>
28-
<string>9.0</string>
28+
<string>11.0</string>
2929
</dict>
3030
</plist>

packages/url_launcher/url_launcher/example/ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Uncomment this line to define a global platform for your project
2-
# platform :ios, '9.0'
2+
# platform :ios, '11.0'
33

44
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
55
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

packages/url_launcher/url_launcher/example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 46;
6+
objectVersion = 54;
77
objects = {
88

99
/* Begin PBXBuildFile section */
@@ -169,7 +169,7 @@
169169
97C146E61CF9000F007C117D /* Project object */ = {
170170
isa = PBXProject;
171171
attributes = {
172-
LastUpgradeCheck = 1100;
172+
LastUpgradeCheck = 1300;
173173
ORGANIZATIONNAME = "The Flutter Authors";
174174
TargetAttributes = {
175175
97C146ED1CF9000F007C117D = {
@@ -213,10 +213,12 @@
213213
/* Begin PBXShellScriptBuildPhase section */
214214
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
215215
isa = PBXShellScriptBuildPhase;
216+
alwaysOutOfDate = 1;
216217
buildActionMask = 2147483647;
217218
files = (
218219
);
219220
inputPaths = (
221+
"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
220222
);
221223
name = "Thin Binary";
222224
outputPaths = (
@@ -227,6 +229,7 @@
227229
};
228230
9740EEB61CF901F6004384FC /* Run Script */ = {
229231
isa = PBXShellScriptBuildPhase;
232+
alwaysOutOfDate = 1;
230233
buildActionMask = 2147483647;
231234
files = (
232235
);
@@ -340,7 +343,7 @@
340343
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
341344
GCC_WARN_UNUSED_FUNCTION = YES;
342345
GCC_WARN_UNUSED_VARIABLE = YES;
343-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
346+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
344347
MTL_ENABLE_DEBUG_INFO = YES;
345348
ONLY_ACTIVE_ARCH = YES;
346349
SDKROOT = iphoneos;
@@ -390,7 +393,7 @@
390393
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
391394
GCC_WARN_UNUSED_FUNCTION = YES;
392395
GCC_WARN_UNUSED_VARIABLE = YES;
393-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
396+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
394397
MTL_ENABLE_DEBUG_INFO = NO;
395398
SDKROOT = iphoneos;
396399
TARGETED_DEVICE_FAMILY = "1,2";

packages/url_launcher/url_launcher/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1100"
3+
LastUpgradeVersion = "1300"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

packages/url_launcher/url_launcher/example/ios/Runner/Info.plist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,9 @@
4545
</array>
4646
<key>UIViewControllerBasedStatusBarAppearance</key>
4747
<false/>
48+
<key>CADisableMinimumFrameDurationOnPhone</key>
49+
<true/>
50+
<key>UIApplicationSupportsIndirectInputEvents</key>
51+
<true/>
4852
</dict>
4953
</plist>

packages/url_launcher/url_launcher/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: Flutter plugin for launching a URL. Supports
33
web, phone, SMS, and email schemes.
44
repository: https://github.com/flutter/plugins/tree/main/packages/url_launcher/url_launcher
55
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+url_launcher%22
6-
version: 6.1.8
6+
version: 6.1.9
77

88
environment:
99
sdk: ">=2.14.0 <3.0.0"

packages/url_launcher/url_launcher_ios/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
## NEXT
1+
## 6.1.0
22

3-
* Updates minimum Flutter version to 3.0.
3+
* Updates minimum Flutter version to 3.3 and iOS 11.
44

55
## 6.0.18
66

packages/url_launcher/url_launcher_ios/example/ios/Flutter/AppFrameworkInfo.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@
2525
<string>arm64</string>
2626
</array>
2727
<key>MinimumOSVersion</key>
28-
<string>9.0</string>
28+
<string>11.0</string>
2929
</dict>
3030
</plist>

packages/url_launcher/url_launcher_ios/example/ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Uncomment this line to define a global platform for your project
2-
# platform :ios, '9.0'
2+
# platform :ios, '11.0'
33

44
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
55
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

packages/url_launcher/url_launcher_ios/example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 46;
6+
objectVersion = 54;
77
objects = {
88

99
/* Begin PBXBuildFile section */
@@ -269,7 +269,7 @@
269269
97C146E61CF9000F007C117D /* Project object */ = {
270270
isa = PBXProject;
271271
attributes = {
272-
LastUpgradeCheck = 1100;
272+
LastUpgradeCheck = 1300;
273273
ORGANIZATIONNAME = "The Flutter Authors";
274274
TargetAttributes = {
275275
97C146ED1CF9000F007C117D = {
@@ -339,10 +339,12 @@
339339
/* Begin PBXShellScriptBuildPhase section */
340340
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
341341
isa = PBXShellScriptBuildPhase;
342+
alwaysOutOfDate = 1;
342343
buildActionMask = 2147483647;
343344
files = (
344345
);
345346
inputPaths = (
347+
"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
346348
);
347349
name = "Thin Binary";
348350
outputPaths = (
@@ -353,6 +355,7 @@
353355
};
354356
9740EEB61CF901F6004384FC /* Run Script */ = {
355357
isa = PBXShellScriptBuildPhase;
358+
alwaysOutOfDate = 1;
356359
buildActionMask = 2147483647;
357360
files = (
358361
);
@@ -517,7 +520,7 @@
517520
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
518521
GCC_WARN_UNUSED_FUNCTION = YES;
519522
GCC_WARN_UNUSED_VARIABLE = YES;
520-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
523+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
521524
MTL_ENABLE_DEBUG_INFO = YES;
522525
ONLY_ACTIVE_ARCH = YES;
523526
SDKROOT = iphoneos;
@@ -567,7 +570,7 @@
567570
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
568571
GCC_WARN_UNUSED_FUNCTION = YES;
569572
GCC_WARN_UNUSED_VARIABLE = YES;
570-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
573+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
571574
MTL_ENABLE_DEBUG_INFO = NO;
572575
SDKROOT = iphoneos;
573576
TARGETED_DEVICE_FAMILY = "1,2";

packages/url_launcher/url_launcher_ios/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1100"
3+
LastUpgradeVersion = "1300"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

packages/url_launcher/url_launcher_ios/example/ios/Runner/Info.plist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,9 @@
4545
</array>
4646
<key>UIViewControllerBasedStatusBarAppearance</key>
4747
<false/>
48+
<key>CADisableMinimumFrameDurationOnPhone</key>
49+
<true/>
50+
<key>UIApplicationSupportsIndirectInputEvents</key>
51+
<true/>
4852
</dict>
4953
</plist>

packages/url_launcher/url_launcher_ios/example/lib/main.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ void main() {
1414
}
1515

1616
class MyApp extends StatelessWidget {
17-
const MyApp({Key? key}) : super(key: key);
17+
const MyApp({super.key});
1818

1919
@override
2020
Widget build(BuildContext context) {
@@ -29,7 +29,7 @@ class MyApp extends StatelessWidget {
2929
}
3030

3131
class MyHomePage extends StatefulWidget {
32-
const MyHomePage({Key? key, required this.title}) : super(key: key);
32+
const MyHomePage({super.key, required this.title});
3333
final String title;
3434

3535
@override

packages/url_launcher/url_launcher_ios/example/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ description: Demonstrates how to use the url_launcher plugin.
33
publish_to: none
44

55
environment:
6-
sdk: ">=2.14.0 <3.0.0"
7-
flutter: ">=3.0.0"
6+
sdk: '>=2.18.0 <3.0.0'
7+
flutter: ">=3.3.0"
88

99
dependencies:
1010
flutter:

packages/url_launcher/url_launcher_ios/ios/Classes/FLTURLLauncherPlugin.m

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
#import "FLTURLLauncherPlugin.h"
88

9-
API_AVAILABLE(ios(9.0))
109
@interface FLTURLLaunchSession : NSObject <SFSafariViewControllerDelegate>
1110

1211
@property(copy, nonatomic) FlutterResult flutterResult;
@@ -30,7 +29,7 @@ - (instancetype)initWithUrl:url withFlutterResult:result {
3029
}
3130

3231
- (void)safariViewController:(SFSafariViewController *)controller
33-
didCompleteInitialLoad:(BOOL)didLoadSuccessfully API_AVAILABLE(ios(9.0)) {
32+
didCompleteInitialLoad:(BOOL)didLoadSuccessfully {
3433
if (didLoadSuccessfully) {
3534
self.flutterResult(@YES);
3635
} else {
@@ -41,7 +40,7 @@ - (void)safariViewController:(SFSafariViewController *)controller
4140
}
4241
}
4342

44-
- (void)safariViewControllerDidFinish:(SFSafariViewController *)controller API_AVAILABLE(ios(9.0)) {
43+
- (void)safariViewControllerDidFinish:(SFSafariViewController *)controller {
4544
[controller dismissViewControllerAnimated:YES completion:nil];
4645
self.didFinish();
4746
}
@@ -52,7 +51,6 @@ - (void)close {
5251

5352
@end
5453

55-
API_AVAILABLE(ios(9.0))
5654
@interface FLTURLLauncherPlugin ()
5755

5856
@property(strong, nonatomic) FLTURLLaunchSession *currentSession;
@@ -99,24 +97,16 @@ - (void)launchURL:(NSString *)urlString
9997
NSURL *url = [NSURL URLWithString:urlString];
10098
UIApplication *application = [UIApplication sharedApplication];
10199

102-
if (@available(iOS 10.0, *)) {
103-
NSNumber *universalLinksOnly = call.arguments[@"universalLinksOnly"] ?: @0;
104-
NSDictionary *options = @{UIApplicationOpenURLOptionUniversalLinksOnly : universalLinksOnly};
105-
[application openURL:url
106-
options:options
107-
completionHandler:^(BOOL success) {
108-
result(@(success));
109-
}];
110-
} else {
111-
#pragma clang diagnostic push
112-
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
113-
BOOL success = [application openURL:url];
114-
#pragma clang diagnostic pop
115-
result(@(success));
116-
}
100+
NSNumber *universalLinksOnly = call.arguments[@"universalLinksOnly"] ?: @0;
101+
NSDictionary *options = @{UIApplicationOpenURLOptionUniversalLinksOnly : universalLinksOnly};
102+
[application openURL:url
103+
options:options
104+
completionHandler:^(BOOL success) {
105+
result(@(success));
106+
}];
117107
}
118108

119-
- (void)launchURLInVC:(NSString *)urlString result:(FlutterResult)result API_AVAILABLE(ios(9.0)) {
109+
- (void)launchURLInVC:(NSString *)urlString result:(FlutterResult)result {
120110
NSURL *url = [NSURL URLWithString:urlString];
121111
self.currentSession = [[FLTURLLaunchSession alloc] initWithUrl:url withFlutterResult:result];
122112
__weak typeof(self) weakSelf = self;
@@ -128,7 +118,7 @@ - (void)launchURLInVC:(NSString *)urlString result:(FlutterResult)result API_AVA
128118
completion:nil];
129119
}
130120

131-
- (void)closeWebViewWithResult:(FlutterResult)result API_AVAILABLE(ios(9.0)) {
121+
- (void)closeWebViewWithResult:(FlutterResult)result {
132122
if (self.currentSession != nil) {
133123
[self.currentSession close];
134124
}

packages/url_launcher/url_launcher_ios/ios/url_launcher_ios.podspec

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ A Flutter plugin for making the underlying platform (Android or iOS) launch a UR
1616
s.source_files = 'Classes/**/*'
1717
s.public_header_files = 'Classes/**/*.h'
1818
s.dependency 'Flutter'
19-
20-
s.platform = :ios, '9.0'
19+
s.platform = :ios, '11.0'
2120
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
2221
end

packages/url_launcher/url_launcher_ios/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ name: url_launcher_ios
22
description: iOS implementation of the url_launcher plugin.
33
repository: https://github.com/flutter/plugins/tree/main/packages/url_launcher/url_launcher_ios
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+url_launcher%22
5-
version: 6.0.18
5+
version: 6.1.0
66

77
environment:
8-
sdk: ">=2.14.0 <3.0.0"
9-
flutter: ">=3.0.0"
8+
sdk: '>=2.18.0 <3.0.0'
9+
flutter: ">=3.3.0"
1010

1111
flutter:
1212
plugin:

0 commit comments

Comments
 (0)