ThexXTURBOXx / flutter_web_auth_2

Flutter plugin for authenticating a user with a web service
https://pub.dev/packages/flutter_web_auth_2
MIT License
53 stars 54 forks source link

Flutter Web Auth 2.1.3 does not use the correct Flutter Web Auth 2 Platform Interfaces #41

Closed Knupper closed 1 year ago

Knupper commented 1 year ago

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior:

  1. Update the version to ^2.1.3
  2. try to run tests
  3. try to run the code

Expected behavior

The minor version update should work without any problems

Actual behavior

it does not work for chrome or tests are not running

: Error: The method 'FlutterWebAuth2WindowsPlugin.authenticate' doesn't have the named parameter 'contextArgs' of overridden method 'FlutterWebAuth2Platform.authenticate'.
flutter_web_auth_2_windows.dart:55
  Future<String> authenticate({
                 ^
: Context: This is the overridden method ('authenticate').
flutter_web_auth_2_platform_interface.dart:26

Device (please complete the following information!)

Additional context

the newest version still points on the flutter web auth 2 platform version 2.1.0 instead of 2.1.3. As this is a breaking change we should use semantic versioning instead of increasing a minor version. so it should be 2.2.0

Checklist

ThexXTURBOXx commented 1 year ago

This issue seems to be semi-valid. flutter_web_auth_2 is using proper Caret Syntax which should enable you to properly upgrade the dependencies using flutter pub upgrade. If you are only using flutter pub get, this won't work. Because of this, the only thing that is wrong right now is the constraint flutter_web_auth_2_platform_interface: ^2.1.0 (which, again, should not matter if you are doing a proper upgrade). The next version will properly increase the needed version. Also, your PR only increases the minor version (see SemVer) which would also just indicate that the functionality is compatible with the current API (which it kind of is if you properly update). Hence, only the patch update :)

ThexXTURBOXx commented 1 year ago

I have increased the version even though it should be unnecessary. I hope this is fixed now :)