-
Notifications
You must be signed in to change notification settings - Fork 657
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
Add deprecated annotation to primary BI classes #9433
Conversation
Diffuse output:
APK
DEX
|
@@ -27,6 +27,10 @@ import kotlin.coroutines.CoroutineContext | |||
* | |||
* See [Creating ephemeral keys](https://stripe.com/docs/mobile/android/standard#creating-ephemeral-keys) | |||
*/ | |||
@Deprecated( | |||
"Please use Mobile Payment Element instead. If you already using CustomerSession, learn how to migrate" + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add this string as a constant, and reference it in all of these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep! Done, thanks
@@ -22,6 +22,7 @@ internal class ActivityScenarioFactory( | |||
) | |||
} | |||
|
|||
@Suppress("Deprecated") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we test this in PaymentSheet?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question! We aren't actually testing the activity itself, we are just using it to test out our functions that take in an activity as a parameter, e.g. the FlowControllerFactory constructor. We should be using an example activity for that, rather than using the BI activities. I will follow up and update those tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Summary
Add deprecated annotation to primary BI classes
Motivation
https://jira.corp.stripe.com/browse/MOBILESDK-2461
An in-SDK heads-up about upcoming removal of BI
Testing
Changelog
Basic integration