Skip to content

Commit

Permalink
Merge branch 'staging' into dev-v5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cdhoffmann committed Mar 14, 2024
2 parents 7b97078 + c4fe5dc commit e92a6eb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions AEPUserProfile.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Pod::Spec.new do |s|
s.name = "AEPUserProfile"
s.version = "5.0.0"

s.summary = "Experience Platform UserProfile extension for Adobe Experience Platform Mobile SDK. Written and maintained by Adobe."
s.description = <<-DESC
The Experience Platform UserProfile extension provides APIs that allow use of the custom client-side User Profile in the Adobe Experience Platform SDK.
Expand All @@ -14,6 +15,7 @@ Pod::Spec.new do |s|
s.swift_version = '5.1'
s.pod_target_xcconfig = { 'BUILD_LIBRARY_FOR_DISTRIBUTION' => 'YES' }
s.dependency 'AEPCore', '>= 5.0.0', '< 6.0.0'

s.source_files = 'AEPUserProfile/Sources/**/*.swift'

end
1 change: 1 addition & 0 deletions AEPUserProfile/Sources/UserProfileConstants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ enum UserProfileConstants {
static let EXTENSION_NAME = "com.adobe.module.userProfile"
static let FRIENDLY_NAME = "UserProfile"
static let EXTENSION_VERSION = "5.0.0"

static let LOG_PREFIX = FRIENDLY_NAME
static let DATASTORE_NAME = EXTENSION_NAME
static let DATASTORE_KEY_ATTRIBUTES = "attributes"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ class UserProfileFunctionalTests: XCTestCase {
let expectation = self.expectation(description: "register UserProfile extension")
setAttributesInDatastore(["k1": "v1", "k4": 11])


MobileCore.registerExtensions([UserProfile.self]) {
expectation.fulfill()
}
Expand Down Expand Up @@ -269,6 +270,7 @@ class UserProfileFunctionalTests: XCTestCase {
MobileCore.dispatch(event: Event(name: "consequence event", type: "com.adobe.eventType.rulesEngine", source: "com.adobe.eventSource.responseContent", data: ["triggeredconsequence": ["type": "csp", "detail": ["key": "key3", "operation": "write"]] as [String: Any]]))
MobileCore.dispatch(event: Event(name: "consequence event", type: "com.adobe.eventType.rulesEngine", source: "com.adobe.eventSource.responseContent", data: ["triggeredconsequence": ["type": "csp", "detail": ["value": "value1", "operation": "delete"]] as [String: Any]]))
usleep(1000)

XCTAssertEqual(1, MonitorExtension.sharedStateChanged)
}

Expand Down
1 change: 1 addition & 0 deletions AEPUserProfile/Tests/UserProfileTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ class UserProfileTests: XCTestCase {

func testUpdateAttributesWithMultipleValueTypes() throws {
setAttributesInDatastore(["k_string": "value1", "k_int": 2, "k_bool": true, "k_double": 2.1])

let runtime = TestableExtensionRuntime()
let profile = UserProfile(runtime: runtime)
profile.onRegistered()
Expand Down

0 comments on commit e92a6eb

Please sign in to comment.