Skip to content

Wire new native SDK public API: eventTrackingBehavior, singularDeviceId, loadingColor#147

Draft
claude[bot] wants to merge 2 commits into
ir/bump-sdks-2.4.13from
ir/wire-native-api-2.5.0
Draft

Wire new native SDK public API: eventTrackingBehavior, singularDeviceId, loadingColor#147
claude[bot] wants to merge 2 commits into
ir/bump-sdks-2.4.13from
ir/wire-native-api-2.5.0

Conversation

@claude

@claude claude Bot commented Jul 6, 2026

Copy link
Copy Markdown

Requested by Ian Rumac · Slack thread

What this adds

  • SuperwallOptions.eventTrackingBehavior — controls how much event data is collected and sent (all / superwallOnly / none). This supersedes the now-deprecated SuperwallOptions.isExternalDataCollectionEnabled, which still works and is mapped onto eventTrackingBehavior for backward compatibility.
  • singularDeviceId — a new IntegrationAttribute for passing a Singular device ID for attribution.
  • PaywallOptions.loadingColor (Android) — sets the color of the paywall loading view. Note the native type is an Android color resource ID (@ColorRes Int?), so callers pass a resource id rather than an ARGB value.

How

  • Dart public API lives in lib/src/public/ (Superwall/options classes).
  • The Pigeon interface pigeons/configure.dart was regenerated (Dart 3.9.4 / pigeon 26.1.5) to produce the updated Dart, Kotlin, and Swift bridge.
  • Native mapping is done in the Android Kotlin and iOS Swift option mappers.
  • This branch stacks on Bump native SDKs and release 2.4.13 #146 (base ir/bump-sdks-2.4.13); GitHub will auto-retarget it to develop once Bump native SDKs and release 2.4.13 #146 merges. Basing here keeps the diff scoped to just the new API.
  • Package version bumped to 2.5.0.

Generated by Claude Code

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