docs: update mobile SDK integration guides to match current source#787
Open
jaredlockhart wants to merge 1 commit intomainfrom
Open
docs: update mobile SDK integration guides to match current source#787jaredlockhart wants to merge 1 commit intomainfrom
jaredlockhart wants to merge 1 commit intomainfrom
Conversation
Because * `globalUserParticipation` no longer exists in the SDK — it was split into `experimentParticipation` and `rolloutParticipation` * The `recordedContext` NimbusBuilder option for behavioral targeting and Glean recording is undocumented * `recordMalformedConfiguration()` for reporting invalid feature configs is undocumented * `HardcodedNimbusFeatures` testing helper is undocumented This commit * Replaces `globalUserParticipation` in mobile-ui.md with the two separate participation properties and explains their distinct behavior * Adds `recordedContext` section to both Android and iOS integration guides with cross-link to Recording Targeting Context docs * Adds `recordMalformedConfiguration()` section to Android guide * Adds `HardcodedNimbusFeatures` testing section with usage example and key test assertion methods * Updates complete NimbusBuilder examples in both guides to include `recordedContext` and `featureManifest` * Removes deprecated `customTargetingAttributes` from iOS example Fixes #786 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This was referenced Feb 25, 2026
freshstrangemusic
approved these changes
Feb 27, 2026
|
|
||
| ## Unit and UI testing with `HardcodedNimbusFeatures` | ||
|
|
||
| The `HardcodedNimbusFeatures` class lets you inject feature configurations directly for unit and UI testing, without a running Nimbus SDK or network connection: |
Member
There was a problem hiding this comment.
This sentence reads strangely. "Without running Nimbus SDK" ?
| ) | ||
| hardcodedNimbus.connectWith(FxNimbus) | ||
|
|
||
| // Access feature values as normal — they'll use the hardcoded config |
Member
There was a problem hiding this comment.
Suggested change
| // Access feature values as normal — they'll use the hardcoded config | |
| // Access feature values as normal — it will use the hardcoded config. |
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
Updates the Android and iOS integration guides and Required UI doc to match the current Nimbus SDK source code.
globalUserParticipationwithexperimentParticipationandrolloutParticipation— the property was split into two for separate experiment/rollout controlrecordedContext: Adds NimbusBuilder section for behavioral targeting context in both Android and iOS guides with cross-links to Recording Targeting Context docsrecordMalformedConfiguration(): New section for reporting invalid feature configs as Glean telemetryHardcodedNimbusFeatures: Testing helper section with usage example and key assertion methods (isExposed,getExposureCount,isMalformed,hasFeature)recordedContextandfeatureManifestto NimbusBuilder examples, removes deprecatedcustomTargetingAttributesFixes #786
🤖 Generated with Claude Code