-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[url_launcher] Update readme for URL schemes on iOS #3252
[url_launcher] Update readme for URL schemes on iOS #3252
Conversation
@@ -2,7 +2,7 @@ name: url_launcher | |||
description: Flutter plugin for launching a URL on Android and iOS. Supports | |||
web, phone, SMS, and email schemes. | |||
homepage: https://github.com/flutter/plugins/tree/master/packages/url_launcher/url_launcher | |||
version: 5.7.10 | |||
version: 5.7.10+1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The next PATCH version must be 5.7.11
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update doc can be just bumped by +1
Example
https://pub.dev/packages/image_picker/changelog#06710
https://pub.dev/packages/url_launcher/changelog#0421
https://pub.dev/packages/google_maps_flutter/changelog#052113
Also example from my last PR
https://github.com/flutter/plugins/pull/2932/files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For package versions > 1.0.0, we shouldn't do +z .
Details in https://dart.dev/tools/pub/versioning#semantic-versions
Running version check for changed packages
packages/url_launcher/url_launcher/pubspec.yaml incorrectly updated version.
HEAD: 5.7.10+1, master: 5.7.10.
Allowed versions: {6.0.0: NextVersionType.BREAKING_MAJOR, 6.0.0-nullsafety: NextVersionType.MAJOR_NULLSAFETY_PRE_RELEASE, 5.8.0-nullsafety: NextVersionType.MINOR_NULLSAFETY_PRE_RELEASE, 5.8.0: NextVersionType.MINOR, 5.7.11: NextVersionType.PATCH}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's interesting, made the changes required.
Thank you
|
||
``` | ||
<key>LSApplicationQueriesSchemes</key> | ||
<array> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this cover other Schemes like mailto
, tel
and sms
, or we must add new items for this property?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those schemes are supported without adding this so no new items are required
CC: @cyanglaz |
@hamdikahloun |
hi @TahaTesser |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
a9ab05d
to
e17673e
Compare
@hamdikahloun |
LGTM |
LGTM |
|
||
### iOS | ||
|
||
Add the following keys to your _Info.plist_ file, located in `<project root>/ios/Runner/Info.plist`: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not an accurate summary of the requirement, and may still cause confusion. The correct description is that the scheme of any URL they pass to canLaunch
should be listed, and the README should say that. You can give the below as an example, but you should make clear that it's an example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made the changes, thanks!
## Installation | ||
|
||
### iOS | ||
Add scheme for any URL passed on `canLaunch` to your _Info.plist_ file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be "Add any URL scheme passed to canLaunch
in your Info.plist file."
002d571
to
b3ba69b
Compare
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with nits
## Installation | ||
|
||
### iOS | ||
Add any URL scheme passed to canLaunch in your Info.plist file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nits:
- Add `s around canLaunch
- s/in your/as
LSApplicationQueriesSchemes
entries in your/
</array> | ||
``` | ||
|
||
See [canOpenURL](https://developer.apple.com/documentation/uikit/uiapplication/1622952-canopenurl) for more details. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: the standard way to refer to an OjbC method without context includes the class, and the full signature (which includes the -
and the :
), like: -[UIApplication canOpenURL:]
See [`-[UIApplication canOpenURL:]`](...) for more details.
b3ba69b
to
2781fd9
Compare
@stuartmorgan |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
I've restarted the failed test, since it was a network issue. |
Description
Add instructions for iOS, for targeting iOS 9.0 and higher.


Note:
All new projects 1.22+ targets iOS 9.0 by default
Related Issues
Related to flutter/flutter#65936
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.///
).flutter analyze
) does not report any problems on my PR.Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?