Comments (6)
If you prefer to keep that change out, you can roll the change back in your code by using
compile 'com.stripe:stripe-android:1.0.5'
, which is the version before any of the changes took place.
Since I don't otherwise use TextUtils, I could use something else in a future update for this check, but use of the android framework is probably going to creep into new features at some point.
from stripe-android.
Since you can fix the broken tests using a quick gradle change, I'm going to go ahead and close this issue. Let me know if rolling back the version in your code doesn't work!
from stripe-android.
We use Stripe 1.0.6 now and it works (it has no Android framework dependency yet) but we obviously want to get new features/fixes in future Stripe releases. So dependency on Android framework makes our Android-independent Unit testing of payment logic impossible.
I think you should avoid Android-framework dependency as wide as you can to allow developers to use the library in Unit tests. As I see it's possible for now, just need to rollback boolean isWholePositiveNumber(String value)
method.
I wonder if it's gonna happen and should I looking forward for 1.1.1 soon?
from stripe-android.
Are you trying to share code between an android and a java application? I'm a little confused as to why you'd want to write an Android app without the Android framework.
from stripe-android.
It's not a big deal for me to move it out of that method - I added it by habit more than anything else. But I hadn't planned to make a concerted effort to keep core android classes out of future updates to our android API. There are future plans down the line to do things like having the simple checkout forms, similar to what exists in the stripe-ios SDK, and creating overlay forms is something I'd definitely use many core classes for.
from stripe-android.
I'll go ahead and take this out for now -- but I'm doubtful on my ability to keep the android framework out of the API indefinitely.
from stripe-android.
Related Issues (20)
- [BUG] Image.kt cropCameraPreviewToViewFinder crash HOT 2
- [BUG] App crashes when using AddressLauncher HOT 2
- [BUG] App crash report on Crashlytics - CustomerSessionViewModel$Companion.getComponent - Unable to start activity ComponentInfo{mypackage/com.stripe.android.customersheet.CustomerSheetActivity}: IllegalStateException: Component could not be retrieved HOT 1
- [BUG] secure checkout screen opened for card that shouldn't support 3ds HOT 6
- [BUG] No static method ModalBottomSheetLayout-BzaUkTc HOT 1
- [BUG] HOT 1
- [Feature] Add existingPaymentMethodRequired configuration in PaymentSheet.GooglePayConfiguration
- [BUG] secure payment open for a sec and closed without user interaction HOT 8
- [Feature] Add support for payment method custom order in PaymentSheet HOT 1
- [BUG] The use of rememberPaymentSheet in jetpack compose Generate Thousands of recompositions in all the view HOT 3
- [BUG] Cursor color not updated with PaymentSheet.Appearance HOT 2
- [Feature] Add PaymentMethod object on PaymentOptionCallback HOT 4
- [Feature] compose desktop support
- [BUG] Margin between Label and Edit text HOT 2
- [Feature] Compose Native Views
- [BUG] Impossible to clone stripe-android GitHub repository on Windows HOT 2
- [BUG] Duplicate class org.tensorflow.lite HOT 3
- [BUG] Next Field isn't automatically focused in CardMultilineWidget
- [BUG] Duplicate class com.sumsub.sns:idensic-mobile-sdk HOT 2
- [BUG] Missing proguard/R8 rules when using `payments-core` only HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stripe-android.