gibahjoe / keycloak_flutter

Keycloak package for easy integration with flutter applications
BSD 3-Clause "New" or "Revised" License
24 stars 24 forks source link

This library is not compatible with --release mode #17

Closed TMSantos closed 1 year ago

TMSantos commented 2 years ago

it throws this error at initialization:

Screenshot 2022-09-06 at 12 53 48

--debug works --profile doesn't work --release doesn't work

I guess is because keycloak.js gets obfuscated, changing it's method names

Any ideias?

jonl-percsolutions-com commented 2 years ago

I was running into this issue as well. Cloned the repo and discovered that KeycloakPromise extends Future, which is causing the issue because the JS promise is not a future, which causes this exception to happen when the future chaining checks if the returned value is a future.

gibahjoe commented 1 year ago

This has seen been resolved. Closing. Please create another issue if thats not the case.