Skip to content

SDK not compatible with Activities written in Kotlin #16

@tvdwal

Description

@tvdwal

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions