adobe / aepsdk-core-ios

Adobe Experience Platform Mobile Core SDK in Swift
Apache License 2.0
24 stars 40 forks source link

Use instanced EventHub with ExtensionContainer #1065

Closed timkimadobe closed 1 month ago

timkimadobe commented 1 month ago

Description

This PR updated the ExtenionContainer class to use an instance of EventHub instead of a shared global reference.

This is to avoid a relatively common test scenario where EventHub is started and shutdown rapidly between test cases, and extension containers have pending events that will get sent to the new EventHub instance; this can affect test case state, shared states, processing times, etc.

See: https://github.com/adobe/aepsdk-core-ios/issues/1064

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

Checklist: