Skip to content

Improvement methods#145

Merged
aaudin90 merged 5 commits intomasterfrom
Improvement-methods
Mar 9, 2026
Merged

Improvement methods#145
aaudin90 merged 5 commits intomasterfrom
Improvement-methods

Conversation

@aaudin90
Copy link
Collaborator

@aaudin90 aaudin90 commented Mar 1, 2026

No description provided.

aaudin90 and others added 5 commits March 1, 2026 20:52
Moved device identifier fetching (advertisingId, appSetId, androidId)
from RegistrationProvider into dedicated domain/data components:
- DeviceIdentifiersDataSource: fetches and caches identifiers
- DeviceIdentifiersRepository: coordinates data source access
- CollectDeviceIdentifiersUseCase: fetches and detects changes
- DeviceIdentifiersInteractor: orchestrates fetch with timeout and
  triggers re-registration when identifiers change

Updated RegistrationProvider to read identifiers from repository.
Added UseCase/Interactor conventions to CLAUDE.md.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Added tests for all new DeviceIdentifiers domain/data components:
- DeviceIdentifiersDataSourceTest: fetch, save, loadCached
- DeviceIdentifiersRepositoryTest: delegation, fetchAndroidIdSync
- CollectDeviceIdentifiersUseCaseTest: optOut, change detection
- DeviceIdentifiersInteractorTest: timeout/in-time scenarios with
  registration triggering
- RegistrationProviderTest: getIdfa, getIdfv, getAndroidId,
  getDeviceType with optOutOfTracking branches

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Added deviceIdentifiersRepository.clear() call in ApphudInternal.clear()
to properly reset device identifiers through the repository abstraction
during logout, consistent with userRepository.clearUser() and
productRepository.reset().

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Added step-by-step logs with timestamps to DeviceIdentifiersInteractor
and CollectDeviceIdentifiersUseCase to trace execution timeline and
identify which identifiers change between cached and fetched values.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@aaudin90 aaudin90 merged commit 7a22142 into master Mar 9, 2026
2 checks passed
@aaudin90 aaudin90 deleted the Improvement-methods branch March 9, 2026 12:55
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