Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
5ee0dd0
Add consent-independent device-attributes path to Edge Network
akhiljain1907 Sep 27, 2026
6d7369e
updated Edge SDK to provide bypassResult
akhiljain1907 Oct 13, 2026
ed8b25c
resolved conflict in Edge.swift
akhiljain1907 Oct 14, 2026
c36e7de
Revert "resolved conflict in Edge.swift"
akhiljain1907 Oct 14, 2026
7739c04
Merge branch 'main' into feat/consent-independent-device-attributes
akhiljain1907 Oct 14, 2026
3beff7c
updated code to resolve merge conflict
akhiljain1907 Oct 14, 2026
4647fb7
fixed lint and test cases
akhiljain1907 Oct 14, 2026
538ee12
addressed review comments and code refactoring
akhiljain1907 Oct 15, 2026
f9cdb2b
fixed failing CI test
akhiljain1907 Oct 15, 2026
95a58ef
Isolate consent-bypass device attributes path from interact flow
sagar-sharma-adobe Oct 15, 2026
f81b66b
Use shared config and identity readiness for device attributes events
sagar-sharma-adobe Oct 15, 2026
0d29090
Keep Edge.init(runtime:) designated so cross-module subclasses compile
sagar-sharma-adobe Oct 15, 2026
e287970
Restore ECID check and align device attributes naming across platforms
sagar-sharma-adobe Oct 15, 2026
d9d1930
Ignore location hints in device attributes responses and reject reque…
sagar-sharma-adobe Oct 16, 2026
a122698
Ignore device attributes response handles
sagar-sharma-adobe Oct 19, 2026
1607f46
Clarify device attributes comments
sagar-sharma-adobe Oct 19, 2026
0c29893
Fix device attributes requests with multiple ECIDs
namArora3112 Oct 19, 2026
c1cbb6f
Rename edgeBypassConsent event type to edgeDeviceAttributes
sagar-sharma-adobe Oct 21, 2026
e4f238c
Merge pull request #547 from adobe/device-attributes-isolation
akhiljain1907 Oct 21, 2026
20e3079
Updating version to 5.3.0
github-actions[bot] Oct 21, 2026
472e86d
Merge pull request #550 from adobe/update-version-5.3.0
akhiljain1907 Oct 21, 2026
ba4c5a2
Merge pull request #549 from adobe/dev-v5.3.0
akhiljain1907 Oct 21, 2026
a3bb10f
Update Package.swift
akhiljain1907 Oct 21, 2026
b461394
Update AEPEdge.podspec
akhiljain1907 Oct 21, 2026
0d77ee8
updated podfile.lock
akhiljain1907 Oct 21, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions AEPEdge.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "AEPEdge"
s.version = "5.2.0"
s.version = "5.3.0"
s.summary = "Experience Platform Edge extension for Adobe Experience Platform Mobile SDK. Written and maintained by Adobe."

s.description = <<-DESC
Expand All @@ -18,8 +18,8 @@ Pod::Spec.new do |s|
s.swift_version = '5.1'

s.pod_target_xcconfig = { 'BUILD_LIBRARY_FOR_DISTRIBUTION' => 'YES' }
s.dependency 'AEPCore', '>= 5.12.0', '< 6.0.0'
s.dependency 'AEPEdgeIdentity', '>= 5.0.0', '< 6.0.0'
s.dependency 'AEPCore', '>= 5.13.0', '< 6.0.0'
s.dependency 'AEPEdgeIdentity', '>= 5.2.0', '< 6.0.0'

s.source_files = 'Sources/**/*.swift'
end
52 changes: 50 additions & 2 deletions AEPEdge.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@
/* End PBXAggregateTarget section */

/* Begin PBXBuildFile section */
DA0A02000000000000000000 /* DeviceAttributesConstants.swift in Sources */ = {isa = PBXBuildFile; fileRef = DA0A01000000000000000000 /* DeviceAttributesConstants.swift */; };
DA0A02010000000000000000 /* Event+DeviceAttributes.swift in Sources */ = {isa = PBXBuildFile; fileRef = DA0A01010000000000000000 /* Event+DeviceAttributes.swift */; };
DA0A02020000000000000000 /* DeviceAttributesRequestBuilder.swift in Sources */ = {isa = PBXBuildFile; fileRef = DA0A01020000000000000000 /* DeviceAttributesRequestBuilder.swift */; };
DA0A02030000000000000000 /* DeviceAttributesNetworkService.swift in Sources */ = {isa = PBXBuildFile; fileRef = DA0A01030000000000000000 /* DeviceAttributesNetworkService.swift */; };
DA0A020A0000000000000000 /* DeviceAttributesNetworkResult.swift in Sources */ = {isa = PBXBuildFile; fileRef = DA0A010A0000000000000000 /* DeviceAttributesNetworkResult.swift */; };
DA0A02050000000000000000 /* DeviceAttributesHitProcessor.swift in Sources */ = {isa = PBXBuildFile; fileRef = DA0A01050000000000000000 /* DeviceAttributesHitProcessor.swift */; };
DA0A02060000000000000000 /* DeviceAttributesEdgeExtensionTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = DA0A01060000000000000000 /* DeviceAttributesEdgeExtensionTests.swift */; };
DA0A02070000000000000000 /* DeviceAttributesEdgeStateTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = DA0A01070000000000000000 /* DeviceAttributesEdgeStateTests.swift */; };
DA0A02080000000000000000 /* DeviceAttributesHitProcessorTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = DA0A01080000000000000000 /* DeviceAttributesHitProcessorTests.swift */; };
DA0A02090000000000000000 /* DeviceAttributesRequestBuilderTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = DA0A01090000000000000000 /* DeviceAttributesRequestBuilderTests.swift */; };
1CCD27DC245A240F00E912B2 /* ExperienceEventTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1CCD27C82458CB8000E912B2 /* ExperienceEventTests.swift */; };
211BCB8126030DCD00AACFEF /* EdgeDataEntity.swift in Sources */ = {isa = PBXBuildFile; fileRef = 211BCB8026030DCD00AACFEF /* EdgeDataEntity.swift */; };
216989652554B39900B2752C /* EdgeHit.swift in Sources */ = {isa = PBXBuildFile; fileRef = 216989642554B39900B2752C /* EdgeHit.swift */; };
Expand Down Expand Up @@ -221,6 +231,16 @@
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
DA0A01000000000000000000 /* DeviceAttributesConstants.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DeviceAttributesConstants.swift; sourceTree = "<group>"; };
DA0A01010000000000000000 /* Event+DeviceAttributes.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Event+DeviceAttributes.swift"; sourceTree = "<group>"; };
DA0A01020000000000000000 /* DeviceAttributesRequestBuilder.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DeviceAttributesRequestBuilder.swift; sourceTree = "<group>"; };
DA0A01030000000000000000 /* DeviceAttributesNetworkService.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DeviceAttributesNetworkService.swift; sourceTree = "<group>"; };
DA0A010A0000000000000000 /* DeviceAttributesNetworkResult.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DeviceAttributesNetworkResult.swift; sourceTree = "<group>"; };
DA0A01050000000000000000 /* DeviceAttributesHitProcessor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DeviceAttributesHitProcessor.swift; sourceTree = "<group>"; };
DA0A01060000000000000000 /* DeviceAttributesEdgeExtensionTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DeviceAttributesEdgeExtensionTests.swift; sourceTree = "<group>"; };
DA0A01070000000000000000 /* DeviceAttributesEdgeStateTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DeviceAttributesEdgeStateTests.swift; sourceTree = "<group>"; };
DA0A01080000000000000000 /* DeviceAttributesHitProcessorTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DeviceAttributesHitProcessorTests.swift; sourceTree = "<group>"; };
DA0A01090000000000000000 /* DeviceAttributesRequestBuilderTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DeviceAttributesRequestBuilderTests.swift; sourceTree = "<group>"; };
04A228C42686D67347C85BEA /* Pods-TestAppiOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-TestAppiOS.release.xcconfig"; path = "Target Support Files/Pods-TestAppiOS/Pods-TestAppiOS.release.xcconfig"; sourceTree = "<group>"; };
0B13510405D14B13EFD1B58A /* Pods_FunctionalTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_FunctionalTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
1CCD27C52458CB2300E912B2 /* ExperienceEvent.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ExperienceEvent.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -429,6 +449,19 @@
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
DA0A03000000000000000000 /* DeviceAttributes */ = {
isa = PBXGroup;
children = (
DA0A01000000000000000000 /* DeviceAttributesConstants.swift */,
DA0A01010000000000000000 /* Event+DeviceAttributes.swift */,
DA0A01020000000000000000 /* DeviceAttributesRequestBuilder.swift */,
DA0A01030000000000000000 /* DeviceAttributesNetworkService.swift */,
DA0A010A0000000000000000 /* DeviceAttributesNetworkResult.swift */,
DA0A01050000000000000000 /* DeviceAttributesHitProcessor.swift */,
);
path = DeviceAttributes;
sourceTree = "<group>";
};
1CCD27CD24592B2800E912B2 /* xdm */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -586,6 +619,7 @@
children = (
1CCD27CD24592B2800E912B2 /* xdm */,
D42FB8D52462159300E9321C /* public */,
DA0A03000000000000000000 /* DeviceAttributes */,
D42FB8D02461086200E9321C /* EdgeNetworkHandlers */,
D43BAB0225BB758300B08CC0 /* EdgeConsentStatus.swift */,
BF947F63243565CC0057A6CC /* EdgeConstants.swift */,
Expand Down Expand Up @@ -620,6 +654,10 @@
D45F2E8125EE1987000AC350 /* EdgePublicAPITests.swift */,
BF947F9F244569190057A6CC /* EdgeRequestTests.swift */,
BF74551028BC649A00FF3AEC /* EdgeStateTests.swift */,
DA0A01060000000000000000 /* DeviceAttributesEdgeExtensionTests.swift */,
DA0A01070000000000000000 /* DeviceAttributesEdgeStateTests.swift */,
DA0A01080000000000000000 /* DeviceAttributesHitProcessorTests.swift */,
DA0A01090000000000000000 /* DeviceAttributesRequestBuilderTests.swift */,
1CCD27C82458CB8000E912B2 /* ExperienceEventTests.swift */,
BF0F92502756A3EF00378913 /* ImplementationDetailsTests.swift */,
BF947F73243BA0E10057A6CC /* KonductorConfigTests.swift */,
Expand Down Expand Up @@ -1298,6 +1336,12 @@
buildActionMask = 2147483647;
files = (
D4EC0DBB25E73FF10026EBAA /* EdgeState.swift in Sources */,
DA0A02000000000000000000 /* DeviceAttributesConstants.swift in Sources */,
DA0A02010000000000000000 /* Event+DeviceAttributes.swift in Sources */,
DA0A02020000000000000000 /* DeviceAttributesRequestBuilder.swift in Sources */,
DA0A02030000000000000000 /* DeviceAttributesNetworkService.swift in Sources */,
DA0A020A0000000000000000 /* DeviceAttributesNetworkResult.swift in Sources */,
DA0A02050000000000000000 /* DeviceAttributesHitProcessor.swift in Sources */,
BFDF25AD2BDB077E002114B6 /* SharedStateReader.swift in Sources */,
BF0F924F27476E6C00378913 /* ImplementationDetails.swift in Sources */,
D4C6B437251A76CB0038F4F9 /* XDMProtocols.swift in Sources */,
Expand Down Expand Up @@ -1362,6 +1406,10 @@
BF0F92522756A57800378913 /* ImplementationDetailsTests.swift in Sources */,
BF947F74243BA0E10057A6CC /* KonductorConfigTests.swift in Sources */,
BF74551128BC649A00FF3AEC /* EdgeStateTests.swift in Sources */,
DA0A02060000000000000000 /* DeviceAttributesEdgeExtensionTests.swift in Sources */,
DA0A02070000000000000000 /* DeviceAttributesEdgeStateTests.swift in Sources */,
DA0A02080000000000000000 /* DeviceAttributesHitProcessorTests.swift in Sources */,
DA0A02090000000000000000 /* DeviceAttributesRequestBuilderTests.swift in Sources */,
D4F74FE92447A92800379258 /* MockURLSession.swift in Sources */,
D4145F4025D1D3200019EA4C /* EdgeHitTests.swift in Sources */,
216989B32555376A00B2752C /* EdgeHitProcessorTests.swift in Sources */,
Expand Down Expand Up @@ -1594,7 +1642,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 5.2.0;
MARKETING_VERSION = 5.3.0;
OTHER_LDFLAGS = "$(inherited)";
PRODUCT_BUNDLE_IDENTIFIER = com.adobe.aep.edge;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
Expand Down Expand Up @@ -1630,7 +1678,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 5.2.0;
MARKETING_VERSION = 5.3.0;
OTHER_LDFLAGS = "$(inherited)";
PRODUCT_BUNDLE_IDENTIFIER = com.adobe.aep.edge;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
Expand Down
6 changes: 6 additions & 0 deletions Documentation/event-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@

The following events are handled by the Edge extension client-side.

For the isolated `mobile/device-attributes` endpoint, Edge builds the SDK-owned
`xdm.identityMap` from Edge Identity shared state. If it contains multiple ECIDs,
only the first (current) ECID is sent because this endpoint requires exactly one
ECID. The current entry's metadata and other identity namespaces are preserved.
The shared-state identity map and ordinary `interact` requests are unchanged.

### Edge consent response content

This event contains the latest consent preferences synced with the SDK. The Edge Network extension reads the current data collection consent settings stored in the `collect` property and adjusts its internal queueing behavior based on the value as follows:
Expand Down
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ let package = Package(
.library(name: "AEPEdge", targets: ["AEPEdge"])
],
dependencies: [
.package(url: "https://github.com/adobe/aepsdk-core-ios.git", .upToNextMajor(from: "5.12.0")),
.package(url: "https://github.com/adobe/aepsdk-edgeidentity-ios.git", .upToNextMajor(from: "5.0.0"))
.package(url: "https://github.com/adobe/aepsdk-core-ios.git", .upToNextMajor(from: "5.13.0")),
.package(url: "https://github.com/adobe/aepsdk-edgeidentity-ios.git", .upToNextMajor(from: "5.2.0"))
],
targets: [
.target(name: "AEPEdge",
Expand Down
26 changes: 13 additions & 13 deletions Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ PODS:
- AEPAssurance (5.0.3):
- AEPCore (< 6.0.0, >= 5.0.0)
- AEPServices (< 6.0.0, >= 5.0.0)
- AEPCore (5.12.0):
- AEPCore (5.13.0):
- AEPRulesEngine (< 6.0.0, >= 5.0.0)
- AEPServices (< 6.0.0, >= 5.12.0)
- AEPEdge (5.1.1):
- AEPCore (< 6.0.0, >= 5.12.0)
- AEPEdgeIdentity (< 6.0.0, >= 5.0.0)
- AEPServices (< 6.0.0, >= 5.13.0)
- AEPEdge (5.3.0):
- AEPCore (< 6.0.0, >= 5.13.0)
- AEPEdgeIdentity (< 6.0.0, >= 5.2.0)
- AEPEdgeConsent (5.0.2):
- AEPCore (< 6.0.0, >= 5.0.0)
- AEPEdge (< 6.0.0, >= 5.0.0)
- AEPEdgeIdentity (5.1.0):
- AEPCore (< 6.0.0, >= 5.10.0)
- AEPEdgeIdentity (5.2.0):
- AEPCore (< 6.0.0, >= 5.13.0)
- AEPRulesEngine (5.0.0)
- AEPServices (5.12.0)
- AEPServices (5.13.0)
- AEPTestUtils (5.6.0):
- AEPCore (< 6.0.0, >= 5.6.0)
- AEPServices (< 6.0.0, >= 5.6.0)
Expand Down Expand Up @@ -53,15 +53,15 @@ CHECKOUT OPTIONS:

SPEC CHECKSUMS:
AEPAssurance: 3ab00d47a40bc6c6cb2000689e0dcfa595cda250
AEPCore: ec8e326c5bb86c74bfda2de6055bbb82d25cbba6
AEPEdge: b4fe28a3d6ebbc2ed553e51bb1268ceddfda4fa9
AEPCore: 13541c6cd72488506a3fda85a5e1288759f09336
AEPEdge: bf1044fefb7038ef98dff4834154145967a35cf9
AEPEdgeConsent: b5a54985b79ee0222b1f1fc4b0859f8b8afed07a
AEPEdgeIdentity: 66f3314af3729c15d398fd71662a7702cb1e8cdf
AEPEdgeIdentity: 784ecc1dd434f9a19c66cc74a6a947876b93fa8f
AEPRulesEngine: fe5800653a4bee07b1e41e61b4d5551f0dba557b
AEPServices: 62db5f1060752a890f990b6bbb3a4c893d698476
AEPServices: 5533aaa108ffb0e75adcbfdfdd08bd4cbe9b02fd
AEPTestUtils: 2bbed995c8974f6f6d92058db88d6cd2e4a7f869
SwiftLint: 13280e21cdda6786ad908dc6e416afe5acd1fcb7

PODFILE CHECKSUM: 92bb69895448b79aa523a99f61cda67f43890e00

COCOAPODS: 1.14.3
COCOAPODS: 1.16.2
56 changes: 56 additions & 0 deletions Sources/DeviceAttributes/DeviceAttributesConstants.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
//
// Copyright 2026 Adobe. All rights reserved.
// This file is licensed to you under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. You may obtain a copy
// of the License at http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed under
// the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
// OF ANY KIND, either express or implied. See the License for the specific language
// governing permissions and limitations under the License.
//

import Foundation

// Constants owned by the consent-independent device-attributes path.
// Declared as an extension so the shared `EdgeConstants.swift` is left untouched.

extension EdgeConstants {
enum DeviceAttributes {
/// Event type of the device attributes request (`requestContent`) and response (`responseContent`) events.
static let EVENT_TYPE = "com.adobe.eventType.edgeDeviceAttributes"
/// Name of the device attributes response event.
static let EVENT_NAME_RESPONSE = "Device Attributes Response"
/// Suffix appended to the Edge extension name to label the dedicated device-attributes queue.
static let DATA_QUEUE_SUFFIX = ".deviceAttributes"
/// HTTP status codes treated as a successful device-attributes request.
static let SUCCESS_RESPONSE_CODES: Set<Int> = [200, 202]

enum EventDataKeys {
static let STATUS = "status"
static let REASON = "reason"
static let HTTP_STATUS = "httpStatus"
static let REQUEST_EVENT_ID = EdgeConstants.EventDataKeys.REQUEST_EVENT_ID
}

enum Status {
static let SUCCESS = "success"
static let FAILED = "failed"
static let DROPPED = "dropped"
}

enum Reason {
static let MISSING_CONFIG = "missingConfig"
static let INVALID_PAYLOAD = "invalidPayload"
static let QUEUE_UNAVAILABLE = "queueUnavailable"
static let NETWORK = "network"
static let IDENTITY_CHANGED = "identityChanged"
}

enum ResponseKeys {
static let TITLE = "title"
static let REPORT = "report"
static let ERRORS = "errors"
}
}
}
Loading
Loading