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

Move Decoupling to GA #6857

Merged
merged 8 commits into from
Jul 6, 2023
Merged

Move Decoupling to GA #6857

merged 8 commits into from
Jul 6, 2023

Conversation

tillh-stripe
Copy link
Collaborator

@tillh-stripe tillh-stripe commented Jun 12, 2023

Summary

This pull request moves the decoupling functionality to GA by removing the ExperimentalPaymentSheetDecouplingApi annotation.

The annotation class stays around but is marked as deprecated, helping developers understand that the API is now stable.

Motivation

Testing

  • Added tests
  • Modified tests
  • Manually verified

Screenshots

Before After
before screenshot after screenshot

Changelog

@@ -1,5 +1,9 @@
package com.stripe.android.paymentsheet

@Deprecated(
message = "This feature is no longer experimental. You can remove the annotation.",
level = DeprecationLevel.HIDDEN,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be a DeprecationLevel.WARNING instead? I initially wanted to use HIDDEN to not expose it to new users, but not sure if we want to force removal for existing beta users.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we just remove it? Feels acceptable to me.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the idea of us providing them with some information instead of just removing it, possibly adding confusion.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking the other side of confusion :O Maybe a user sees the annotation is deprecated, and thinks we deprecated the feature!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That’s why there’s a message 🙃

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the user experience if it's removed? Will they see a mysterious compiler error?

@tillh-stripe tillh-stripe marked this pull request as ready for review July 6, 2023 14:21
@tillh-stripe tillh-stripe requested review from a team as code owners July 6, 2023 14:21
paymentsheet/api/paymentsheet.api Outdated Show resolved Hide resolved
@@ -1,5 +1,9 @@
package com.stripe.android.paymentsheet

@Deprecated(
message = "This feature is no longer experimental. You can remove the annotation.",
level = DeprecationLevel.HIDDEN,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we just remove it? Feels acceptable to me.

@tillh-stripe tillh-stripe merged commit fa83db6 into master Jul 6, 2023
7 checks passed
@tillh-stripe tillh-stripe deleted the tillh/decoupling-ga branch July 6, 2023 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants