1. Add Downloads screen to main navigation:
- Import DownloadsScreen in main_screen.dart
- Replace placeholder 'Downloads Page' with actual DownloadsScreen component
- Downloads tab now fully functional with torrent management
2. Fix authentication models for API compatibility:
- AuthResponse: Handle wrapped API response with 'data' field
- User model: Add 'verified' field, support both '_id' and 'id' fields
- Add toJson() method to User for serialization
- Fix parsing to match backend response format
3. Fix movie details screen (gray screen issue):
- Implement getExternalIds() in NeoMoviesApiClient
- Add IMDb ID fetching via /movies/{id}/external-ids endpoint
- Update api_client.dart to use new getExternalIds method
- Fix movie detail provider to properly load IMDb IDs
Changes:
- lib/presentation/screens/main_screen.dart: Add DownloadsScreen import and replace placeholder
- lib/data/models/auth_response.dart: Handle wrapped 'data' response
- lib/data/models/user.dart: Add verified field and toJson method
- lib/data/api/neomovies_api_client.dart: Add getExternalIds endpoint
- lib/data/api/api_client.dart: Implement getImdbId using external IDs
Result:
✅ Downloads tab works and shows torrent list
✅ Authentication properly parses API responses
✅ Movie detail screen loads IMDb IDs correctly
✅ All API models match backend format
- 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.