purchases-ios icon indicating copy to clipboard operation
purchases-ios copied to clipboard

RevenueCatUI: background.jpg significantly increases bundle size

Open SamPetherbridge opened this issue 8 months ago • 2 comments

Describe the bug We’ve identified that the RevenueCat_RevenueCatUI.bundle includes a background.jpg file which is 106 KB in size, accounting for over one-third of the entire bundle (~303 KB). This image seems excessive given its size and inclusion by default for all users of the SDK, even if not directly used. We’d like to know if this asset is necessary, or if there’s a way to exclude or optimise it.

  1. Environment
    1. Platform: iOS
    2. SDK version: 5.20.2
    3. StoreKit version:
      • [ ] StoreKit 1 (default on versions <5.0.0. Can be enabled in versions >=5.0.0 with .with(storeKitVersion: .storeKit1))
      • [x] StoreKit 2 (default on versions >=5.0.0)
    4. OS version:
    5. Xcode version: 16.3 (16E140)
    6. Device and/or simulator:
      • [ ] Device
      • [ ] Simulator
    7. Environment:
      • [ ] Sandbox
      • [ ] TestFlight
      • [ ] Production
    8. How widespread is the issue. Percentage of devices affected.
  2. Debug logs that reproduce the issue. Complete logs with Purchases.logLevel = .verbose will help us debug this issue.
Logs here
  1. Steps to reproduce, with a description of expected vs. actual behavior

Please fill in

  1. Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)

  2. Additional context Add any other context about the problem here.

SamPetherbridge avatar Apr 02 '25 23:04 SamPetherbridge

👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!

RCGitBot avatar Apr 02 '25 23:04 RCGitBot

Hi, this image is used for our fallback default paywall. I am checking with the team if this can be safely excluded.

HaleyRevcat avatar Apr 08 '25 13:04 HaleyRevcat