rwadurian/backend/mpc-system/services/service-party-android/app
hailin b30017f3a7 fix(android): prevent memory leaks from detached coroutine scopes
Critical fixes to prevent app crashes when screens are kept open for extended periods:

- Add repositoryScope with SupervisorJob for structured concurrency in TssRepository
- Replace detached CoroutineScope(Dispatchers.IO).launch with repositoryScope.launch:
  - Session event subscription (line 206)
  - Session status polling (line 291)
  - Message routing (line 1508)
- Add cleanup() method to properly cancel all jobs and repositoryScope
- Update disconnect() to also cancel sessionStatusPollingJob
- Update MainViewModel.onCleared() to call repository.cleanup()

This ensures all background coroutines are properly cancelled when the ViewModel
is cleared, preventing memory accumulation over time.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-01 19:05:13 -08:00
..
libs feat(android): add Android TSS Party app with full API implementation 2025-12-31 23:27:29 -08:00
src/main fix(android): prevent memory leaks from detached coroutine scopes 2026-01-01 19:05:13 -08:00
build.gradle.kts feat(android): strengthen gRPC connection reliability 2026-01-01 06:44:42 -08:00
proguard-rules.pro feat(android): add Android TSS Party app with full API implementation 2025-12-31 23:27:29 -08:00