Skip to content

Commit 5e03e0f

Browse files
[url_launcher] Add explicit imports of UIKit (flutter#6208)
When trying to compile url_launcher_ios as an independent library (for instance, when using Bazel/Blaze) compilation fails due to a missing UIKit import. Presumably this is not a problem when using the Flutter build tools because UIKit is included implicitly.
1 parent 6e83506 commit 5e03e0f

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

packages/url_launcher/url_launcher_ios/CHANGELOG.md

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

3+
* Adds explicit imports for UIKit.
34
* Updates minimum iOS version to 12.0 and minimum Flutter version to 3.16.6.
45

56
## 6.2.4

packages/url_launcher/url_launcher_ios/ios/Classes/Launcher.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
import UIKit
6+
57
/// Protocol for UIApplication methods relating to launching URLs.
68
///
79
/// This protocol exists to allow injecting an alternate implementation for testing.

packages/url_launcher/url_launcher_ios/ios/Classes/URLLauncherPlugin.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// found in the LICENSE file.
44

55
import Flutter
6+
import UIKit
67

78
public final class URLLauncherPlugin: NSObject, FlutterPlugin, UrlLauncherApi {
89

packages/url_launcher/url_launcher_ios/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: url_launcher_ios
22
description: iOS implementation of the url_launcher plugin.
33
repository: https://github.com/flutter/packages/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.2.4
5+
version: 6.2.5
66

77
environment:
88
sdk: ^3.2.3

0 commit comments

Comments
 (0)