-
Notifications
You must be signed in to change notification settings - Fork 664
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
[Connect SDK] Update API based on feedback #9480
Conversation
Risky Change This is considered a risky change because it adjusts the sample app build.gradle, please review carefully. By adding the label |
Diffuse output:
APK
|
3 builds decreased size
Stripe Identity Example 20.53.0-theme1 (20)
|
Item | Install Size Change | Download Size Change |
---|---|---|
🗑 androidx.compose.ui.node.IntrinsicsPolicy | ⬇️ -26.8 kB | ⬇️ -12.9 kB |
📝 androidx.compose.ui.node.DepthSortedSetsForDifferentPasses | ⬆️ 26.2 kB | ⬆️ 12.6 kB |
🗑 com.stripe.android.camera.framework.AnalyzerLoop$startWorker$2 | ⬇️ -4.4 kB | ⬇️ -2.1 kB |
📝 androidx.camera.camera2.internal.MeteringRepeatingSession$1 | ⬆️ 3.7 kB | ⬆️ 1.8 kB |
🗑 androidx.constraintlayout.core.PriorityGoalRow$GoalVariableAccess... | ⬇️ -3.4 kB | ⬇️ -1.7 kB |
Financial Connections Example 20.53.0 (205300)
com.stripe.android.financialconnections.example
⚖️ Compare build
⏱️ Analyze build performance
Total install size change: ⬇️ 116 B
Total download size change: ⬇️ 346 B
Largest size changes
Item | Install Size Change | Download Size Change |
---|---|---|
Other | ⬇️ -116 B | ⬇️ -346 B |
PaymentSheet Example 20.53.0 (11)
com.stripe.android.paymentsheet.example
⚖️ Compare build
⏱️ Analyze build performance
Total install size change: ⬇️ 1.9 MB (-11.38%)
Total download size change: ⬇️ 1.5 MB (-17.35%)
Largest size changes
Item | Install Size Change | Download Size Change |
---|---|---|
🗑 ux_0_5_23_16.tflite | ⬇️ -1.4 MB | ⬇️ -1.3 MB |
🗑 androidx.camera.camera2.internal | ⬇️ -149.2 kB | ⬇️ -68.1 kB |
🗑 androidx.camera.core.impl.utils | ⬇️ -126.8 kB | ⬇️ -58.0 kB |
🗑 androidx.camera.core.AspectRatio | ⬇️ -79.7 kB | ⬇️ -36.4 kB |
📝 com.nimbusds.jose.shaded.asm.DefaultConverter | ⬆️ 77.2 kB | ⬆️ 35.3 kB |
🛸 Powered by Emerge Tools
Comment trigger: Size diff threshold of 100.00kB exceeded
There are a lot of miscellaneous changes here due to the refactor of the module name from stripe-connect -> connect. I recommend focusing on this commit in particular: 8167a93. Otherwise, focus on EmbeddedComponentManager, PayoutsFragment, and AccountOnboardingFragment. The example app is going to change quite a bit in a follow-up PR, so feel free to review but note that I'll likely seek to make changes to the example app in that PR rather than this one (barring any major concerns). |
} | ||
|
||
// private methods | ||
|
||
@OptIn(PrivateBetaConnectSDK::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.
do you still need this if it's private?
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.
Looks good!
@@ -305,6 +305,7 @@ | |||
| | | | +--- androidx.core:core:1.0.0 -> 1.13.0 (*) | |||
| | | | \--- androidx.customview:customview:1.0.0 (*) | |||
| | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.22 -> 2.0.21 (*) | |||
| | | +--- androidx.fragment:fragment-compose:1.8.4 (c) |
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.
Do you know where this compose version is coming from? We are using older versions in the rest of the SDK (1.6.8 generally and I think 1.7.4 in paymentsheet-example)
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 is the Androidx fragment library. It's actually not related to the compose version used in the SDK, and matches the other versions of fragments in use elsewhere: https://developer.android.com/jetpack/androidx/releases/fragment#1.8.4
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.
ah gotcha, thanks for the context!
Summary
This PR updates the SDK's API based on API review. The review is still in progress so there may be some more changes in the future, but this should be significantly closer to what will be live in production. If you have any more feedback on the API, please let me know!
There are a lot of changes due to refactoring of the package name. I recommend reviewing commit-by-commit.
My next PR will make significant changes to the Example App UI to bring it to parity with the iOS example app. API and general feedback is appreciated, and I recommend holding off on UI-specific feedback until the next PR.
Changes:
connect
andconnect-example
EmbeddedComponentManager
to be a singletonFragment
sMotivation
Updating the API based on review
Testing
Screenshots
demo-1729293503.mp4