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

Conversation

@gaaclarke
Copy link
Member

Description

If you look at the first commit in the PR, it's just relanding #22337. The second commit turns it off by default unless you turn it on with the Info.plist.

Related Issues

flutter/flutter#66294 (comment)

Tests

I added the following tests:

Same tests we had for #22337

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.
  • I signed the CLA.
  • I read and followed the C++, Objective-C, Java style guides for the engine.
  • I read the tree hygiene wiki page, which explains my responsibilities.
  • I updated/added relevant documentation.
  • All existing and new tests are passing.
  • I am willing to follow-up on review comments in a timely manner.

Reviewer Checklist

Breaking Change

Did any tests fail when you ran them? Please read handling breaking changes.

Copy link
Contributor

@chunhtai chunhtai left a comment

Choose a reason for hiding this comment

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

The logic looks good, just a concern about the naming


@implementation FlutterAppDelegateTest

- (void)testLaunchUrl {
Copy link
Contributor

Choose a reason for hiding this comment

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

Just curious, where do we mock FlutterDeepLinkingEnabled in this test?

Copy link
Member Author

Choose a reason for hiding this comment

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

I didn't, that's why it was failing. Fixed it.


static BOOL IsDeepLinkingEnabled() {
NSDictionary* infoDict = [[NSBundle mainBundle] infoDictionary];
NSNumber* isEnabled = [infoDict objectForKey:@"FlutterDeepLinkingEnabled"];
Copy link
Contributor

Choose a reason for hiding this comment

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

The key name may be confusing. Developers can still do their own deeplinking if they write custom plugin. this is really for the default push route behavior.

@johnpryan any suggestion for the name?

Choose a reason for hiding this comment

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

That's a lot to fit into a name, I think we'll have provide more context in our docs (either the API docs or on flutter.dev)

Copy link
Member Author

Choose a reason for hiding this comment

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

@chunhtai sound good? We keep it like this and define it in our docs? I agree with john that it is impossible to convey all nuances in so few characters.

Copy link
Contributor

Choose a reason for hiding this comment

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

yes that sounds good to me, I have updated the android part to match

@gaaclarke gaaclarke marked this pull request as ready for review November 9, 2020 18:09
@gaaclarke gaaclarke requested a review from chunhtai November 9, 2020 18:09
Copy link
Contributor

@chunhtai chunhtai left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes platform-ios waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants