Files
purchases-ios/Sources/LocalReceiptParsing
439b748cfb Expose Logger to internal consumers (#6690)
* fix: expose Logger for Internal SPI consumers

Expose Logger through @_spi(Internal) with a minimal surface by keeping internal handlers private while marking Logger and its conformance extension for SPI internal module usage.

* Make SPI LoggerType instance methods public

Co-authored-by: Pol Miro <polmiro@users.noreply.github.com>

* fix: expose LogMessage to Internal SPI

* fix: add SPI initializer for Logger

Add an @_spi(Internal) public init so internal SPI consumers can instantiate Logger and use its SPI-visible instance logging methods.

* fix: use Internal SPI imports in logger-using tests

Switch affected test targets to @_spi(Internal) @testable imports so Logger references continue compiling after Logger moved behind Internal SPI visibility.

* fix: enable SPI Logger access in receipt parser tests

* fix: use SPI import for backend test log messages

* fix: address review — expose Logger static SPI API

Align Logger SPI exposure with static usage by removing instance SPI surface and exposing the static logging entry points for internal adapter consumers.

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Pol Miro <polmiro@users.noreply.github.com>
2026-04-24 20:35:22 +02:00
..