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

Conversation

@LinusU
Copy link
Contributor

@LinusU LinusU commented May 17, 2019

Description

The [application openURL:] was deprecated in iOS 10. Since we are already using the newer API on iOS 10 and newer, this warning can be safely ignored.

Avoids the following output when building a flutter app that uses this plugin:

url_launcher-5.0.2/ios/Classes/UrlLauncherPlugin.m:141:33: warning: 'openURL:' is deprecated: first
      deprecated in iOS 10.0 - Please use openURL:options:completionHandler: instead [-Wdeprecated-declarations]
    BOOL success = [application openURL:url];
                                ^
In module 'UIKit' imported from /Users/linus/coding/eego/ios/Pods/Target Support Files/url_launcher/url_launcher-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:128:1: note: 
      'openURL:' has been explicitly marked deprecated here
- (BOOL)openURL:(NSURL*)url NS_DEPRECATED_IOS(2_0, 10_0, "Please use openURL:options:completionHandler: instead") NS_EXTENSION_UNAVAILABLE_IOS("");
^
3 warnings generated.

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • [n/a] My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
  • All existing and new tests are passing.
  • I updated/added relevant documentation (doc comments with ///).
  • The analyzer (flutter analyze) does not report any problems on my PR.
  • I read and followed the Flutter Style Guide.
  • The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy.
  • I updated CHANGELOG.md to add a description of the change.
  • I signed the CLA.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?

  • Yes, this is a breaking change (please indicate a breaking change in CHANGELOG.md and increment major revision).
  • No, this is not a breaking change.

@LinusU
Copy link
Contributor Author

LinusU commented May 17, 2019

Screenshot 2019-05-17 at 11 41 10

Seems like the build failure is not related to my changes 🤔

LinusU added 2 commits May 17, 2019 16:28
The `[application openURL:]` was deprecated in iOS 10. Since we are already using the newer API on iOS 10 and newer, this warning can be safely ignored.

Avoids the following output when building a flutter app that uses this plugin:

```
url_launcher-5.0.2/ios/Classes/UrlLauncherPlugin.m:141:33: warning: 'openURL:' is deprecated: first
      deprecated in iOS 10.0 - Please use openURL:options:completionHandler: instead [-Wdeprecated-declarations]
    BOOL success = [application openURL:url];
                                ^
In module 'UIKit' imported from /Users/linus/coding/eego/ios/Pods/Target Support Files/url_launcher/url_launcher-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:128:1: note: 
      'openURL:' has been explicitly marked deprecated here
- (BOOL)openURL:(NSURL*)url NS_DEPRECATED_IOS(2_0, 10_0, "Please use openURL:options:completionHandler: instead") NS_EXTENSION_UNAVAILABLE_IOS("");
^
3 warnings generated.
```
Copy link
Contributor

@mklim mklim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for the fix!

@mklim mklim added submit queue The Flutter team is in the process of landing this PR. and removed in review labels Jul 25, 2019
Whoops. Pub switches its semver scheme from 0.x.y+z to x.y.z depending
on whether or not a package is above or below 1.0.0.
@mklim mklim merged commit 4be6f84 into flutter:master Jul 26, 2019
@LinusU LinusU deleted the patch-1 branch July 29, 2019 21:08
@LinusU
Copy link
Contributor Author

LinusU commented Jul 29, 2019

Thanks!

mithun-mondal pushed a commit to bKash-developer/archived_plugins that referenced this pull request Aug 6, 2019
The `[application openURL:]` was deprecated in iOS 10. Since we are already using the newer API on iOS 10 and newer, this warning can be safely ignored.

Avoids the following output when building a flutter app that uses this plugin:

```
url_launcher-5.0.2/ios/Classes/UrlLauncherPlugin.m:141:33: warning: 'openURL:' is deprecated: first
      deprecated in iOS 10.0 - Please use openURL:options:completionHandler: instead [-Wdeprecated-declarations]
    BOOL success = [application openURL:url];
                                ^
In module 'UIKit' imported from /Users/linus/coding/eego/ios/Pods/Target Support Files/url_launcher/url_launcher-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:128:1: note: 
      'openURL:' has been explicitly marked deprecated here
- (BOOL)openURL:(NSURL*)url NS_DEPRECATED_IOS(2_0, 10_0, "Please use openURL:options:completionHandler: instead") NS_EXTENSION_UNAVAILABLE_IOS("");
^
3 warnings generated.
```
julianscheel pushed a commit to jusst-engineering/plugins that referenced this pull request Mar 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes submit queue The Flutter team is in the process of landing this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants