Big size of Pod Dependencies for AppClip - any way to reduce it?
See original GitHub issueIs your feature request related to a problem? Please describe. I’m developing an App with shared code for AppClip - I need payments in both app versions. Unfortunately size of stripe-react-native Pod Dependencies exceeds 6MB. Apple AppClip’s size limit is 10MB, my app current size is around 12MB with stripe-react-native package added. Is there’s any way with a current package version to reduce size of the Pods? During installation of the pods I’ve noticed that i’m downloading quite a few packages:
pod install
Installing Stripe (21.12.0)
Installing StripeApplePay (21.12.0)
Installing StripeCore (21.12.0)
Installing StripeUICore (21.12.0)
Installing stripe-react-native (0.3.0)
I’m wondering if i need all of the stripe’s Pods - my project is using only these imports:
import { useApplePay, useStripe, useGooglePay } from '@stripe/stripe-react-native';
import { StripeProvider } from '@stripe/stripe-react-native';
import { CardFieldInput, initPaymentSheet, presentPaymentSheet } from '@stripe/stripe-react-native';
Describe the solution you’d like For now, just some “hacky” way to reduce the stripe pods size, a future solution - way to use a part of big Stripe native code, for example - importing with manual linking.
Issue Analytics
- State:
- Created a year ago
- Reactions:4
- Comments:13
Hi! Yes, this is a great ask. It’s in our roadmap to explore this- it’s possible that what this would mean is separating out
stripe-react-native
into a couple of smaller, modular libraries.Do you have any updates on this?