Add number and boolean custom variable types#865
Merged
Conversation
Extends CustomVariableValue with Number(double) and Boolean(bool) factory methods, preserving native types through JSON serialization to the native SDKs instead of converting everything to strings. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Use primitive boolean and Number.doubleValue() to match Kotlin parameter types. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Reject NaN, Infinity, and -Infinity at creation time since they produce invalid JSON and would cause both native bridges to silently drop custom variables. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
vegaro
approved these changes
Mar 18, 2026
…n editor Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
facumenzella
pushed a commit
that referenced
this pull request
Mar 19, 2026
**This is an automatic release.** ## RevenueCat SDK ### ✨ New Features * Add offeringId override to trackCustomPaywallImpression (#869) via Rick (@rickvdl) ### 📦 Dependency Updates * [AUTOMATIC BUMP] Updates purchases-hybrid-common to 17.52.0 (#870) via RevenueCat Git Bot (@RCGitBot) ## RevenueCatUI SDK ### ✨ New Features * Add number and boolean custom variable types (#865) via Facundo Menzella (@facumenzella) ### 🔄 Other Changes * Bump fastlane-plugin-revenuecat_internal from `3e8c384` to `9a6911b` (#868) via dependabot[bot] (@dependabot[bot])
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CustomVariableValuewithNumber(double)andBoolean(bool)factory methodsPaywallViewPresenterto parse typed JSON values intoCustomVariableValue.Numberand.BooleanPaywallsBehaviourenum and Editor drawerUnity equivalent of RevenueCat/purchases-flutter#1683
Test plan
🤖 Generated with Claude Code