Skip to content

Fetch offline entitlement mappings through Remote Config#7265

Draft
rickvdl wants to merge 9 commits into
mainfrom
rickvdl/verified-pem-remote-config
Draft

Fetch offline entitlement mappings through Remote Config#7265
rickvdl wants to merge 9 commits into
mainfrom
rickvdl/verified-pem-remote-config

Conversation

@rickvdl

@rickvdl rickvdl commented Jul 21, 2026

Copy link
Copy Markdown
Member

(Don't merge before backend is ready)

iOS equivalent of Android PR RevenueCat/purchases-android#3817

Description

Implements fetching the ProductEntitlementMapping through the remote config infrastructure. This will only be done when remote config is enabled. And will still fall back to the existing implementation when remote config is disabled through the kill-switch.

There's still an open question around handling the fallback if the kill-switch is activated later here

@rickvdl

rickvdl commented Jul 21, 2026

Copy link
Copy Markdown
Member Author

@RCGitBot please test

@rickvdl
rickvdl force-pushed the rickvdl/verified-pem-remote-config branch from 8b5c075 to c6723c9 Compare July 22, 2026 10:19
@emerge-tools

emerge-tools Bot commented Jul 22, 2026

Copy link
Copy Markdown

2 builds increased size, 2 builds decreased size

Name Version Download Change Install Change Approval
RevenueCat
com.revenuecat.PaywallsTester
1.0 (1) 19.3 MB ⬆️ 4.9 kB (0.03%) 69.8 MB ⬆️ 22.6 kB (0.03%) N/A
BinarySizeTest
com.revenuecat.binary-size-test.local-source
1.0 (1) 4.5 MB ⬇️ 1.1 kB (-0.02%) 13.5 MB ⬇️ 4.5 kB (-0.03%) N/A
BinarySizeTest
com.revenuecat.binary-size-test.cocoapods
1.0 (1) 6.8 MB ⬇️ 128 B 29.6 MB ⬆️ 3.5 kB (0.01%) N/A
BinarySizeTest
com.revenuecat.binary-size-test.spm
1.0 (1) 4.6 MB ⬇️ 6.0 kB (-0.13%) 11.7 MB ⬇️ 4.4 kB (-0.04%) N/A

RevenueCat 1.0 (1)
com.revenuecat.PaywallsTester

⚖️ Compare build
⏱️ Analyze build performance

Total install size change: ⬆️ 22.6 kB (0.03%)
Total download size change: ⬆️ 4.9 kB (0.03%)

Largest size changes

Item Install Size Change
DYLD.String Table ⬆️ 16.7 kB
DYLD.Exports ⬆️ 1.4 kB
RevenueCat.OfflineEntitlementsManager.OfflineEntitlementsManager ⬇️ -928 B
Other ⬆️ 5.4 kB
View Treemap

Image of diff

BinarySizeTest 1.0 (1)
com.revenuecat.binary-size-test.local-source

⚖️ Compare build
📦 Install build
⏱️ Analyze build performance

Total install size change: ⬇️ 4.5 kB (-0.03%)
Total download size change: ⬇️ 1.1 kB (-0.02%)

Largest size changes

Item Install Size Change
🗑 RevenueCat.OfflineEntitlementsManager.Error ⬇️ -10.4 kB
📝 RevenueCat.OfflineEntitlementsManager.updateProductsEntitlementsC... ⬆️ 1.6 kB
RevenueCat.Purchases.updateAllCaches(isAppBackgrounded,fetchConte... ⬇️ -1.6 kB
Swift._NativeDictionary.merge(isUnique,uniquingKeysWith) ⬇️ -1.0 kB
objectdestroyTm ⬇️ -632 B
View Treemap

Image of diff

BinarySizeTest 1.0 (1)
com.revenuecat.binary-size-test.cocoapods

⚖️ Compare build
📦 Install build
⏱️ Analyze build performance

Total install size change: ⬆️ 3.5 kB (0.01%)
Total download size change: ⬇️ 128 B

Largest size changes

Item Install Size Change
🗑 RevenueCat.OfflineEntitlementsManager.Error ⬇️ -10.4 kB
DYLD.String Table ⬆️ 4.8 kB
📝 RevenueCat.OfflineEntitlementsManager.updateProductsEntitlementsC... ⬆️ 1.6 kB
RevenueCat.Purchases.updateAllCaches(isAppBackgrounded,fetchConte... ⬇️ -1.6 kB
objectdestroyTm ⬇️ -632 B
View Treemap

Image of diff

BinarySizeTest 1.0 (1)
com.revenuecat.binary-size-test.spm

⚖️ Compare build
📦 Install build
⏱️ Analyze build performance

Total install size change: ⬇️ 4.4 kB (-0.04%)
Total download size change: ⬇️ 6.0 kB (-0.13%)

Largest size changes

Item Install Size Change
🗑 RevenueCat.OfflineEntitlementsManager.Error ⬇️ -10.4 kB
📝 RevenueCat.OfflineEntitlementsManager.updateProductsEntitlementsC... ⬆️ 1.6 kB
RevenueCat.Purchases.updateAllCaches(isAppBackgrounded,fetchConte... ⬇️ -1.6 kB
Swift._NativeDictionary.merge(isUnique,uniquingKeysWith) ⬇️ -1.0 kB
objectdestroyTm ⬇️ -632 B
View Treemap

Image of diff


🛸 Powered by Emerge Tools

@RevenueCat-Danger-Bot

RevenueCat-Danger-Bot commented Jul 23, 2026

Copy link
Copy Markdown

❌ CI Job Failed — run-test-ios-26

View Build

Failed Tests

  • OfflineEntitlementsManagerAvailableTests/testUpdateProductEntitlementMappingCacheDoesNotUpdateIfStaleFailure()

@rickvdl
rickvdl force-pushed the rickvdl/verified-pem-remote-config branch from a2b2a33 to 3c23fab Compare July 23, 2026 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants