-
Notifications
You must be signed in to change notification settings - Fork 36
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
fix: override fun onNewIntent not nullable param #564
base: develop
Are you sure you want to change the base?
Conversation
faced the same issue @jreij |
Hey @lucashe1997 Thank you for making PR! 💚 This breaking change introduced by Google on Android API level 35. Before we merge this pull request, we ideally need to ensure support for older API levels as well. I am currently exploring ways to achieve this. Alternatively, we are considering changing the implementation to use a |
any update ? |
@descorp can we expedite a fix release for this. please? |
Hey @vanGalilea Merging this pull request will cause integration issues for anyone who is not using API level 35 yet. Unfortunately, we will need to ask you to implement a manual fix until we can find a comprehensive solution or until API level 35 becomes widely adopted. Thanks for checking! |
Hi @vanGalilea as @descorp mentioned this PR solves the issue for the API level 35 and later, but it'll be a problem with older APIs. If you are using expo, you can apply get the patch file https://patch-diff.githubusercontent.com/raw/Adyen/adyen-react-native/pull/564.patch and apply it using patch-package for example. It not you can change the code manually. @descorp if this PR is causing too much confusion we can close it, and I can create just a issue, with the patch. Just let me know! |
Thanks @lucashe1997 💚 PR is perfect! :D |
Summary
While trying to implement this package, I encountered a problem when using Expo 52 with a development build, specifically with the Kotlin language during the Android build:
After investigating the issue, I found that the problem originates from the following piece of code:
The Android documentation for onNewIntent specifies that the
intent
parameter is non-nullable. As a result, the null check (intent?.let
) is unnecessary. This behavior is consistent with the Java implementation provided in the same plugin: