Skip to content

Dev v5.3.0 -> Staging - #549

Merged
akhiljain1907 merged 25 commits into
stagingfrom
dev-v5.3.0
Oct 21, 2026
Merged

akhiljain1907 merged 25 commits into
stagingfrom
dev-v5.3.0

Conversation

@akhiljain1907

Copy link
Copy Markdown
Contributor

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

akhiljain1907 and others added 23 commits September 27, 2026 22:46
Introduce a dedicated path that lets operational device attributes
(timezone, push token, Live Activity tokens) be sent to the Edge Network
without being gated by collect consent, driven entirely by a Launch rule.

Routing
- Listen for a dedicated event: type "com.adobe.eventType.edgeBypassConsent"
  with the standard requestContent source (Event.isBypassConsentEvent).
  These events are produced by the rules engine's forward-operational-data
  consequence; Edge owns the type constant and the routing.
- Queue such hits on a separate, always-on bypassConsentHitQueue that is
  started at init and never wired to collect-consent changes, so it is
  never suspended or cleared. The primary experience-event queue and its
  consent gating are unchanged.

Request
- Add EdgeRequestType.deviceAttributes ("mobile/device-attributes").
- Build the request body via RequestBuilder.generateNoConsentPayload: pass
  the producer's event data through unchanged and enrich it with the
  SDK-owned xdm (implementationDetails + identityMap) and meta.state.
  NoConsentEdgeHit carries this dynamic payload (no typed model, no
  response streaming).
- Resolve the endpoint from the app's Edge configuration (edge.configId,
  edge.environment, edge.domain) exactly like the interact/set-consent
  paths; drop the hit with a warning if edge.configId is missing.

Response
- Treat HTTP 202 (Accepted) as a success response so device-attributes
  hits are completed rather than logged as an unrecoverable error and
  retried. Existing 200/204/207 handling is unchanged.

Tests
- Add unit tests for isBypassConsentEvent, bypass-consent queue routing
  under collect consent = no, the generateNoConsentPayload body shape,
  the device-attributes endpoint/configId selection, and 202-as-success.
Migrate build and test CI pipeline from commons to CircleCI, covering code validation, unit tests, functional tests, integration tests, and XCFramework/app builds across iOS and tvOS.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
ci: add CircleCI build and test workflow
This reverts commit ed8b25c.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Move device attributes (edgeBypassConsent) processing into bypass-owned types under Sources/DeviceAttributes: hit processor, request builder, network sender, response handler, constants and event helpers. Shared interact files return to main, except the deviceAttributes endpoint case and bypass wiring in Edge and EdgeState.

- Success is 200/202; recoverable errors retry without a response event; other outcomes publish failed/network.
- Success responses apply only locationHint:result (EdgeNetwork) and state:store handles.
- Identity reset no longer clears the bypass queue; hits queued before the persisted reset date are skipped.
- The bypass queue starts after Edge bootup.
- Response event is named Device Attributes Response.
Device attributes requests now wait on the same Configuration and Identity shared states as experience and consent events. Removes the dedicated readiness helper and its missing-queue exception.
- Check the latest Edge Identity ECID before each send; drop with identityChanged if it changed, retry if Identity is unavailable.
- Remove the reset-date skip; apply state:store only while the ECID is unchanged.
- Consolidate device-attributes constants under EdgeConstants.DeviceAttributes and align names with Android.
Isolated consent-independent device-attributes endpoint path to Edge Network
@codecov

codecov Bot commented Oct 21, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 99.18699% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...eviceAttributes/DeviceAttributesHitProcessor.swift 98.43% 2 Missing ⚠️
Sources/Edge.swift 98.80% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@akhiljain1907
akhiljain1907 merged commit ba4c5a2 into staging Oct 21, 2026
24 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.

5 participants