WebView Player Integration:
- Create PlayerEmbedService for API server integration
- Update WebView players to use server embed URLs instead of direct links
- Add fallback to direct URLs when server is unavailable
- Support for both Vibix and Alloha players with server API
- Include optional parameters (imdbId, season, episode) for TV shows
- Add health check endpoint for server availability
Mock Testing Infrastructure:
- Add comprehensive TorrentPlatformService tests with mock platform channel
- Test all torrent operations without requiring real Android engine
- Mock platform channel responses for addTorrent, removeTorrent, pauseTorrent, resumeTorrent
- Test error handling with PlatformException simulation
- Validate torrent state detection (downloading, seeding, completed)
- Test file priority management and video file detection
PlayerEmbedService Testing:
- Mock HTTP client tests for Vibix and Alloha embed URL generation
- Test server API integration with success and failure scenarios
- Validate URL encoding for special characters and non-ASCII titles
- Test fallback behavior when server is unavailable or times out
- Mock player configuration retrieval from server
- Test server health check functionality
Test Dependencies:
- Add http_mock_adapter for HTTP testing
- Ensure all tests work without real Flutter/Android environment
- Support for testing platform channels and HTTP services
This enables proper API server integration for WebView players
while maintaining comprehensive test coverage for all torrent
and player functionality without requiring Android hardware.
- Fix torrent platform service integration with Android engine
- Add downloads page with torrent list and progress tracking
- Implement torrent detail screen with file selection and priorities
- Create native video player with fullscreen controls
- Add WebView players for Vibix and Alloha
- Integrate corrected torrent engine with file selector
- Update dependencies for auto_route and video players
Features:
✅ Downloads screen with real-time torrent status
✅ File-level priority management and selection
✅ Three player options: native, Vibix WebView, Alloha WebView
✅ Torrent pause/resume/remove functionality
✅ Progress tracking and seeder/peer counts
✅ Video file detection and playback integration
✅ Fixed Android torrent engine method calls
This resolves torrent integration issues and provides complete
downloads management UI with video playback capabilities.
- Fix authorization issues by improving error handling for unverified accounts
- Enable auto-login after successful email verification
- Fix poster fetching to use NeoMovies API instead of TMDB directly
- Add missing video player models (VideoQuality, AudioTrack, Subtitle, PlayerSettings)
- Add video_player and chewie dependencies for native video playback
- Update Movie model to use API images endpoint for better CDN control
Resolves authentication and image loading issues.
- Created complete TorrentEngine library module with LibTorrent4j
- Full torrent management (add, pause, resume, remove)
- Magnet link metadata extraction
- File priority management (even during download)
- Foreground service with persistent notification
- Room database for state persistence
- Reactive Flow API for UI updates
- Integrated TorrentEngine with MainActivity via MethodChannel
- addTorrent, getTorrents, pauseTorrent, resumeTorrent, removeTorrent
- setFilePriority for dynamic file selection
- Full JSON serialization for Flutter communication
- Created new NeoMoviesApiClient for Go-based backend
- Email verification flow (register, verify, resendCode)
- Google OAuth support
- Torrent search via RedAPI
- Multiple player support (Alloha, Lumex, Vibix)
- Enhanced reactions system (likes/dislikes)
- All movies/TV shows endpoints
- Updated dependencies and build configuration
- Java 17 compatibility
- Updated Kotlin coroutines to 1.9.0
- Fixed build_runner version conflict
- Added torrentengine module to settings.gradle.kts
- Added comprehensive documentation
- TorrentEngine README with usage examples
- DEVELOPMENT_SUMMARY with full implementation details
- ProGuard rules for library
This is a complete rewrite of torrent functionality as a reusable library.
1. Обжариваем лук до золотистого цвета.
2. Добавляем морковь — жарим до мягкости.
3. Всыпаем нарезанное мясо, жарим до румяной корочки.
4. Добавляем специи: зиру, барбарис, соль.
5. Засыпаем промытый рис, сверху — головка чеснока.
6. Заливаем кипятком на 1-2 см выше риса.
7. Готовим под крышкой на слабом огне до испарения воды.