-
Notifications
You must be signed in to change notification settings - Fork 649
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
Embedded Appearance API #9706
base: master
Are you sure you want to change the base?
Embedded Appearance API #9706
Conversation
Diffuse output:
APK
DEX
|
@@ -182,6 +183,7 @@ private fun CustomizationCard( | |||
} | |||
} | |||
|
|||
@OptIn(ExperimentalEmbeddedPaymentElementApi::class) |
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.
Required because the method calls copy
on Appearance
@tjclawson-stripe can you link the API review please? |
We should also |
Done 👍 |
Added 👍 |
paymentsheet/api/paymentsheet.api
Outdated
public synthetic fun newArray (I)[Ljava/lang/Object; | ||
} | ||
|
||
public final class com/stripe/android/paymentsheet/PaymentSheet$Appearance$Embedded$RowStyle$FloatingButton : com/stripe/android/paymentsheet/PaymentSheet$Appearance$Embedded$RowStyle { |
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.
You'll need to restrict the nested classes as well.
@@ -606,32 +606,6 @@ public final class com/stripe/android/paymentsheet/PaymentSheet$Address$Creator | |||
public synthetic fun newArray (I)[Ljava/lang/Object; | |||
} | |||
|
|||
public final class com/stripe/android/paymentsheet/PaymentSheet$Appearance : android/os/Parcelable { |
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.
How come this got removed?
@@ -881,6 +883,8 @@ class PaymentSheet internal constructor( | |||
} | |||
|
|||
@Parcelize | |||
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) |
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.
We don't want to restrict all of appearance! That would be bad! I think you meant to restrict the constructor.
@@ -10,6 +11,7 @@ import org.robolectric.RobolectricTestRunner | |||
|
|||
@RunWith(RobolectricTestRunner::class) | |||
class CustomerSheetConfigurationTest { | |||
@OptIn(ExperimentalEmbeddedPaymentElementApi::class) |
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.
This shouldn't be needed, otherwise merchants will need to do the same.
@@ -227,6 +228,7 @@ class BacsConfirmationDefinitionTest { | |||
assertThat(launchAction.receivesResultInProcess).isTrue() | |||
} | |||
|
|||
@OptIn(ExperimentalEmbeddedPaymentElementApi::class) |
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.
This shouldn't be needed, otherwise merchants will need to do the same.
Summary
Adds Appearance API for Embedded Payment Element
Motivation
MOBILESDK-2715
API Review
Testing