You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Removing or comment up the deppendency of the card scan mentioned before, the text fields with TextWatcher works normally again, without crashing the app.
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
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:
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
The text was updated successfully, but these errors were encountered: