invertase / flutter_desktop_webview_auth

WebView OAuth flows for desktop flutter apps
Apache License 2.0
34 stars 35 forks source link

Conflict with jnschulze webview_windows #20

Closed memotai-admin closed 2 years ago

memotai-admin commented 2 years ago

When try to use with this plugin, we got the following error:

CMake Error at flutter/ephemeral/.plugin_symlinks/webview_windows/windows/CMakeLists.txt:33 (add_custom_target):
  add_custom_target cannot create target "DEPENDENCIES_DOWNLOAD" because
  another target with the same name already exists.  The existing target is a
  custom target created in source directory
  "C:/Users/dev/git/poc_issue_webview/windows/flutter/ephemeral/.plugin_symlinks/desktop_webview_auth/windows".
  See documentation for policy CMP0002 for more details.

CMake Error at flutter/ephemeral/.plugin_symlinks/webview_windows/windows/CMakeLists.txt:34 (add_custom_command):
  TARGET 'DEPENDENCIES_DOWNLOAD' was not created in this directory.

Steps to reproduce:

On new clean folder, open a new terminal and type in order:

flutter create poc_issue_webview cd poc_issue_webview flutter pub add webview_windows flutter pub add desktop_webview_auth flutter run

Select Windows as target

Then you get the error.

https://github.com/jnschulze/flutter-webview-windows/issues/127

pr-Mais commented 2 years ago

Thanks for reporting, I created a new Flutter project and added the latest versions of both plugins and it's working, a PR was merged fixing the conflict issue on webview_windows https://github.com/jnschulze/flutter-webview-windows/pull/129, will push a similar fix here to avoid further conflicts with any other plugin using WebView2.