You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that the Stripe iOS SDK includes the hCaptcha HTML directly in the source file HCaptchaHtml.swift.
Describe the solution you'd like
I would like to suggest an improvement: instead of embedding the hCaptcha HTML directly in the SDK, consider fetching it dynamically from the network when needed.
Here are a few reasons why this approach would be beneficial:
Reduced SDK Size: By not including the hCaptcha HTML directly in the SDK, the overall size of the SDK can be reduced. This would help developers keep their apps more lightweight and efficient. Easier Updates and Maintenance: Fetching the hCaptcha HTML dynamically allows for easier updates and maintenance. If there are any changes or updates to hCaptcha, they can be made server-side without requiring an update to the SDK, ensuring users always have the latest version.
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered:
Also there are some jsons like au_becs_bsb.json and localized_address_data.json that inside asset.car can reduce the binary size. Even you can play with the compression type in the inspector panel when you include it in assets.
Hi Stripe Team,
I noticed that the Stripe iOS SDK includes the hCaptcha HTML directly in the source file HCaptchaHtml.swift.
Describe the solution you'd like
I would like to suggest an improvement: instead of embedding the hCaptcha HTML directly in the SDK, consider fetching it dynamically from the network when needed.
Here are a few reasons why this approach would be beneficial:
Reduced SDK Size: By not including the hCaptcha HTML directly in the SDK, the overall size of the SDK can be reduced. This would help developers keep their apps more lightweight and efficient.
Easier Updates and Maintenance: Fetching the hCaptcha HTML dynamically allows for easier updates and maintenance. If there are any changes or updates to hCaptcha, they can be made server-side without requiring an update to the SDK, ensuring users always have the latest version.
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: