Skip to content

Conversation

MikaelDDavidd
Copy link

The previous implementation was trying to support multiple versions of the app_links package, but it was causing a NoSuchMethodError when using newer versions.

This commit removes the backward compatibility logic and uses the getInitialAppLink method directly, which is available in app_links ^4.0.0 and later.

What kind of change does this PR introduce?

Bug fix, feature, docs update, ...

What is the current behavior?

Please link any relevant issues here.

What is the new behavior?

Feel free to include screenshots if it includes visual changes.

Additional context

Add any other context or screenshots.

The previous implementation was trying to support multiple versions of the app_links package, but it was causing a NoSuchMethodError when using newer versions.

This commit removes the backward compatibility logic and uses the getInitialAppLink method directly, which is available in app_links ^4.0.0 and later.
@coveralls
Copy link

Pull Request Test Coverage Report for Build 16531665980

Details

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.01%) to 80.613%

Files with Coverage Reduction New Missed Lines %
packages/supabase_flutter/lib/src/supabase_auth.dart 2 55.45%
Totals Coverage Status
Change from base Build 16305074338: -0.01%
Covered Lines: 3102
Relevant Lines: 3848

💛 - Coveralls

@MikaelDDavidd MikaelDDavidd changed the title fix(supabase_flutter): use getInitialAppLink from app_links FIX(supabase_flutter): use getInitialAppLink from app_links Jul 26, 2025
@Vinzent03
Copy link
Collaborator

I'm a fan of removing support for the old versions, but this pr sets the version to only ^4.0.0 Although there are newer versions which we want to support as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants