question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Big size of Pod Dependencies for AppClip - any way to reduce it?

See original GitHub issue

Is 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:open
  • Created a year ago
  • Reactions:4
  • Comments:13

github_iconTop GitHub Comments

5reactions
charliecruzan-stripecommented, May 19, 2022

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.

3reactions
tux2nicolaecommented, Jul 26, 2022

Do you have any updates on this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Optimizing App Clip Size in iOS - Very Good Security
Generally speaking, the most obvious way to make sure that your App Clip does not exceed the maximum allowable size is to just...
Read more >
How can I reduce the size of appclips - Apple Developer
Please see Reducing Your Apps Size and Doing Basic Optimization to Reduce Your Apps Size for suggestions on how to reduce the size...
Read more >
Building an App Clip with React Native - Shopify Engineering
How could a barebone App Clip be this big in size? ... define exactly which native dependencies the App Clip needed in the...
Read more >
Why my app clip's size is more than 10 MB - Stack Overflow
How can I inspect what's adding to its size? or any suggestions on ... the cocoapod use in your App Clip experience... some...
Read more >
I made a small library that helps you reduce your React Native ...
I was able to reduce my bundle size from 3MB to ~600kb but the problem with app clips is not just the JS...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found