Skip to content

Refactor/cloud architecture#98

Merged
allnes merged 3 commits into
embedded-dev-research:mainfrom
sannarat:refactor/cloud-architecture
May 18, 2026
Merged

Refactor/cloud architecture#98
allnes merged 3 commits into
embedded-dev-research:mainfrom
sannarat:refactor/cloud-architecture

Conversation

@sannarat

Copy link
Copy Markdown
Contributor

No description provided.

sannarat added 2 commits May 17, 2026 23:45
- Introduced DomainFile data class in :domain module to encapsulate local file paths without exposing platform-specific java.io.File.
- Updated CloudDataSource interface to accept DomainFile for media upload and download operations.
- Refactored FirebaseCloudDataSource to map DomainFile back to java.io.File internally, maintaining system isolation.
- Adjusted SyncManagerImpl to wrap raw file paths into DomainFile before interacting with the cloud data source.
- Updated test suites to comply with the new DomainFile contract.
- Refactored downloadMedia success test to match any File type instead of a strict mocked instance, avoiding reference mismatch during local instantiation.
- Updated SyncManagerImplTest verifications to properly evaluate DomainFile.path instead of File.absolutePath.
- Cleaned up generic any() matchers to prevent MockK runtime ClassCastExceptions.
@sannarat sannarat requested review from allnes and aobolensk as code owners May 17, 2026 20:46
Comment thread data/src/test/java/com/itlab/data/cloud/SyncManagerImplTest.kt Fixed
@allnes allnes merged commit 6e92ba1 into embedded-dev-research:main May 18, 2026
16 checks passed
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.

5 participants