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

Objects and Enums defined in Kotlin are undefined #122

Open
PedroAnibarro1 opened this issue Jul 27, 2020 · 4 comments
Open

Objects and Enums defined in Kotlin are undefined #122

PedroAnibarro1 opened this issue Jul 27, 2020 · 4 comments

Comments

@PedroAnibarro1
Copy link

PedroAnibarro1 commented Jul 27, 2020

Hi! I'm having problems with accessing kotlin enums or objects. For example, I noticed all com.stripe.android.view.PaymentFlowExtras options are undefined and this is causing some problems with the plugin. I notices that same was happening with the brand types and was fixed in latest release 6.6.2 by replacing the references to the kotlin enums to static strings. Could this be the cause too? Problem referencing kotlin enums?

@PedroAnibarro1 PedroAnibarro1 changed the title Enums defined in Kotlin are undefined Objects and Enums defined in Kotlin are undefined Jul 27, 2020
@PedroAnibarro1
Copy link
Author

I have confirmed that this does not happen with android-runtime 6.2.0. It starts happening with android-runtime 6.3.0.

@RobertGardner
Copy link
Collaborator

It's likely you are having problems because of Kotlin. Stripe migrated their Android SDK to Kotlin, starting with v13 of their SDK. Unfortunately, there are problems with NativeScript's support of Kotlin (see this bug). The bugs are bad enough that I can't work around them and had to pause my efforts to upgrade the plugin to the latest Android Stripe SDK until they are fixed.

From what I can see, it looks like {N} development has slowed considerably in the last few months. There has been no activity on my bug report since it was filed in April. However, I see there have been some minor updates to andriod-runtime since I tried it last. I'll give it another try with the latest versions and see if things have improved.

@triniwiz
Copy link
Owner

@RobertGardner we'll look into it soon

@AdrianoOP
Copy link

any news? I'm seeing an issue that might be related to this one...

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

4 participants