Skip to content

Expose deviceProfile, displayName and forceConfirmation#3

Merged
gmiszewski-intent merged 1 commit into
mainfrom
gmiszewski/association-request-options
Jun 22, 2026
Merged

Expose deviceProfile, displayName and forceConfirmation#3
gmiszewski-intent merged 1 commit into
mainfrom
gmiszewski/association-request-options

Conversation

@gmiszewski-intent

Copy link
Copy Markdown
Collaborator

Adds the optional scalar AssociationRequest.Builder options to CdmRequest. Backward compatible — all new fields are optional and default to current behavior.

API

  • CdmDeviceProfile enum → AssociationRequest.DEVICE_PROFILE_* (watch, computer, appStreaming, automotiveProjection, glasses, nearbyDeviceStreaming), each version-gated.
  • CdmRequest.displayNamesetDisplayName (API 33+).
  • CdmRequest.forceConfirmationsetForceConfirmation (API 33+).

Native

  • Builder setters guarded per Build.VERSION. A profile the device can't support is rejected up-front with CdmErrorCode.unsupported; displayName/forceConfirmation are best-effort below API 33.

Tests / docs

  • Serialisation, defaults, equality, and the profile wire/minSdk table.
  • README: device-profile + dialog-option docs, a Limitations note on the picker icon, corrected API list. CHANGELOG 0.0.2.

Verified: analyze clean, format gate green, 35 tests pass, example APK builds.

🤖 Generated with Claude Code

Grow CdmRequest and the native builder to cover the scalar
AssociationRequest.Builder options. All new fields are optional and
default to today's behaviour.

- CdmDeviceProfile enum -> AssociationRequest.DEVICE_PROFILE_* (watch 31;
  computer/appStreaming/automotiveProjection 33; glasses/
  nearbyDeviceStreaming 34). Native rejects a profile the device's API
  level can't support with CdmErrorCode.unsupported, up-front.
- displayName -> setDisplayName, forceConfirmation -> setForceConfirmation
  (both API 33+, best-effort below). Builder setters guarded per Build.VERSION.
- Tests: serialisation of the new fields and defaults, equality, and the
  profile wire/minSdk table.
- README: device-profile + dialog-option docs, a Limitations note on the
  picker icon, and a corrected API list. CHANGELOG 0.0.2.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@gmiszewski-intent gmiszewski-intent merged commit f4855e8 into main Jun 22, 2026
3 checks passed
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