Skip to content

MBL-2679: Use stripe-ios-spm module instead of stripe-ios #2568

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

amy-at-kickstarter
Copy link
Contributor

@amy-at-kickstarter amy-at-kickstarter commented Jul 30, 2025

📲 What

Use the stripe-ios-spm mirror repo, instead of stripe-ios.

🤔 Why

stripe-ios is our largest downloaded package, clocking in at several gigabytes. Their mirror repo stripe-ios-spm has no git history, making it substantially smaller.

One of the biggest time consumers on CircleCI is downloading our SPM packages and then caching them in a workspace. By reducing our SPM package sizes, we shave entire minutes off our build times on CircleCI:
Screenshot 2025-07-31 at 1 57 37 PM

I saw speed-ups of around ~5-6 minutes for the entire build pipeline by making this change.

👀 See

I triple-checked that this is a valid and supported SPM repo:

  1. Stripe recommends using this repo in their official documentation: https://docs.stripe.com/payments/accept-a-payment?platform=ios#setup-client-side
  2. They've also explained this on their Github: [Feature] SPM Improvement  stripe/stripe-ios#2842
  3. Finally, I spoke with Stripe support to be absolutely certain.

This reduces our downloaded package sizes by several GB.
@amy-at-kickstarter amy-at-kickstarter changed the title [Ignore me, testing CircleCI] Use stripe-spm module instead of stripe, to reduce downloaded package sizes Use stripe-spm module instead of stripe, to reduce downloaded package sizes Jul 31, 2025
@amy-at-kickstarter amy-at-kickstarter force-pushed the feat/adyer/use-stripe-spm-package branch from 74c2c94 to 5e7ba5d Compare July 31, 2025 20:16
@amy-at-kickstarter amy-at-kickstarter changed the title Use stripe-spm module instead of stripe, to reduce downloaded package sizes MBL-2679: Use stripe-ios-spm module instead of stripe-ios Jul 31, 2025
"revision" : "8a35266fab2e0ba116dec7d651ae69a0ca7bc7b7",
"version" : "23.27.2"
"revision" : "653fc8cfc40b33740401f9bd9faa8588f9a53e5f",
"version" : "23.32.0"
Copy link
Contributor Author

@amy-at-kickstarter amy-at-kickstarter Jul 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We download up to the next major version. Switching repos bumped this version, I surmise. I poked through their most recent release notes and (as expected) this is just a bunch of bug fixes and minor upgrades; nothing that should affect us.

@amy-at-kickstarter amy-at-kickstarter marked this pull request as ready for review July 31, 2025 20:35
@amy-at-kickstarter amy-at-kickstarter marked this pull request as draft July 31, 2025 20:38
@amy-at-kickstarter amy-at-kickstarter marked this pull request as ready for review July 31, 2025 23:27
@amy-at-kickstarter amy-at-kickstarter requested review from a team, stevestreza-ksr and ifosli and removed request for a team July 31, 2025 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant