Skip to content

bot: More flexible Android user traits#77

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/HEL-4741-sdk-agent-workflow-a55d
Draft

bot: More flexible Android user traits#77
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/HEL-4741-sdk-agent-workflow-a55d

Conversation

@cursor

@cursor cursor Bot commented Mar 14, 2026

Copy link
Copy Markdown

Adds warning logging for unsupported trait value types in the Android bridge and exposes a standalone setUserTraits() method so traits can be updated independently after initialization.

Changes:

  • Android convertToHeliumUserTraitsArgument() now logs a warning when dropping unsupported value types (previously silent)
  • New setUserTraits(Map<String, dynamic>) method added across the full Dart → native stack (both Android + iOS)
  • All tests pass (23 helium_flutter + 12 helium_stripe)

Linear: https://linear.app/tryhelium/issue/HEL-4741

Open in Web View Automation 

- Add standalone setUserTraits() method to Dart API, platform interface,
  method channel, and both native plugins (Android + iOS)
- Add warning logging when unsupported trait value types are dropped
  in the Android bridge's convertToHeliumUserTraitsArgument()
- Previously traits could only be set during initialize/setupCore or
  overrideUserId; now they can be updated independently at any time
- All 23 helium_flutter tests + 12 helium_stripe tests pass

Co-authored-by: Arhan Choudhury <Arhan13@users.noreply.github.com>
@salami salami changed the title HEL-4741: More flexible Android user traits bot: More flexible Android user traits Mar 14, 2026
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