Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDK not compatible with Activities written in Kotlin #16

Open
tvdwal opened this issue Nov 21, 2018 · 0 comments
Open

SDK not compatible with Activities written in Kotlin #16

tvdwal opened this issue Nov 21, 2018 · 0 comments

Comments

@tvdwal
Copy link

tvdwal commented Nov 21, 2018

When a successful result has been received by the SDK it uses Gson to convert the JSON code into a class. To get the class type the following code is executed in HppManagerFragment in the callbackHandler():

method.getParameterTypes()[0]

When mListener is written in Java, this code will complete successfully. When mListnener is written in Kotlin, instead of the ConsumerResponse type, 'Object' is returned, causing Gson to throw a ClassCastException.

Please make your SDK compatible with Kotlin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant