Open Sesa1988 opened 1 year ago
I forked the repos, updated the dependencies and the build error is gone.
For flutter_multi_instance_handler I forked another fork with a windows fix and updated the dependencies then but Im not sure if this is the right way, or if it should work on the original repositories or how to continue here.
url_protocol:
git:
url: https://github.com/Sesa1988/flutter_url_protocol.git
ref: main
# multi_instance_handler: ^1.0.0
multi_instance_handler:
git:
url: https://github.com/Sesa1988/flutter_multi_instance_handler_windows_fix.git
ref: main
Update: This still does not work, (https://github.com/supabase-community/supabase-flutter/issues/261) did not fixed this. @dshukertjr
Could you reproduce this issue with my failing build and configuration? @dshukertjr
Without multi_instance_handler
, does the app just not open at all? What opens instead?
Unfortunately I don't have a windows device handy, so I cannot reproduce it myself, but we use app_links under the hood to handle deep links, so might be worth opening an issue there?
Without
multi_instance_handler
, does the app just not open at all? What opens instead?Unfortunately I don't have a windows device handy, so I cannot reproduce it myself, but we use app_links under the hood to handle deep links, so might be worth opening an issue there?
I'm not even sure if my windows specific changes are correct, especially the copy&paste part with the cpp and .h files. Without this package the build works but the redirection back.
I tried to fix the dependencies with my forks but only the build error is gone but authentication still does not work.
I think there is not enough documentation for authentication especially for all platforms. Maybe even a flutter example app with all auth features implemented for mobile, desktop and web would be great.
Without
multi_instance_handler
, does the app just not open at all? What opens instead?Unfortunately I don't have a windows device handy, so I cannot reproduce it myself, but we use app_links under the hood to handle deep links, so might be worth opening an issue there?
Thats the build error I get with url_protocol: ^1.0.0, multi_instance_handler: ^1.0.0, supabase_flutter: ^1.1.0
/C:/devtools/flutter/.pub-cache/hosted/pub.dartlang.org/multi_instance_handler-1.0.0/lib/src/controller.dart(56,13): error GE5CFE876: The method 'setMockMethodCallHandler' isn't defined for the class 'MethodChannel'. [C:\Solutions\Flutter\cryptowulf\build\windows\flutter\flutter_assemble.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(245,5): error MSB8066: Custom build for 'C:\Solutions\Flutter\cryptowulf\build\windows\CMakeFiles\30c876474e0d9b104aaa7a0057369414\flutter_windows.dll.rule;C:\Solutions\Flutter\cryptowulf\build\windows\CMakeFiles\325871e82e40f1229f3ac302a8257194\flutter_assemble.rule' exited with code 1. [C:\Solutions\Flutter\cryptowulf\build\windows\flutter\flutter_assemble.vcxproj]
Exception: Build process failed.
I forked a branch from a guy that fixed this build error on his branch, at least it looks like this from the changes he made but the authentication still does not work.
url_protocol:
git:
url: https://github.com/Sesa1988/flutter_url_protocol.git
ref: main
multi_instance_handler:
git:
url: https://github.com/Sesa1988/flutter_multi_instance_handler_windows_fix.git
ref: main
Maybe my configuration is just wrong? At least it looks like it should work this way.
Describe the bug I'm trying to make windows provider auth work. It works on all mobile platforms and macOS.
I'm getting following error on build:
error GE5CFE876: The method 'setMockMethodCallHandler' isn't defined for the class 'MethodChannel'. [C:\Solutions\Flutter\cryptowulf\build\windows\flutter\flutter_assemble.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(245,5): error MSB8066: Custom build for 'C:\Solutions\Flutter\cryptowulf\build\windows\CMakeFiles\30c876474e0d9b104aaa7a0057369414\flutter_windows.dll.rule;C:\Solutions\Flutter\cryptowulf\build\windows\CMakeFiles\325871e82e40f1229f3ac302a8257194\flutter_assemble.rule' exited with code 1. [C:\Solutions\Flutter\cryptowulf\build\windows\flutter\flutter_assemble.vcxproj] Exception: Build process failed.
Without using multi_instance_handler the build works but no back redirect to the app happens.
It is also not clear to me what we have to do with that plugin, just close the second instance like this?
pubspec
supabase_flutter: ^1.0.0-dev.9 url_protocol: ^1.0.0 multi_instance_handler: ^1.0.0
main_desktop.dart
auth service (for all platforms)
win32_window.cpp
``` #include "app_links_windows/app_links_windows_plugin.h" #include "win32_window.h" #includewin32_window.h
``` #ifndef RUNNER_WIN32_WINDOW_H_ #define RUNNER_WIN32_WINDOW_H_ #includeEdit: maybe this has some relation, at this point I dont know what version ai tested for what.
https://github.com/supabase-community/supabase-flutter/issues/261