Liftric/cognito-idp

Swap result type

gaebel opened this issue ยท 5 comments

Was there a reason that you created the Result type instead of using the one from the stdlib @benjohnde?

I can't remember. I highly believe that I had some issues in invoking all methods properly on iOS. But feel free to give it a shot!

https://discuss.kotlinlang.org/t/state-of-kotlin-result-vs-kotlin-result/21103

When the result type was introduced, it wasn't possible to use it as a return type, which was probably the reason.

Uff, nice find @Ingwersaft! :)

Unable to export the class to iOS -> Won't do.

I couldn't remember what exactly caused the problem. Export issues kind of rang a bell! We should probably write the origin of our action (i.e. copying parts of the result type into our repo) into the header of said file!