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

[BUG] Dependency conflict possibility between the cardscan and the TextWatcher native android interface #9115

Closed
dianaedv opened this issue Aug 22, 2024 · 1 comment
Labels

Comments

@dianaedv
Copy link

dianaedv commented Aug 22, 2024

Summary

Dependency conflict possibility between the cardscan and the TextWatcher native android class

Code to reproduce

The issue arises when just adding the implementation 'com.stripe:stripecardscan:version' dependency (version listed below) into the project.

Even without importing any module from the dependency in any part of the project, just simply adding it to the Gradle file, causes all the text fields that extend from the TextWatcher class implementation (https://developer.android.com/reference/android/text/TextWatcher) to break.

The crash occurs whether the text field is filled manually or automatically. For example, in the card number field with the mask (**** **** **** ****), the app crashes as soon as the first four characters are entered, returning the error log:

TextWatcherLogError.txt

Removing or comment up the deppendency of the card scan mentioned before, the text fields with TextWatcher works normally again, without crashing the app.

Example of a TextWatcher implementation.

CreditCardNumbersTextWatcher.txt

Android version

Android 11

Impacted devices

There aren't specific devices facing this problem.

Installation method

The SDK intallation method is thorught the gradle dependency, following the stripe-android integration doc:

implementation 'com.stripe:stripecardscan:version'

Dependency Versions

kotlin: 1.9.0
stripe-android: 20.48.3 and 20.48.0
Android Gradle Plugin: 7.4.2
Gradle: 7.5

SDK classes

SDK version 30

Video

Other information

@dianaedv dianaedv added the bug label Aug 22, 2024
@dianaedv dianaedv changed the title [BUG] Dependency conflict possibility between the cardscan and the TextWatcher native android class [BUG] Dependency conflict possibility between the cardscan and the TextWatcher native android interface Aug 22, 2024
@jaynewstrom-stripe
Copy link
Collaborator

Hi @dianaedv I'm not able to reproduce this. Would it be possible to create a sample project that demonstrates the crash?

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

No branches or pull requests

2 participants