Skip to content

Image manager tests - #136

Merged
kolomiiets-oleksii merged 8 commits into
nextfrom
feature/image-manager-tests
Nov 11, 2025
Merged

Image manager tests#136
kolomiiets-oleksii merged 8 commits into
nextfrom
feature/image-manager-tests

Conversation

@kolomiiets-oleksii

Copy link
Copy Markdown
Collaborator
  • SnappThemingImageProcessorsRegistry changes:
    • add unregister method
    • make sure it's thread safe
    • refresh documentation
  • add tests for SnappThemingImageManager
  • fix warnings in tests code

Oleksii Kolomiiets and others added 7 commits November 8, 2025 15:18
- add unregister method
- make sure it's thread safe
- refresh documentation
…p-Mobile/SnappTheming into feature/image-manager-tests

# Conflicts:
#	Tests/SnappThemingTests/Mocks/MockExternalProcessor.swift
#	Tests/SnappThemingTests/SnappThemingImageManagerTests.swift
This was referenced Nov 10, 2025
Comment thread Sources/SnappTheming/Theme/SnappThemingImageProcessorsRegistry.swift Outdated
….swift

Co-authored-by: Volodymyr Voiko <vojkovladimir@gmail.com>
@github-actions

Copy link
Copy Markdown

🛡️ Code Coverage Report

Target Lines Coverage
1 SnappTheming 2463 82.34%

Generated by Swift Coverage Action.

@kolomiiets-oleksii
kolomiiets-oleksii merged commit 4439b7f into next Nov 11, 2025
1 check passed
@kolomiiets-oleksii
kolomiiets-oleksii deleted the feature/image-manager-tests branch November 11, 2025 10:47
kolomiiets-oleksii added a commit that referenced this pull request Nov 11, 2025
Version bump to 0.1.3 combining multiple improvements across the framework:

- **URL Context for Image Processing** (#135): Extended
`SnappThemingExternalImageProcessorProtocol` to provide URL context alongside data to image
processors, critical for formats like SVG that need resource context
- **InsettableShape Support** (#130): Upgraded `SnappThemingShapeType` to support
`InsettableShape` builder pattern for better SwiftUI integration
- **Swift 6 Migration** (#129): Migrated example apps to Swift 6 with related compatibility fixes
- **Caching Improvements**: Ensured images are cached before extraction to prevent rendering
issues when switching themes
- **Image Manager Testing & Registry Enhancements** (#136)
  - Full unit test suite for `SnappThemingImageManager`
  functionality
  - Added `unregister()` method for dynamic processor lifecycle management
  - Ensured thread-safe access to `SnappThemingImageProcessorsRegistry`
  - Refreshed and clarified registry API documentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants