diff --git a/AEPUserProfile.podspec b/AEPUserProfile.podspec index 0ca69a5..7ba9b6c 100644 --- a/AEPUserProfile.podspec +++ b/AEPUserProfile.podspec @@ -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. @@ -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 diff --git a/AEPUserProfile/Sources/UserProfileConstants.swift b/AEPUserProfile/Sources/UserProfileConstants.swift index 0b51a63..6d50e59 100644 --- a/AEPUserProfile/Sources/UserProfileConstants.swift +++ b/AEPUserProfile/Sources/UserProfileConstants.swift @@ -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" diff --git a/AEPUserProfile/Tests/FunctionalTests/UserProfileFunctionalTests.swift b/AEPUserProfile/Tests/FunctionalTests/UserProfileFunctionalTests.swift index dfe11bf..45cfb42 100644 --- a/AEPUserProfile/Tests/FunctionalTests/UserProfileFunctionalTests.swift +++ b/AEPUserProfile/Tests/FunctionalTests/UserProfileFunctionalTests.swift @@ -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() } @@ -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) } diff --git a/AEPUserProfile/Tests/UserProfileTests.swift b/AEPUserProfile/Tests/UserProfileTests.swift index d0b6b4c..9d75cd1 100644 --- a/AEPUserProfile/Tests/UserProfileTests.swift +++ b/AEPUserProfile/Tests/UserProfileTests.swift @@ -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()