Files
purchases-ios/Sources/Networking
Pol Miro c565837758 Remove compiler flag (#5943)
* Remove compiler flag ENABLE_AD_EVENTS_TRACKING

* Fix: Use trackedAdEvents instead of trackedEvents in tests

The PurchasesAdEventsTests were accessing the wrong property on
MockEventsManager. They should use trackedAdEvents (which stores
AdEvent objects) instead of trackedEvents (which stores FeatureEvent
objects).

* Fix test compilation errors

- Add 'try' to actor property access in PurchasesAdEventsTests
- Remove unnecessary 'as? AdEvent' casts since trackedAdEvents already returns [AdEvent]
- Fix unused variable warnings in EventsManagerAdEventsTests by using _ instead of named variables

* Temporarily enable snapshot recording for AdEventsRequestTests

These tests were previously behind the ENABLE_AD_EVENTS_TRACKING compiler
flag and were not running in CI. Now that we've removed the flag, the tests
run but need their snapshots re-recorded in the CI environment.

This commit temporarily enables recording mode. After CI records the
snapshots, we'll revert this change and commit the updated snapshots.

* Update ad events request test snapshots
- Re-record snapshot tests that were previously wrapped in compiler flag
- Snapshots now use alphabetically sorted JSON keys

* Add Sendable conformance to ad event data classes

Fix pod-lib-lint warnings by marking ad event data classes as @unchecked Sendable.
These classes have immutable properties and are safe for concurrent access.
2025-12-23 19:06:32 +01:00
..
2025-12-22 12:21:21 +01:00
2025-12-23 19:06:32 +01:00